rename wiki page to page

fixes stuff

Test Plan:
- go through canvas
- anywhere you see wiki page notice it now
  says page
- cheer

Change-Id: I51211da87fc3c54f1d957da9b11e32808868eb2d
Reviewed-on: https://gerrit.instructure.com/154269
Tested-by: Jenkins
Reviewed-by: Landon Gilbert-Bland <lbland@instructure.com>
QA-Review: Steven Burnett <sburnett@instructure.com>
Product-Review: Christi Wruck
This commit is contained in:
Steven Burnett 2018-06-18 18:05:43 -06:00
parent 5ac3cb26c0
commit eee8f2540c
11 changed files with 15 additions and 15 deletions

View File

@ -26,7 +26,7 @@ define [
dialogDefaults =
fixDialogButtons: false
title: I18n.t 'edit_dialog_title', 'Edit Wiki Page'
title: I18n.t 'edit_dialog_title', 'Edit Page'
width: 450
height: 230
minWidth: 450

View File

@ -30,7 +30,7 @@ module ContextModulesHelper
'ExternalUrl': I18n.t('External Url'),
'Quiz': I18n.t('Quiz'),
'Quizzes::Quiz': I18n.t('Quiz'),
'WikiPage': I18n.t('Wiki Page')
'WikiPage': I18n.t('Page')
}.freeze
def cache_if_module(context_module, editable, is_student, can_view_unpublished, user, context, &block)

View File

@ -112,7 +112,7 @@ export default React.createClass({
"quiz_menu":I18n.t("Quiz Menu"),
"tool_configuration":I18n.t("Tool Configuration"),
"user_navigation":I18n.t("User Navigation"),
"wiki_page_menu":I18n.t("Wiki Page Menu"),
"wiki_page_menu":I18n.t("Page Menu"),
};
var tool = this.state.tool;

View File

@ -3,10 +3,10 @@
<% end %>
<% define_content :subject do %>
<%= t :subject, "Updated Wiki Page: %{title}, %{user}", :title => asset.title.titleize, :user => asset.context.name %>
<%= t :subject, "Updated Page: %{title}, %{user}", :title => asset.title.titleize, :user => asset.context.name %>
<% end %>
<%= t :body, "A page has been updated on the wiki for %{title} that may make your life easier.", :title => asset.context.name %>
<%= t :body, "The page %{title} has been updated.", :title => asset.context.name %>
<%= asset.title.titleize %>

View File

@ -3,7 +3,7 @@
<% end %>
<% define_content :subject do %>
<%= t :subject, "Updated Wiki Page: %{title}, %{user}", :title => asset.title.titleize, :user => asset.context.name %>
<%= t :subject, "Updated Page: %{title}, %{user}", :title => asset.title.titleize, :user => asset.context.name %>
<% end %>
<% define_content :footer_link do %>
@ -12,8 +12,8 @@
</a>
<% end %>
<p><%= t :body, "A page has been updated on the wiki for %{title} that may make your life easier.", :title => asset.context.name %></p>
<p><%= t :body, "The page %{title} has been updated.", :title => asset.context.name %></p>
<p><strong><%= html_to_text(asset.title).titleize %></strong></p>
<p><%= html_to_text(asset.body, :base_url => dashboard_url) %></p>
<p><%= html_to_text(asset.body, :base_url => dashboard_url) %></p>

View File

@ -3,7 +3,7 @@
<% end %>
<% define_content :subject do %>
<%= t :subject, "Updated Wiki Page: %{title}, %{user}", :title => asset.title.titleize, :user => asset.context.name %>
<%= t :subject, "Updated Page: %{title}, %{user}", :title => asset.title.titleize, :user => asset.context.name %>
<% end %>
<%= CanvasTextHelper.truncate_text(html_to_text(asset.body), :max_length => 200) %>

View File

@ -340,7 +340,7 @@ class Notification < ActiveRecord::Base
t 'names.submission_grade_changed', 'Submission Grade Changed'
t 'names.submission_graded', 'Submission Graded'
t 'names.summaries', 'Summaries'
t 'names.updated_wiki_page', 'Updated Wiki Page'
t 'names.updated_wiki_page', 'Updated Page'
t 'names.web_conference_invitation', 'Web Conference Invitation'
t 'names.alert', 'Alert'
t 'names.appointment_canceled_by_user', 'Appointment Canceled By User'
@ -459,7 +459,7 @@ EOS
mt(:course_content_description, <<-EOS)
Change to course content:
* WikiPage
* Page content
* Quiz content
* Assignment content
EOS

View File

@ -36,7 +36,7 @@
<option value="attachment"><%= t :file_item, "File" %></option>
<% end %>
<% if !only || only.include?(:wiki_pages) %>
<option value="wiki_page"><%= t :content_page_item, "Content Page" %></option>
<option value="wiki_page"><%= t :content_page_item, "Page" %></option>
<% end %>
<% if !only || only.include?(:discussion_topics) %>
<option value="discussion_topic"><%= t :discussion_item, "Discussion" %></option>

View File

@ -28,7 +28,7 @@ module CC::Exporter::Epub
announcements: I18n.t("Announcements"),
topics: I18n.t("Discussion Topics"),
quizzes: I18n.t("Quizzes"),
pages: I18n.t("Wiki Pages"),
pages: I18n.t("Pages"),
files: I18n.t("Files")
}.freeze

View File

@ -329,7 +329,7 @@ describe "context modules" do
it "publishes a newly created item" do
@course.context_modules.create!(name: "Content Page")
get "/courses/#{@course.id}/modules"
add_new_module_item('#wiki_pages_select', 'Content Page', '[ New Page ]', 'New Page Title')
add_new_module_item('#wiki_pages_select', 'Page', '[ New Page ]', 'New Page Title')
tag = ContentTag.last
item = f("#context_module_item_#{tag.id}")

View File

@ -225,7 +225,7 @@ describe "profile" do
expect(f('#unregistered_services')).to include_text("Skype")
end
it "should toggle service visibility" do
it "should toggle user services visibility" do
get "/profile/settings"
add_skype_service
selector = "#show_user_services"