misc view i18n
Change-Id: I9cd27dd9d6d3daa8c1fe70cb0de21b82d1980de7 Reviewed-on: https://gerrit.instructure.com/4586 Reviewed-by: Brian Palmer <brianp@instructure.com> Reviewed-by: Jacob Fugal <jacob@instructure.com> Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
parent
b4f08ddf07
commit
cb864c6ae0
|
@ -6,7 +6,7 @@
|
|||
<table class="formtable" style="margin-left: 20px;">
|
||||
<tr>
|
||||
<th><%= before_label(t(:auth_type_label, "Type")) %></th>
|
||||
<th>LDAP</th>
|
||||
<th><%= t :setting_type_ldap, 'LDAP' %></th>
|
||||
</tr>
|
||||
<% fields_for @account_configs[0], :index => 0 do |f| %>
|
||||
<%= f.hidden_field :disabled, :value => '0' %>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<td><%= f.blabel :name, :full_name, :en => "Full Name" %></td>
|
||||
<td>
|
||||
<%= f.text_field :name %>
|
||||
<div style="font-size: 0.8em; color: #888;">This name will be used by teachers for grading.</div>
|
||||
<div style="font-size: 0.8em; color: #888;"><%= t :full_name_description, 'This name will be used by teachers for grading.' %></div>
|
||||
</td>
|
||||
<tr>
|
||||
<td><%= f.blabel :short_name, :en => "Display Name" %></td>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
<% end %>
|
||||
<h2><%= t(:title, "Profile Pictures") %></h2>
|
||||
<div class="views">
|
||||
<span style="padding-right: 10px; font-weight: bold;">Show: </span>
|
||||
<span style="padding-right: 10px; font-weight: bold;"><%= before_label :show, 'Show' %> </span>
|
||||
<a href="?avatar_state=submitted" class="<%= 'selected' if @avatar_state == 'submitted' %>"><%= t(:submitted_link, { :zero => "Submitted", :other => "Submitted %{count}" }, :count => @avatar_counts[:submitted] || 0) %></a> |
|
||||
<a href="?avatar_state=reported" class="<%= 'selected' if @avatar_state == 'reported' %>"><%= t(:reported_link, { :zero => "Reported", :other => "Reported %{count}" }, :count => @avatar_counts[:reported] || 0) %></a> |
|
||||
<a href="?avatar_state=re_reported" class="<%= 'selected' if @avatar_state == 're_reported' %>"><%= t(:re_reported_link, { :zero => "Approved, Re-Reported", :other => "Approved, Re-Reported %{count}"}, :count => @avatar_counts[:re_reported] || 0) %></a> |
|
||||
|
|
|
@ -161,11 +161,11 @@
|
|||
<% end %>
|
||||
<div>
|
||||
<input type="checkbox" id="enable_equella" <%= 'checked' if !@account.settings[:equella_endpoint].blank? %> />
|
||||
<label for="enable_equella">Equella</label>
|
||||
<label for="enable_equella"><%= t 'labels.equella', 'Equella' %></label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" name="turnitin" id="turnitin" <%= 'checked' unless @account.turnitin_account_id.blank? %> />
|
||||
<label for="turnitin">Turnitin</label>
|
||||
<label for="turnitin"><%= t 'labels.turnitin', 'Turnitin' %></label>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ window.submissionAttachmentIndex = -1;
|
|||
<li><a href="#submit_online_url_form" class="submit_online_url_option"><%= t 'links.submit.website', "Website URL" %></a></li>
|
||||
<% end %>
|
||||
<% if show_google_docs %>
|
||||
<li><a href="#submit_google_doc_form" class="submit_online_url_option">Google Doc</a></li>
|
||||
<li><a href="#submit_google_doc_form" class="submit_online_url_option"><%= t 'links.submit.google_doc', 'Google Doc' %></a></li>
|
||||
<% end %>
|
||||
<% if @assignment.submission_types && @assignment.submission_types.match(/media_recording/) %>
|
||||
<li><a href="#submit_media_recording_form" class="submit_media_recording_option"><%= t 'links.submit.media', "Media" %></a></li>
|
||||
|
|
|
@ -178,7 +178,7 @@
|
|||
<option value="<%= student.id %>" class="student_<%= student.id %>"><%= student.last_name_first %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
<button type="submit" class="button small-button">Add</button>
|
||||
<button type="submit" class="button small-button"><%= t 'buttons.add', 'Add' %></button>
|
||||
<% end %>
|
||||
<a href="<%= context_url(@context, :context_assignment_assign_peer_review_url, @assignment.id, '{{ reviewer_id }}') %>" style="display: none;" class="assign_peer_review_url"> </a>
|
||||
<ul style="display: none;">
|
||||
|
|
|
@ -93,7 +93,7 @@ $(document).ready(function() {
|
|||
<%= render :partial => "shared/rubric", :object => nil, :locals => {:association => @assignment, :editable => can_do(@assignment, @current_user, :update), :has_assessments => false, :edit_view => true, :read_only => !can_do(@assignment, @current_user, :update)} %>
|
||||
<% if can_do(@assignment, @current_user, :update) %>
|
||||
<div style="text-align: center; font-size: 1.2em; margin-top: 10px; display: none;">
|
||||
<a href="<%= context_url(@context, :context_rubrics_url) %>" class="add_rubric_link rubric" style="<%= hidden if @assignment.rubric_association %>">Assign Rubric</a>
|
||||
<a href="<%= context_url(@context, :context_rubrics_url) %>" class="add_rubric_link rubric" style="<%= hidden if @assignment.rubric_association %>"><%= t 'links.assign_rubric', 'Assign Rubric' %></a>
|
||||
</div>
|
||||
<%= render :partial => "shared/rubric_forms" %>
|
||||
<% end %>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
<tr class="percent_weight">
|
||||
<td class="total">Total</td>
|
||||
<td class="total"><%= t 'labels.total', 'Total' %></td>
|
||||
<td id="group_weight_total" class="total" style="text-align: right;"><%= number_to_percentage(tally, :precision => 0) %></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
|
|
@ -48,13 +48,13 @@
|
|||
</div>
|
||||
<% if !@categories.empty? %>
|
||||
<div class="rs-margin-lr rs-margin-top">
|
||||
<h3 style="margin-bottom: 0;">Message a Group</h3>
|
||||
<h3 style="margin-bottom: 0;"><%= t 'headings.send_message_to_group', 'Message a Group' %></h3>
|
||||
<% @categories.each do |category| %>
|
||||
<%= category %>
|
||||
<ul class="unstyled_list" style="margin-left: 10px;">
|
||||
<% @groups.select{|g| g.category == category}.each do |group| %>
|
||||
<li class="message_group">
|
||||
<a href="#" class="message_group_link mail">Message <%= group.name %></a>
|
||||
<a href="#" class="message_group_link mail"><%= t 'links.send_message_to', "Message %{group_name}", :group_name => group.name %></a>
|
||||
<% group.users.each do |user| %>
|
||||
<div class="recipient" style="display: none;">
|
||||
<a href="<%= context_url(@context, :context_user_url, user.id) %>" class="recipient_name"><%= context_user_name(@context, user) %></a>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
<td colspan="2">
|
||||
<div class='button-container'>
|
||||
<button type="submit" class="button"><%= t('buttons.create_course', %{Create Course}) %></button>
|
||||
<a href="<%= context_url(@context, :context_url) %>" class="button button-secondary">Cancel</a>
|
||||
<a href="<%= context_url(@context, :context_url) %>" class="button button-secondary"><%= t '#buttons.cancel', 'Cancel' %></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -329,7 +329,7 @@
|
|||
<% end %>
|
||||
<% if !@owner_view %>
|
||||
<div id="page_comments_holder" style="margin-top: 50px;">
|
||||
<h2 style="<%= hidden unless @page.show_comments || @page.allow_comments || can_do(@portfolio, @current_user, :update) %>">Page Comments</h2>
|
||||
<h2 style="<%= hidden unless @page.show_comments || @page.allow_comments || can_do(@portfolio, @current_user, :update) %>"><%= t 'headings.page_comments', 'Page Comments' %></h2>
|
||||
<% if @page.show_comments || can_do(@portfolio, @current_user, :update) %>
|
||||
<% if !@page.page_comments.empty? && !@page.show_comments %>
|
||||
<p><%= t(:private_comments, <<-DETAILS,
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
<% @notification_categories.each do |category| %>
|
||||
<tr>
|
||||
<% policy = @policies.find_by_notification_id(category.id) %>
|
||||
<td style="padding-right: 50px;"><%= category.category %> Alerts</td>
|
||||
<td style="padding-right: 50px;"><%= t 'labels.alerts_for_category', '%{category_name} Alerts', :category_name => category.category %></td>
|
||||
<td style="white-space: nowrap; padding: 1px 10px;">
|
||||
<input type="radio" <%= 'checked' if policy && policy.frequency == 'immediately' %> name="types[<%= category.category %>]" value="immediately" id="notification_type_<%= category.id %>_immediately"/>
|
||||
<label for="notification_type_<%= category.id %>_immediately"><%= t :right_away, "Right Away" %></label>
|
||||
|
|
|
@ -284,8 +284,8 @@
|
|||
<%= image_tag "ajax-loader-bar.gif" %>
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<button type="submit" class="button small-button">Add File</button>
|
||||
<button type="button" class="button button-secondary cancel_button">Cancel</button>
|
||||
<button type="submit" class="button small-button"><%= t 'buttons.add_a_file', 'Add File' %></button>
|
||||
<button type="button" class="button button-secondary cancel_button"><%= t '#buttons.cancel', 'Cancel' %></button>
|
||||
</div>
|
||||
<% end %>
|
||||
</li>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<%= @assignments && !@assignments.empty? ? t(:total_assignment_count, { :one => "1 Assignment Total", :other => "%{count} Assignments Total" }, :count => @assignments.length) : t(:no_assignments, "No Assignments Created") %>
|
||||
</b>
|
||||
<% if @assignments && !@assignments.empty? %>
|
||||
<a href="#" style="padding-left: 20px; font-size: 0.9em; display: none;" class="hide_assignments_link">Hide</a>
|
||||
<a href="#" style="padding-left: 20px; font-size: 0.9em; display: none;" class="hide_assignments_link"><%= t '#buttons.hide', "Hide" %></a>
|
||||
<a href="#" style="padding-left: 20px; font-size: 0.9em;" class="show_assignments_link"><%= t "#buttons.show", "Show" %></a>
|
||||
<div id="assignment_list" style="display:none;">
|
||||
<table style="width: 100%;" class="summary">
|
||||
|
|
|
@ -57,32 +57,34 @@
|
|||
<% form_tag context_url(@context, :create_category_context_groups_url), {:id => "add_category_form", :style => "display: none;"} do %>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Name for Groups:</td>
|
||||
<td><input type="text" name="category[name]" value="Project Groups"/></td>
|
||||
<td><%= before_label :name_for_groups, "Name for Groups" %></td>
|
||||
<td><input type="text" name="category[name]" value="<%= t :default_name_for_groups, "Project Groups" %>"/></td>
|
||||
</tr>
|
||||
<% if @context.is_a?(Account) %>
|
||||
<input type="hidden" name="category[split_groups]" value="0">
|
||||
<% else %>
|
||||
<tr>
|
||||
<td style="vertical-align: top;">Group Structure:</td>
|
||||
<td style="vertical-align: top;"><%= before_label :group_structure, "Group Structure" %></td>
|
||||
<td>
|
||||
<input type="radio" name="category[split_groups]" id="category_split_groups" value="1"/>
|
||||
<label for="category_split_groups">
|
||||
Split students into
|
||||
</label>
|
||||
<input type="text" name="category[group_count]" style="width: 25px;"/> equal groups<br/>
|
||||
<%= t :group_structure, "*Split students into* %{number_of_groups} equal groups",
|
||||
:number_of_groups => '<input type="text" name="category[group_count]" style="width: 25px;"/>'.html_safe,
|
||||
:wrapper => '<label for="category_split_groups">\1</label>'
|
||||
%><br/>
|
||||
<div style="display: none;">
|
||||
<input type="checkbox" name="category[limit_groups]" value="1"/>
|
||||
Maximum of <input type="text" name="category[max_membership]" style="width: 25px;"/> students per group
|
||||
<%= t :max_students_per_group, "Maximum of %{number_of_students} students per group",
|
||||
:number_of_students => '<input type="text" name="category[max_membership]" style="width: 25px;"/>'.html_safe
|
||||
%>
|
||||
</div>
|
||||
<input type="radio" name="category[split_groups]" id="category_no_groups" value="0" checked="true"/>
|
||||
<label for="category_no_groups">I'll create groups manually</label>
|
||||
<label for="category_no_groups"><%= t 'labels.manually_create_groups', "I'll create groups manually" %></label>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
<tr>
|
||||
<td colspan="2" class="button-container-right-aligned">
|
||||
<button type="submit" class="button">Create Groups</button>
|
||||
<button type="submit" class="button"><%= t 'buttons.create_groups', "Create Groups" %></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<%= before_label :longer_description, "Longer description" %>
|
||||
<div>
|
||||
<div style="text-align: right; margin-right: 10%;">
|
||||
<a href="#" class="switch_views_link">Switch views</a>
|
||||
<a href="#" class="switch_views_link"><%= t 'links.switch_views', 'Switch views' %></a>
|
||||
</div>
|
||||
<%= f.text_area :description, :style => "width: 100%; height: 150px;" %>
|
||||
</div>
|
||||
|
|
|
@ -12,10 +12,11 @@
|
|||
</span>
|
||||
<% end %>
|
||||
<div class="scoring">
|
||||
<span class="score"><%= outcome_result.try_rescue(:score) || nbsp %></span>
|
||||
out of
|
||||
<span class="possible"><%= outcome_result.try_rescue(:possible) || nbsp %></span>
|
||||
<span class="mastery">(<%= image_tag "graded.16px.png", :alt => "" %> mastered)</span>
|
||||
<%= t :scoring, "%{points} out of %{possible_points}",
|
||||
:points => raw('<span class="score">' + (outcome_result.try_rescue(:score) || nbsp) + '</span>'),
|
||||
:possible_points => raw('<span class="possible">' + (outcome_result.try_rescue(:possible) || nbsp) + '</span>')
|
||||
%>
|
||||
<span class="mastery">(<%= image_tag "graded.16px.png", :alt => "" %> <%= t :outcome_mastered, 'mastered' %>)</span>
|
||||
</div>
|
||||
<div class="last_attempt">
|
||||
<%= t :attempt_info, "attempt #%{attempt_number}, %{attempt_date}", :attempt_number => "<span class=\"attempt\">#{outcome_result.try_rescue(:attempt) || "1"}</span>".html_safe, :attempt_date => "<span class=\"assessed_at_formatted\">#{datetime_string(outcome_result.try_rescue(:assessed_at))}</span>".html_safe %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% fields_for :settings, OpenObject.new(settings) do |f| %>
|
||||
<table style="width: 500px;" class="formtable">
|
||||
<tr>
|
||||
<td colspan="2"><%= mt(:description, <<-TEXT, :site_url => raw('<span class="nobr">https://< domain >/</span>'), :canvas_url => raw('<span class="nobr">https://< domain >/facebook</span>'), :facebook_url => "http://www.facebook.com/developers")
|
||||
<td colspan="2"><%= mt(:description, <<-TEXT, :site_url => raw('<span class="nobr">https://< ' + t(:domain_name, 'domain') + ' >/</span>'), :canvas_url => raw('<span class="nobr">https://< ' + t(:domain_name, 'domain') + ' >/facebook</span>'), :facebook_url => "http://www.facebook.com/developers")
|
||||
You will need to create a [new app on facebook.com](%{facebook_url}).
|
||||
Set the following configuration options to ensure your Facebook app
|
||||
works correctly:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% fields_for :settings, OpenObject.new(settings) do |f| %>
|
||||
<table style="width: 500px;" class="formtable">
|
||||
<tr>
|
||||
<td colspan="2"><%= mt(:description, <<-TEXT, :linkedin_url => 'https://www.linkedin.com/secure/developer', :oauth_url => raw('<span class="nobr">https://< domain >/oauth_success?service=linked_in</span>'))
|
||||
<td colspan="2"><%= mt(:description, <<-TEXT, :linkedin_url => 'https://www.linkedin.com/secure/developer', :oauth_url => raw('<span class="nobr">https://< ' + t(:domain_name, 'domain') + ' >/oauth_success?service=linked_in</span>'))
|
||||
You will need to register a [new app on LinkedIn](%{linkedin_url}).
|
||||
Set the following configuration options to ensure your LinkedIn integration
|
||||
works correctly:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% fields_for :settings, OpenObject.new(settings) do |f| %>
|
||||
<table style="width: 500px;" class="formtable">
|
||||
<tr>
|
||||
<td colspan="2"><%= mt(:description, <<-TEXT, :twitter_url => 'http://dev.twitter.com', :callback_url => raw('<span class="nobr">https://< domain >/oauth_success?service=twitter</span>'))
|
||||
<td colspan="2"><%= mt(:description, <<-TEXT, :twitter_url => 'http://dev.twitter.com', :callback_url => raw('<span class="nobr">https://< ' + t(:domain_name, 'domain') + ' >/oauth_success?service=twitter</span>'))
|
||||
You will need to create a [new app on Twitter](%{twitter_url}).
|
||||
Set the following configuration options to ensure your Twitter app
|
||||
works correctly:
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
<tr class="preference preference_<%= notification_preference.id %>">
|
||||
<td colspan="2" style="padding-left: 10px;">
|
||||
<select class="contact_type_select">
|
||||
<option value="email_select" <%= "selected" if preference.communication_channel.path_type == "email" %>><%= t('contact_types.email', "Email Me") %></option>
|
||||
<option value="sms_select" <%= "selected" if preference.communication_channel.path_type == "sms" %>><%= t('contact_types.sms', "Text my Cell") %></option>
|
||||
<option value="email_select" <%= "selected" if preference.communication_channel.path_type == "email" %>><%= t('contact_types.email', "Email Me at") %></option>
|
||||
<option value="sms_select" <%= "selected" if preference.communication_channel.path_type == "sms" %>><%= t('contact_types.sms', "Text my Cell at") %></option>
|
||||
<% if !@current_user.user_services.for_service('facebook').empty? %>
|
||||
<option value="facebook_select" <%= 'selected' if preference.communication_channel.path_type == 'facebook' %>><%= t('contact_types.facebook', "Notify me on Facebook") %></option>
|
||||
<% end %>
|
||||
|
@ -44,7 +44,7 @@
|
|||
<option value="twitter_select" <%= 'selected' if preference.communication_channel.path_type == 'twitter' %>><%= t('contact_types.twitter', "Notify me via Twitter") %></option>
|
||||
<% end %>
|
||||
</select>
|
||||
<span style="white-space: nowrap;"><span class="at" style="<%= hidden unless preference.communication_channel.path_type == 'email' || preference.communication_channel.path_type == 'sms' %>">at </span>
|
||||
<span style="white-space: nowrap;">
|
||||
<% if preference.communication_channel.path_type == "email" %>
|
||||
<%= render :partial => "email_select", :object => preference.communication_channel %>
|
||||
<% elsif preference.communication_channel.path_type == "sms" %>
|
||||
|
|
|
@ -7,18 +7,18 @@
|
|||
<% content_for :right_side do %>
|
||||
<div class="rs-margin-all">
|
||||
<% if can_do(@bank, @current_user, :manage) %>
|
||||
<a href="#" class="button button-sidebar-wide add_question_link"><%= image_tag "add.png" %> Add a Question</a>
|
||||
<a href="<%= context_url(@context, :context_question_bank_url, @bank.id) %>" class="button button-sidebar-wide edit_bank_link"><%= image_tag "edit.png" %> Edit Bank Details</a>
|
||||
<a href="#" class="button button-sidebar-wide move_questions_link"><%= image_tag "edit.png" %> Move Multiple Questions</a>
|
||||
<a href="<%= context_url(@context, :context_question_bank_url, @bank.id) %>" class="button button-sidebar-wide delete_bank_link"><%= image_tag "delete.png" %> Delete Bank</a>
|
||||
<a href="#" class="button button-sidebar-wide add_question_link"><%= image_tag "add.png" %> <%= t 'buttons.add_a_question', "Add a Question" %></a>
|
||||
<a href="<%= context_url(@context, :context_question_bank_url, @bank.id) %>" class="button button-sidebar-wide edit_bank_link"><%= image_tag "edit.png" %> <%= t 'buttons.edit', "Edit Bank Details" %></a>
|
||||
<a href="#" class="button button-sidebar-wide move_questions_link"><%= image_tag "edit.png" %> <%= t 'buttons.move_questions', "Move Multiple Questions" %></a>
|
||||
<a href="<%= context_url(@context, :context_question_bank_url, @bank.id) %>" class="button button-sidebar-wide delete_bank_link"><%= image_tag "delete.png" %> <%= t 'buttons.delete', "Delete Bank" %></a>
|
||||
<% end %>
|
||||
<% if @bank && !@bank.bookmarked_for?(@current_user) %>
|
||||
<a href="<%= context_url(@context, :context_question_bank_bookmark_url, @bank ? @bank.id : "{{ id }}") %>" class="button button-sidebar-wide bookmark_bank_link"><%= image_tag "bookmark_gray.png" %> <span class="message">Bookmark this Bank</span></a>
|
||||
<a href="<%= context_url(@context, :context_question_bank_bookmark_url, @bank ? @bank.id : "{{ id }}") %>" class="button button-sidebar-wide bookmark_bank_link"><%= image_tag "bookmark_gray.png" %> <span class="message"><%= t 'buttons.bookmark', "Bookmark this Bank" %></span></a>
|
||||
<% else %>
|
||||
<button class="button button-sidebar-wide disabled" disabled="true"><%= image_tag "bookmark.png" %> Already Bookmarked</button>
|
||||
<button class="button button-sidebar-wide disabled" disabled="true"><%= image_tag "bookmark.png" %> <%= t 'buttons.already_bookmarked', "Already Bookmarked" %></button>
|
||||
<% end %>
|
||||
</div>
|
||||
<h2 id="aligned_outcomes">Aligned Outcomes</h2>
|
||||
<h2 id="aligned_outcomes"><%= t 'headings.aligned_outcomes', "Aligned Outcomes" %></h2>
|
||||
<div class="rs-margin-lr rs-margin-bottom">
|
||||
<ul class="unstyled_list" id="aligned_outcomes_list">
|
||||
<% @outcome_tags.each do |tag| %>
|
||||
|
@ -26,17 +26,17 @@
|
|||
<span class="short_description"><%= tag.learning_outcome.short_description %></span>
|
||||
<a href="#" class="delete_outcome_link no-hover"><%= image_tag "delete_circle.png" %></a>
|
||||
<span class="clear"></span>
|
||||
<span class="content">mastery at <span class="mastery_threshold"><%= (tag.mastery_score || 0) * 100.0 %></span>%</span>
|
||||
<span class="content"><%= t :mastery_threshold, "mastery at %{threshold_percentage}", :threshold_percentage => raw("<span class=\"mastery_threshold\">#{(tag.mastery_score || 0) * 100.0}</span>%") %></span>
|
||||
</li>
|
||||
<% end %>
|
||||
<li class="blank outcome" style="display: none;">
|
||||
<span class="short_description"> </span>
|
||||
<a href="#" class="delete_outcome_link no-hover"><%= image_tag "delete_circle.png" %></a>
|
||||
<span class="clear"></span>
|
||||
<span class="content">mastery at <span class="mastery_threshold"> </span>%</span>
|
||||
<span class="content"><%= t :mastery_threshold, "mastery at %{threshold_percentage}", :threshold_percentage => raw("<span class=\"mastery_threshold\"> </span>%") %></span>
|
||||
</li>
|
||||
</ul>
|
||||
<a href="#" class="button button-sidebar-wide add_outcome_link"><%= image_tag "ball.png" %> <span class="add_outcome_text">Align Outcome</span></a>
|
||||
<a href="#" class="button button-sidebar-wide add_outcome_link"><%= image_tag "ball.png" %> <span class="add_outcome_text"><%= t 'links.align_outcome', "Align Outcome" %></span></a>
|
||||
</div>
|
||||
<%= render :partial => 'shared/find_outcome', :locals => {:purpose => 'question_bank'} %>
|
||||
<% end %>
|
||||
|
@ -78,7 +78,7 @@
|
|||
|
||||
<% if @questions.total_pages > 1 %>
|
||||
<div id="more_questions" data-current-page="1" data-total-pages="<%= @questions.total_pages %>" style="font-size: 1.2em; font-weight: bold; text-align: center;">
|
||||
<a href="<%= context_url(@context, :context_question_bank_questions_url, @bank, :page => "{{ page }}") %>" class="more_questions_link">more questions</a>
|
||||
<a href="<%= context_url(@context, :context_question_bank_questions_url, @bank, :page => "{{ page }}") %>" class="more_questions_link"><%= t 'links.more_questions', "more questions" %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
@ -252,7 +252,7 @@ $(document).ready(function() {
|
|||
|
||||
$bank.find("input").attr('id', "question_bank_" + bank.id).val(bank.id);
|
||||
$bank.find("label").attr('for', "question_bank_" + bank.id)
|
||||
.find(".bank_name").text(bank.title || "No Name").end()
|
||||
.find(".bank_name").text(bank.title || I18n.t('default_name', "No Name")).end()
|
||||
.find(".context_name").text(bank.cached_context_short_name);
|
||||
$dialog.find("ul.banks").find("li.bank.bank:first").before($bank.show());
|
||||
};
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
<% number_type = "range" if answer_type == "numerical_answer" && hash_get(answer, :numerical_answer_type) != "exact_answer" %>
|
||||
<% number_type = "equation" if answer_type == "numerical_answer" && hash_get(answer, :variables) %>
|
||||
<div class="numerical_exact_answer answer_type" <%= hidden(true) unless number_type == 'exact' %>>
|
||||
<span class="answer_exact"><%= hash_get(answer, :exact, "0") %></span> (with margin: <span class="answer_error_margin"><%= hash_get(answer, :margin, "0") %></span>)
|
||||
<span class="answer_exact"><%= hash_get(answer, :exact, "0") %></span> (<%= before_label :answer_with_margin, 'with margin' %> <span class="answer_error_margin"><%= hash_get(answer, :margin, "0") %></span>)
|
||||
</div>
|
||||
<div class="numerical_range_answer answer_type" <%= hidden(true) unless number_type == 'range' %>>
|
||||
<%= t(:range_answer, "Between %{lower_bound} and %{upper_bound}",
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
<% show_headers = @quiz && @quiz.show_correct_answers && user_answer && question_type.display_answers == "single" && hash_get(question, :question_type) != "essay_question" %>
|
||||
<% if show_headers %>
|
||||
<div style="margin-left: 20px; font-size: 0.8em;">
|
||||
<u>Correct Answer(s)</u>:
|
||||
<u><%= before_label :correct_answers2, "Correct Answer(s)" %></u>
|
||||
<div style="xfont-size: 0.8em;">
|
||||
<% end %>
|
||||
<% if editing || show_headers || !question_type.entry_type.match(/text_box/) %>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div style="float: left; background-color: #fff;">
|
||||
<input type="text" style="width: 150px;" name="question_name"/>
|
||||
<span class="question_points_holder">
|
||||
<span style="padding-left: 20px;">pts:</span>
|
||||
<span style="padding-left: 20px;"><%= before_label :points, 'pts' %></span>
|
||||
<input class="float_value" type="text" style="width: 25px;" name="question_points"/>
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<% end %>
|
||||
<% else %>
|
||||
<select name="question_<%= hash_get(question, :id) %>_answer_<%= hash_get(answer, :id) %>" class="question_input" style="max-width: 90%;">
|
||||
<option value="" <%= "selected" unless @stored_params["question_#{hash_get(question, :id)}_answer_#{hash_get(answer, :id)}"] %>>[ Choose ]</option>
|
||||
<option value="" <%= "selected" unless @stored_params["question_#{hash_get(question, :id)}_answer_#{hash_get(answer, :id)}"] %>>[ <%= t :choose_answer, "Choose" %> ]</option>
|
||||
<% right_answers.once_per{|a| hash_get(a, :right) || (hash_get(question, :matches, []).find{|aa| hash_get(aa, :match_id).to_i == hash_get(a, :match_id).to_i}[:text] rescue '') }.each do |a| %>
|
||||
<option value="<%= hash_get(a, :match_id) %>" <%= "selected" if @stored_params["question_#{hash_get(question, :id)}_answer_#{hash_get(answer, :id)}"].to_s == hash_get(a, :match_id).to_s %>><%= (hash_get(a, :right) || (hash_get(question, :matches).find{|aa| hash_get(aa, :match_id).to_i == hash_get(a, :match_id).to_i}[:text] rescue '')) %></option>
|
||||
<% end %>
|
||||
|
|
|
@ -118,7 +118,7 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<div style="text-align: right; font-size: 0.8em; margin-top: 0;">
|
||||
<a href="#" class="toggle_rubric_link">Show Rubric</a>
|
||||
<a href="#" class="toggle_rubric_link"><%= t 'links.show_rubric', 'Show Rubric' %></a>
|
||||
</div>
|
||||
<div class="rubric_holder" style="display: none;">
|
||||
<%= render :partial => "shared/rubric", :object => (association.rubric rescue nil), :locals => {:editable => true, :rubric_association => association} %>
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
});
|
||||
</script>
|
||||
<% end %>
|
||||
<h2><%= @context.class.to_s %> Rubrics</h2>
|
||||
<h2><%= t 'headings.user_rubrics', 'User Rubrics' %></h2>
|
||||
<a href="<%= context_url(@context, :context_rubrics_url) %>" id="add_rubric_url" style="display: none;"> </a>
|
||||
<div id="rubrics" class="raw_listing">
|
||||
<ul>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<%= txt %>
|
||||
</a>
|
||||
<% end %>
|
||||
<a href="<%= context_url(@context, :context_conference_close_url, conference ? conference.id : "{{ id }}") %>" class="button close_conference_link" style="<%= hidden unless can_do(conference, @current_user, :close) %>">End it now</a>
|
||||
<a href="<%= context_url(@context, :context_conference_close_url, conference ? conference.id : "{{ id }}") %>" class="button close_conference_link" style="<%= hidden unless can_do(conference, @current_user, :close) %>"><%= t('#conferences.show.buttons.close', "End it now") %></a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
<div style="margin-top: 20px; display: none;">
|
||||
<a href="#" class="custom_search_results_link find">Search for Open Resources Related to this Page</a>
|
||||
<a href="#" class="custom_search_results_link find"><%= t 'links.search_for_resources', 'Search for Open Resources Related to this Page' %></a>
|
||||
</div>
|
||||
<div id="custom_search_results_dialog" style="display: none;">
|
||||
<div id="cse" style="width: 100%;">Loading</div>
|
||||
<div id="cse" style="width: 100%;"><%= t 'status.loading', 'Loading' %></div>
|
||||
</div>
|
||||
<script src="//www.google.com/jsapi" type="text/javascript"></script>
|
||||
<script type="text/javascript">
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
contexts_to_link_to ||= nil
|
||||
%>
|
||||
<div class="events_list">
|
||||
<h2><a class='event-list-view-calendar small-calendar' href='<%= calendar_url_for(contexts_to_link_to) %>'>View Calendar</a><%= title %></h2>
|
||||
<h2><a class='event-list-view-calendar small-calendar' href='<%= calendar_url_for(contexts_to_link_to) %>'><%= t 'links.view_calendar', "View Calendar" %></a> <%= title %></h2>
|
||||
<ul class="right-side-list events">
|
||||
<% if !event_list || event_list.empty? %>
|
||||
<li>
|
||||
|
@ -54,4 +54,4 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<% show_limit ||= 15; conferences ||= []; show_context ||= false; recent_messages ||= [] %>
|
||||
<h2>Recent Activity</h2>
|
||||
<h2><%= t 'headings.recent_activity', 'Recent Activity' %></h2>
|
||||
<div class="clear"></div>
|
||||
<div id="topic_list" class="recent_messages_list <%= 'recent_messages_show_context' if show_context %>">
|
||||
<%= render :partial => 'users/account_notification', :collection => @account_notifications %>
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
<div class="new" style="margin-top: 5px;">
|
||||
<table>
|
||||
<tr>
|
||||
<td>File:</td>
|
||||
<td><%= before_label :file, "File" %></td>
|
||||
<td><input id="module_attachment_uploaded_data" type="file" name="attachment[uploaded_data]" class="item_title"/></td>
|
||||
</tr><tr>
|
||||
<td>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<%= f.hidden_field :user_id, :value=>@user.id %>
|
||||
<table class="formtable" style="width: 100%;">
|
||||
<tr>
|
||||
<td style="font-weight: bold">Title:</td>
|
||||
<td style="font-weight: bold"><%= before_label :title, "Title" %></td>
|
||||
<td><%= f.text_field :title, :class => "title" %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
</div>
|
||||
<div style="margin-top: 20px;">
|
||||
<span id="selected_name" style="font-weight: bold; padding-right: 10px;"></span>
|
||||
<a href="#" style="display: none;" rel="<%= user_admin_merge_url(@user.id, :pending_user_id => "{{ id }}") %>" id="select_name" type='button' class='button small-button select_button'>Select</a>
|
||||
<a href="#" style="display: none;" rel="<%= user_admin_merge_url(@user.id, :pending_user_id => "{{ id }}") %>" id="select_name" type='button' class='button small-button select_button'><%= t 'links.select', "Select" %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
</td>
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
</div>
|
||||
<% if WikiPage.comments_enabled? && @context.allow_wiki_comments && !@page.new_record? %>
|
||||
<div id="wiki_page_comments">
|
||||
<h2>Page Comments</h2>
|
||||
<h2><%= t 'headings.page_comments', "Page Comments" %></h2>
|
||||
<% comments = @page.wiki_page_comments.active.current_first.paginate(:page => 1, :per_page => 5) %>
|
||||
<% if @context.allow_wiki_comments || can_do(@context, @current_user, :manage_wiki) %>
|
||||
<%= render :partial => "wiki_pages/wiki_page_comment_form" %>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<%= render :partial => 'wiki_pages/page_link' %>
|
||||
<% common_pages = pages.sort_by{|p| p.view_count} %>
|
||||
<%= render :partial => 'wiki_pages/page_link', :collection => common_pages[0..3], :locals => {:skip_front_page => true} %>
|
||||
<li><a href="#" class="more_pages_link" style="padding-left: 20px; font-size: 0.9em; <%= hidden unless common_pages.length > 4 %>">more...</a></li>
|
||||
<li><a href="#" class="more_pages_link" style="padding-left: 20px; font-size: 0.9em; <%= hidden unless common_pages.length > 4 %>"><%= t 'links.more', 'more...' %></a></li>
|
||||
<%= render :partial => 'wiki_pages/page_link', :collection => common_pages[4..9], :locals => {:skip_front_page => true, :hidden => true} %>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<ul class="item_list limit_height" style="max-height: 100px;">
|
||||
<% recent_pages = pages.sort_by{|p| p.last_revision_at}.reverse %>
|
||||
<%= render :partial => 'wiki_pages/page_link', :collection => recent_pages[0..2] %>
|
||||
<li><a href="#" class="more_pages_link" style="padding-left: 20px; font-size: 0.9em; <%= hidden unless recent_pages.length > 3 %>">more...</a></li>
|
||||
<li><a href="#" class="more_pages_link" style="padding-left: 20px; font-size: 0.9em; <%= hidden unless recent_pages.length > 3 %>"><%= t 'links.more', 'more...' %></a></li>
|
||||
<%= render :partial => 'wiki_pages/page_link', :collection => recent_pages[3..9], :locals => {:skip_front_page => true, :hidden => true} %>
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -90,7 +90,7 @@
|
|||
<% end %>
|
||||
<div id="wiki_edit_view_secondary" style="display:none;">
|
||||
<div>
|
||||
<h2>Page Tools</h2>
|
||||
<h2><%= t 'headers.page_tools', 'Page Tools' %></h2>
|
||||
<ul class="item_list">
|
||||
<% unless @page.url == "front-page" || @page.new_record? %>
|
||||
<li>
|
||||
|
|
Loading…
Reference in New Issue