Handle RTL in inline styles
Closes: CORE-1243 These are all the places that we are using in line styles that w ould be affected in right to left. This change does absolutely nothing to our existing left to right CSS it just flips it in right to left. Test plan: Because this change does not change anything for our left-to-right users We can safely merge it without having to manually check these pages Just likewe did With the other automated CSS changes Change-Id: I62841f4b47925b4d9594c3ca914fa3e5d53fd7b0 Reviewed-on: https://gerrit.instructure.com/145447 Tested-by: Jenkins Reviewed-by: Clay Diffrient <cdiffrient@instructure.com> Product-Review: Ryan Shaw <ryan@instructure.com> QA-Review: Ryan Shaw <ryan@instructure.com>
This commit is contained in:
parent
d7330affb2
commit
1eafdf5755
|
@ -248,6 +248,12 @@ module ApplicationHelper
|
|||
@current_user.try(:feature_enabled?, :force_rtl) || (@domain_root_account.try(:feature_enabled?, :allow_rtl) && I18n.rtl?)
|
||||
end
|
||||
|
||||
# this is exactly the same as our sass helper with the same name
|
||||
# see: https://www.npmjs.com/package/sass-direction
|
||||
def direction(left_or_right)
|
||||
use_rtl? ? {'left' => 'right', 'right' => 'left'}[left_or_right] : left_or_right
|
||||
end
|
||||
|
||||
def css_variant(opts = {})
|
||||
variant = use_responsive_layout? ? 'responsive_layout' : 'new_styles'
|
||||
use_high_contrast = @current_user && @current_user.prefers_high_contrast? || opts[:force_high_contrast]
|
||||
|
|
|
@ -80,7 +80,7 @@ ldap_tests << OpenStruct.new(
|
|||
<h3>
|
||||
<%= t(:test_ldap_dialog_page_title, "Testing Your LDAP Configuration") %>
|
||||
</h3>
|
||||
<table style="margin-left:20px">
|
||||
<table style="margin-<%= direction('left') %>:20px">
|
||||
<% ldap_tests.each do |test| %>
|
||||
<tr>
|
||||
<td><h4 style="width: 400px"><%= test.label %></h4></td>
|
||||
|
@ -89,7 +89,7 @@ ldap_tests << OpenStruct.new(
|
|||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="ldap_<%= test.test_type %>_help"
|
||||
style="padding-left:15px;display:none">
|
||||
style="padding-<%= direction('left') %>:15px;display:none">
|
||||
<h4><%= test.help_header %></h4>
|
||||
<p>
|
||||
<%= test.help_body %>
|
||||
|
@ -110,7 +110,7 @@ ldap_tests << OpenStruct.new(
|
|||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="ldap_login_form"
|
||||
style="padding-left:15px;padding-bottom:10px;display:none;">
|
||||
style="padding-<%= direction('left') %>:15px;padding-bottom:10px;display:none;">
|
||||
<h4>
|
||||
<%= t(:test_ldap_login_form_header,
|
||||
"Supply a valid LDAP username/password to test login:") %>
|
||||
|
@ -132,7 +132,7 @@ ldap_tests << OpenStruct.new(
|
|||
<td>
|
||||
<%= password_field :ldap_test_login, :pass, style: "width:170px" %>
|
||||
</td>
|
||||
<td style="padding-left:26px;">
|
||||
<td style="padding-<%= direction('left') %>:26px;">
|
||||
<input type="submit"
|
||||
value="<%= t(:ldap_test_login_button, "Test Login") %>"/>
|
||||
</td>
|
||||
|
@ -144,7 +144,7 @@ ldap_tests << OpenStruct.new(
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div id="ldap_login_help" style="padding-left:15px;display:none">
|
||||
<div id="ldap_login_help" style="padding-<%= direction('left') %>:15px;display:none">
|
||||
<p id="ldap_login_help_error" style='color:red'>
|
||||
<%= t(:test_ldap_login_help_header,
|
||||
"The LDAP server denied your credentials") %>
|
||||
|
@ -153,7 +153,7 @@ ldap_tests << OpenStruct.new(
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<button type="button" class="btn submit_button ldap_test_close" style="float:right">
|
||||
<button type="button" class="btn submit_button ldap_test_close" style="float:<%= direction('right') %>">
|
||||
<%= t(:test_ldap_dialog_close, "Close") %>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<% if course %>
|
||||
<div class="details ellipsis">
|
||||
<div>
|
||||
<span style="padding-right: 30px;">
|
||||
<span style="padding-<%= direction('right') %>: 30px;">
|
||||
<%= show_code_and_term_for(course) %>
|
||||
</span>
|
||||
|
||||
|
|
|
@ -38,13 +38,13 @@
|
|||
padding: 2px 0;
|
||||
}
|
||||
#avatars td.link_holder {
|
||||
text-align: right;
|
||||
text-align: <%= direction('right') %>;
|
||||
}
|
||||
</style>
|
||||
<% end %>
|
||||
<h1><%= t(:title, "Profile Pictures") %></h1>
|
||||
<div class="views">
|
||||
<span style="padding-right: 10px; font-weight: bold;"><%= before_label :show, 'Show' %> </span>
|
||||
<span style="padding-<%= direction('right') %>: 10px; font-weight: bold;"><%= before_label :show, 'Show' %> </span>
|
||||
<a href="?avatar_state=submitted" id="submitted_profile" class="<%= 'selected' if @avatar_state == 'submitted' %>"><%= t(:submitted_link, { :zero => "Submitted", :one => "Submitted %{count}", :other => "Submitted %{count}" }, :count => @avatar_counts[:submitted] || 0) %></a> |
|
||||
<a href="?avatar_state=reported" id="reported_profile"class="<%= 'selected' if @avatar_state == 'reported' %>"><%= t(:reported_link, { :zero => "Reported", :one => "Reported %{count}", :other => "Reported %{count}" }, :count => @avatar_counts[:reported] || 0) %></a> |
|
||||
<a href="?avatar_state=re_reported" id="re_reported_profile" class="<%= 'selected' if @avatar_state == 're_reported' %>"><%= t(:re_reported_link, { :zero => "Approved, Re-Reported", :one => "Approved, Re-Reported %{count}", :other => "Approved, Re-Reported %{count}"}, :count => @avatar_counts[:re_reported] || 0) %></a> |
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
}
|
||||
fieldset.nested {
|
||||
margin-top: 0;
|
||||
margin-left: 20px;
|
||||
margin-<%= direction('left') %>: 20px;
|
||||
}
|
||||
legend{
|
||||
font-size: 1.1em;
|
||||
|
@ -696,10 +696,10 @@ acknowledge that you have read and agreed to the
|
|||
:class => 'notification_from_name_option' %>
|
||||
<%= settings.label :outgoing_email_default_name_option_default, :en => "Default Canvas Setting" %>
|
||||
</div>
|
||||
<div style='padding-left: 2em;'>
|
||||
<div style='padding-<%= direction('left') %>: 2em;'>
|
||||
<strong><%= t 'notifications.example', 'Example:' %></strong>
|
||||
<blockquote>
|
||||
<table class="formtable" style='margin-left: 1.5em;'>
|
||||
<table class="formtable" style='margin-<%= direction('left') %>: 1.5em;'>
|
||||
<tr>
|
||||
<td><%= t 'notifications.from', 'From' %></td>
|
||||
<td><%= HostUrl.outgoing_email_default_name %> <%= '<notifications@instructure.com>' %></td>
|
||||
|
@ -729,17 +729,17 @@ acknowledge that you have read and agreed to the
|
|||
:class => 'notification_from_name_option' %>
|
||||
<%= settings.label :outgoing_email_default_name_option_custom, :en => 'Custom "From" Name' %>
|
||||
</div>
|
||||
<div style='padding-left: 2em;'>
|
||||
<div style='padding-<%= direction('left') %>: 2em;'>
|
||||
<p>
|
||||
<%= t('notifications.custom_name_description', 'If selected, this will replace all other branding sent in Canvas notifications.') %>
|
||||
<br/>
|
||||
<%= text_field_tag 'account[settings][outgoing_email_default_name]', @account.settings[:outgoing_email_default_name] %>
|
||||
</p>
|
||||
</div>
|
||||
<div style='padding-left: 2em;'>
|
||||
<div style='padding-<%= direction('left') %>: 2em;'>
|
||||
<strong><%= t 'notifications.example', 'Example:' %></strong>
|
||||
<blockquote>
|
||||
<table class="formtable" style='margin-left: 1.5em;'>
|
||||
<table class="formtable" style='margin-<%= direction('left') %>: 1.5em;'>
|
||||
<tr>
|
||||
<td><%= t 'notifications.from', 'From' %></td>
|
||||
<td><strong id='custom_default_name_display'></strong> <%= '<notifications@instructure.com>' %></td>
|
||||
|
@ -775,7 +775,7 @@ acknowledge that you have read and agreed to the
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<table style="margin-left: 1.5em;" cellspacing="0" class="formtable">
|
||||
<table style="margin-<%= direction('left') %>: 1.5em;" cellspacing="0" class="formtable">
|
||||
<tr>
|
||||
<td>
|
||||
<b><%= t('notifications.external_services_warning_label', 'Pop-up Message Content:') %></b>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
<%= mt(:override_sis_stickiness_instructions,
|
||||
"By default, UI changes have priority over SIS import changes; for a number of fields, the SIS import will not change that field's data if an admin has changed that field through the UI. If you select this option, this SIS import will override UI changes. \nSee the documentation for details.") %>
|
||||
</p>
|
||||
<div id="add_sis_stickiness_container" style="padding-left: 20px;">
|
||||
<div id="add_sis_stickiness_container" style="padding-<%= direction('left') %>: 20px;">
|
||||
<input type="checkbox" name="add_sis_stickiness" value="1" id="add_sis_stickiness"/>
|
||||
<label for="add_sis_stickiness"><%= t(:add_sis_stickiness_label, "Process as UI changes") %></label>
|
||||
<p class='instruction'>
|
||||
|
@ -80,7 +80,7 @@
|
|||
"With this option selected, changes made through this SIS import will be processed as if they are UI changes, preventing subsequent non-overriding SIS imports from changing the fields changed here.") %>
|
||||
</p>
|
||||
</div>
|
||||
<div id="clear_sis_stickiness_container" style="padding-left: 20px;">
|
||||
<div id="clear_sis_stickiness_container" style="padding-<%= direction('left') %>: 20px;">
|
||||
<input type="checkbox" name="clear_sis_stickiness" value="1" id="clear_sis_stickiness"/>
|
||||
<label for="clear_sis_stickiness"><%= t(:clear_sis_stickiness_label, "Clear UI-changed state") %></label>
|
||||
<p class='instruction'>
|
||||
|
|
|
@ -41,22 +41,22 @@
|
|||
<tr>
|
||||
<th scope="row"><%= before_label(:courses, "Courses") %></th>
|
||||
<td><%= n(@counts_report['courses']) %></td>
|
||||
<td style="font-size: 0.8em; padding-left: 20px;"><a href="#" class="over_time_link" data-key="courses" data-name="<%= t('labels.courses', "Courses") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
<td style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;"><a href="#" class="over_time_link" data-key="courses" data-name="<%= t('labels.courses', "Courses") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><%= before_label(:teachers, "Teachers") %></th>
|
||||
<td><%= n(@counts_report['teachers']) %></td>
|
||||
<td style="font-size: 0.8em; padding-left: 20px;"><a href="#" class="over_time_link" data-key="teachers" data-name="<%= t('labels.teachers', "Teachers") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
<td style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;"><a href="#" class="over_time_link" data-key="teachers" data-name="<%= t('labels.teachers', "Teachers") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><%= before_label(:students, "Students") %></th>
|
||||
<td><%= n(@counts_report['students']) %></td>
|
||||
<td style="font-size: 0.8em; padding-left: 20px;"><a href="#" class="over_time_link" data-key="students" data-name="<%= t('labels.students', "Students") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
<td style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;"><a href="#" class="over_time_link" data-key="students" data-name="<%= t('labels.students', "Students") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><%= before_label(:users, "Users") %></th>
|
||||
<td><%= n(@counts_report['users']) %></td>
|
||||
<td style="font-size: 0.8em; padding-left: 20px;"><a href="#" class="over_time_link" data-key="users" data-name="<%= t('labels.users', "Users") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
<td style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;"><a href="#" class="over_time_link" data-key="users" data-name="<%= t('labels.users', "Users") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="col"><%= t(:file_storage_header, "File Storage") %></th>
|
||||
|
@ -70,7 +70,7 @@
|
|||
:file_size => number_to_human_size(@counts_report['files_size'] || 0), :count => @counts_report['files'],
|
||||
:wrapper => '<span style="font-size: 0.8em;">\1</span>') %>
|
||||
</td>
|
||||
<td style="font-size: 0.8em; padding-left: 20px;"><a href="#" class="over_time_link" data-key="files_size" data-name="<%= t(:uploaded_file_storage_header, "Uploaded File Storage") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
<td style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;"><a href="#" class="over_time_link" data-key="files_size" data-name="<%= t(:uploaded_file_storage_header, "Uploaded File Storage") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"> <%= before_label(:media_storage, "Media") %></th>
|
||||
|
@ -79,7 +79,7 @@
|
|||
:file_size => number_to_human_size(@counts_report['media_files_size'] || 0), :count => @counts_report['media_files'],
|
||||
:wrapper => '<span style="font-size: 0.8em;">\1</span>') %>
|
||||
</td>
|
||||
<td style="font-size: 0.8em; padding-left: 20px;"><a href="#" class="over_time_link" data-key="media_files_size" data-name="<%= t(:media_file_storage_header, "Media File Storage") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
<td style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;"><a href="#" class="over_time_link" data-key="media_files_size" data-name="<%= t(:media_file_storage_header, "Media File Storage") %>"><%= t(:over_time_link, "over time") %></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% end %>
|
||||
|
@ -155,7 +155,7 @@
|
|||
|
||||
<div id="over_time_dialog" style="display: none;">
|
||||
<div id='over_time' style='width: 600px; height: 240px;'></div>
|
||||
<div style="text-align: right;">
|
||||
<div style="text-align: <%= direction('right') %>;">
|
||||
<a href="#" class="csv_url xls"><%= t(:download_csv_link, "Download csv") %></a>
|
||||
</div>
|
||||
<a href="<%= context_url(@context, :context_statistics_graph_url, '{{ attribute }}') %>" class="over_time_url" style="display: none;"> </a>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</a>
|
||||
</span>
|
||||
<span class="user_id" style="display: none;"><%= request.try_rescue(:asset).try_rescue(:user_id) || nbsp %></span>
|
||||
<div style="float: right;" class="review_links">
|
||||
<div style="float: <%= direction('right') %>;" class="review_links">
|
||||
<% user = request.try_rescue(:assessor).try_rescue(:name)
|
||||
user ||= t 'titles.user_default', "User"
|
||||
reminder = t 'titles.remind_reviewer', "Remind %{user} about Assessment", :user => user
|
||||
|
|
|
@ -133,7 +133,7 @@
|
|||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="signature" style="font-size: 0.8em; text-align: right; color: #888;">
|
||||
<div class="signature" style="font-size: 0.8em; text-align: <%= direction('right') %>; color: #888;">
|
||||
<%= t :comment_signature, "%{author}, %{created_at}", {
|
||||
:author => comment_author_name_for(comment),
|
||||
:created_at => datetime_string(comment.created_at)
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
</td>
|
||||
</tr><tr>
|
||||
<td colspan="2" style="text-align: center;">
|
||||
<div style="text-align: left;">
|
||||
<div style="text-align: <%= direction('left') %>;">
|
||||
<%= text_area :submission, :comment, :class => 'submission_comment_textarea', :placeholder => t('comments_placeholder', 'Comments...'), :title => t('additional_comments', 'Additional comments') %>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -116,7 +116,7 @@
|
|||
cursor: pointer;
|
||||
-moz-border-radius: 3px;
|
||||
width: 80%;
|
||||
padding-right: 20px;
|
||||
padding-<%= direction('right') %>: 20px;
|
||||
}
|
||||
#google_docs_tree li.file:hover {
|
||||
background-color: #eee;
|
||||
|
@ -128,11 +128,11 @@
|
|||
background-color: #ddd;
|
||||
}
|
||||
#google_docs_tree li.file .filename {
|
||||
float: left;
|
||||
float: <%= direction('left') %>;
|
||||
max-width: 98%;
|
||||
}
|
||||
#google_docs_tree li.file .popout {
|
||||
float: right;
|
||||
float: <%= direction('right') %>;
|
||||
}
|
||||
</style>
|
||||
<% if show_google_docs %>
|
||||
|
@ -176,7 +176,7 @@
|
|||
</td>
|
||||
</tr><tr>
|
||||
<td colspan="2" style="text-align: center;">
|
||||
<div style="text-align: left;">
|
||||
<div style="text-align: <%= direction('left') %>;">
|
||||
<%= text_area :submission, :comment, :class => 'submission_comment_textarea', :placeholder => t('comments_placeholder', 'Comments...'), :title => t('additional_comments', 'Additional comments') %>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -248,7 +248,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center;">
|
||||
<div style="text-align: left;">
|
||||
<div style="text-align: <%= direction('left') %>;">
|
||||
<%= text_area :submission, :comment, :class => 'submission_comment_textarea', :placeholder => t('comments_placeholder', 'Comments...'), :title => t('additional_comments', 'Additional comments') %>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -313,7 +313,7 @@
|
|||
</td>
|
||||
</tr><tr>
|
||||
<td colspan="2" style="text-align: center;">
|
||||
<div style="text-align: left;">
|
||||
<div style="text-align: <%= direction('left') %>;">
|
||||
<%= text_area :submission, :comment, :class => 'submission_comment_textarea', :style => "height: 16px;", :placeholder => t('comments_placeholder', 'Comments...'), :title => t('additional_comments', 'Additional comments') %>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</td>
|
||||
</tr><tr>
|
||||
<td>
|
||||
<div style="text-align: right; font-size: 0.8em;">
|
||||
<div style="text-align: <%= direction('right') %>; font-size: 0.8em;">
|
||||
<a class="switch_text_entry_submission_views" href="#"><%= t '#editor.switch_editor_html', "HTML Editor" %></a>
|
||||
<a class="switch_text_entry_submission_views" href="#" style="display:none"><%= t '#editor.switch_editor_rich_text', "Rich Content Editor" %></a>
|
||||
</div>
|
||||
|
|
|
@ -50,7 +50,7 @@ DOC
|
|||
%>
|
||||
</div>
|
||||
<%= form_for @context.class.to_s.underscore.to_sym, :url => context_url(@context, :context_url), :html => {:id => 'edit_course_syllabus_form', :style => 'display: none; margin-bottom: 10px;', :method => :put} do |f| %>
|
||||
<div style="float: right;">
|
||||
<div style="float: <%= direction('right') %>;">
|
||||
<a href="#" class="toggle_views_link toggle_html_editor_link"><%= t '#editor.switch_editor_html', "HTML Editor" %></a>
|
||||
<a href="#" class="toggle_views_link toggle_rich_editor_link" style="display:none;"><%= t '#editor.switch_editor_rich_text', "Rich Content Editor" %></a>
|
||||
</div>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<%= t :overview, "Student peer reviews will be considered complete when students have commented
|
||||
at least once on the page." %>
|
||||
<% end %>
|
||||
<ul class="unstyled_list" style="margin-left: 20px;">
|
||||
<ul class="unstyled_list" style="margin-<%= direction('left') %>: 20px;">
|
||||
<li style="<%= hidden unless @students.empty? %>" class="no_students_message"><%= t 'messages.no_students_found', "No Students Found" %></li>
|
||||
<% @students.each do |student| %>
|
||||
<% submission = @submissions.to_a.find{|s| s.user_id == student.id} %>
|
||||
|
@ -63,7 +63,7 @@
|
|||
<span class="assessor_name"><%= student.last_name_first %></span>
|
||||
<span class="user_id student_review_id" style="display: none;"><%= student.id %></span>
|
||||
</a>
|
||||
<ul class="unstyled_list peer_reviews" style="padding-left: 21px; font-size: 0.8em; width: 50%;">
|
||||
<ul class="unstyled_list peer_reviews" style="padding-<%= direction('left') %>: 21px; font-size: 0.8em; width: 50%;">
|
||||
<li class="peer_review no_requests_message" style="<%= hidden unless !submission || submission.assigned_assessments.empty? %>"><%= t :none_assigned, "None Assigned" %></li>
|
||||
<% if submission %>
|
||||
<% Canvas::ICU.collate_by(submission.assigned_assessments) {|r| r.asset.user.sortable_name }.each do |request| %>
|
||||
|
@ -73,7 +73,7 @@
|
|||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div style="margin-left: 25px; font-size: 0.7em;" class="assign_box">
|
||||
<div style="margin-<%= direction('left') %>: 25px; font-size: 0.7em;" class="assign_box">
|
||||
<a href="#" class="assign_peer_review_link"><%= t 'links.assign_peer_review', "Give %{student} another submission to assess", :student => student.name %>
|
||||
<i class="icon-add" role="presentation"></i>
|
||||
</a>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<div id="full_calendar_event_holder">
|
||||
<div class="calendar_event" id="full_calendar_event">
|
||||
<div style="float: right; text-align: right; font-size: 0.8em;">
|
||||
<div style="float: <%= direction('right') %>; text-align: <%= direction('right') %>; font-size: 0.8em;">
|
||||
<div class="date_text" style="<%= hidden unless calendar_event && calendar_event.start_at %>">
|
||||
<span class="start_at_date_string" title="<%= date_string(calendar_event.start_at, :long) %>"><%= date_string(calendar_event.start_at, :long) %></span>
|
||||
<span class="non_all_day" style="<%= hidden if calendar_event.try_rescue(:all_day) %>">
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<legend><%= t :select_quizzes, "Select Quizzes to Export" %></legend>
|
||||
<div style="overflow: auto; max-height: 200px">
|
||||
<%= check_box :copy, :all_quizzes, :class => "copy_all", :checked => true %><%= label :copy, :all_quizzes, t('labels.all_quizzes', "All Quizzes") %>
|
||||
<ul class="unstyled_list" style="margin-left: 20px;">
|
||||
<ul class="unstyled_list" style="margin-<%= direction('left') %>: 20px;">
|
||||
<% @context.quizzes.active.each do |quiz| %>
|
||||
<li>
|
||||
<%= check_box "copy[quizzes]", mig_id(quiz), :class => 'quiz_item', :checked => true %>
|
||||
|
|
|
@ -140,13 +140,13 @@
|
|||
<div><%= t 'enrolled_as', "Enrolled as a %{enrollment_type}", :enrollment_type => enrollment.readable_type %></div>
|
||||
<div>created <%= datetime_string(enrollment.created_at) %></div>
|
||||
<% if enrollment.is_a?(ObserverEnrollment) %>
|
||||
<div style="font-size: 0.8em; padding-left: 20px; <%= hidden unless enrollment.associated_user %>" class="associated_user" >
|
||||
<div style="font-size: 0.8em; padding-<%= direction('left') %>: 20px; <%= hidden unless enrollment.associated_user %>" class="associated_user" >
|
||||
<%= t 'enrollment_linked_to', "linked to *%{linked_user}*",
|
||||
:linked_user => context_user_name(@context, enrollment.associated_user),
|
||||
:wrapper => '<span class="associated_user_name">\1</span>' %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div style="font-size: 0.8em; padding-left: 20px; <%= hidden unless enrollment.completed? || enrollment.inactive? %>" class="completed_at_holder">
|
||||
<div style="font-size: 0.8em; padding-<%= direction('left') %>: 20px; <%= hidden unless enrollment.completed? || enrollment.inactive? %>" class="completed_at_holder">
|
||||
<% if enrollment.workflow_state == 'inactive' %>
|
||||
<%= t 'inactive' %>
|
||||
<% elsif enrollment.completed_at %>
|
||||
|
@ -184,13 +184,13 @@
|
|||
<td>
|
||||
<div class="elevate_enrollment_link_holder" style="<%= hidden if @enrollments.any?{|e| !e.limit_privileges_to_course_section } %>">
|
||||
<%= t('user_only_view_section', %{this user can only view students in their assigned course section(s)}) %>
|
||||
<div style="margin-left: 10px; font-size: 0.8em;">
|
||||
<div style="margin-<%= direction('left') %>: 10px; font-size: 0.8em;">
|
||||
<a href="<%= context_url(@context, :context_limit_user_grading_url, @user.id) %>" class="elevate_enrollment_link"><%= t('links.user_view_all_sections', %{let this user see all course users}) %></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="restrict_enrollment_link_holder" style="<%= hidden unless @enrollments.any?{|e| !e.limit_privileges_to_course_section } %>">
|
||||
<%= t('user_view_all_sections', %{this user can view students in any course section}) %>
|
||||
<div style="margin-left: 10px; font-size: 0.8em;">
|
||||
<div style="margin-<%= direction('left') %>: 10px; font-size: 0.8em;">
|
||||
<a href="<%= context_url(@context, :context_limit_user_grading_url, @user.id) %>" class="restrict_enrollment_link"><%= t('links.user_only_view_section', %{limit this user to only see fellow section users}) %></a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
.user_list {
|
||||
padding-left: 30px;
|
||||
padding-<%= direction('left') %>: 30px;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
@ -69,13 +69,13 @@
|
|||
margin-bottom: 0;
|
||||
}
|
||||
.short_description {
|
||||
padding-left: 30px;
|
||||
padding-<%= direction('left') %>: 30px;
|
||||
font-size: 0.8em;
|
||||
max-width: 500px;
|
||||
}
|
||||
.service_type img {
|
||||
vertical-align: middle;
|
||||
padding-right: 5px;
|
||||
padding-<%= direction('right') %>: 5px;
|
||||
}
|
||||
</style>
|
||||
<% end %>
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th><%= t('table_headings.content', %{Content}) %></th>
|
||||
<th style="text-align: right;"><%= t('table_headings.num_times_viewed', %{Times Viewed}) %></th>
|
||||
<th style="text-align: right;"><%= t('table_headings.num_times_participated', %{Times Participated}) %></th>
|
||||
<th style="text-align: <%= direction('right') %>;"><%= t('table_headings.num_times_viewed', %{Times Viewed}) %></th>
|
||||
<th style="text-align: <%= direction('right') %>;"><%= t('table_headings.num_times_participated', %{Times Participated}) %></th>
|
||||
<th><%= t('table_headings.last_viewed_time', %{Last Viewed}) %></th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
|
@ -29,14 +29,14 @@
|
|||
-moz-border-radius: 5px;
|
||||
}
|
||||
#deleted_items_list li .links {
|
||||
float: right;
|
||||
float: <%= direction('right') %>;
|
||||
}
|
||||
#deleted_items_list li .name {
|
||||
font-weight: bold;
|
||||
font-side: 1.1em;
|
||||
}
|
||||
#deleted_items_list li .type {
|
||||
margin-left: 20px;
|
||||
margin-<%= direction('left') %>: 20px;
|
||||
font-style: italic;
|
||||
}
|
||||
#deleted_items_list li .details {
|
||||
|
@ -49,7 +49,7 @@
|
|||
font-style: italic;
|
||||
}
|
||||
#deleted_items_list li .dates td {
|
||||
padding-right: 5px;
|
||||
padding-<%= direction('right') %>: 5px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
@ -215,7 +215,7 @@
|
|||
<% } %>
|
||||
<span class="min_score_box" style="display: none;" tabindex="0">
|
||||
<label class="screenreader-only" for="criterion_min_score"><%= t('Minimum Score') %></label>
|
||||
<input id="criterion_min_score" type="text" class="min_score" style="width: 30px; margin-right: 5px;"/>
|
||||
<input id="criterion_min_score" type="text" class="min_score" style="width: 30px; margin-<%= direction('right') %>: 5px;"/>
|
||||
<span class="points_possible_parent"><%= t 'assignment_points_possible', '/ %{points_possible}', :points_possible => '<span class="points_possible"> </span>'.html_safe %></span>
|
||||
</pan>
|
||||
</div>
|
||||
|
|
|
@ -60,7 +60,7 @@
|
|||
</li>
|
||||
<li>
|
||||
<span style="padding:0" class="ui-listview-text">
|
||||
<%= iframe(@tag.url, :id => 'file_content', :style => "width:100%; height: 400px; float:left;") %>
|
||||
<%= iframe(@tag.url, :id => 'file_content', :style => "width:100%; height: 400px; float:#{ direction('left') };") %>
|
||||
<!-- had to float then clear this because there was a space below the iframe I couldnt figure out how to get to go away -->
|
||||
<div class="clear"></div>
|
||||
</span>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<div class="event-details">
|
||||
<% if comment && comment.media_comment? %>
|
||||
<% kaltura_thumbnail_url = CanvasKaltura::ClientV3.new.thumbnail_url(comment.media_comment_id, :width => 50, :height => 35, :bgcolor => "F3F4F5") %>
|
||||
<img src="<%= kaltura_thumbnail_url %>" style="max-width: 50px; max-height: 35px; float: right; padding-left: 3px;" alt=""/>
|
||||
<img src="<%= kaltura_thumbnail_url %>" style="max-width: 50px; max-height: 35px; float: <%= direction('right') %>; padding-<%= direction('left') %>: 3px;" alt=""/>
|
||||
<% end %>
|
||||
<b class="event-details__title recent_feedback_title">
|
||||
<%= recent_feedback.assignment.title %>
|
||||
|
|
|
@ -307,7 +307,7 @@
|
|||
<td id="course_grading_scheme">
|
||||
<%= f.check_box :grading_standard_enabled, :class => "grading_standard_checkbox", :disabled => !can_manage %>
|
||||
<%= f.label :grading_standard_enabled, :en => "Enable course grading scheme" %>
|
||||
<div class="grading_standard_link" style="margin-left: 20px;">
|
||||
<div class="grading_standard_link" style="margin-<%= direction('left') %>: 20px;">
|
||||
<a href="#" class="edit_letter_grades_link"><%= @context.grading_standard_enabled? ? t('view_grading_scheme', "view grading scheme") : t('set_grading_scheme', "set grading scheme") %></a>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -422,8 +422,8 @@
|
|||
%>
|
||||
<% end %>
|
||||
</span>
|
||||
<a href="#" role="button" class="course_form course_form_more_options_link" style="padding-left: 20px;"><%= t('links.more_options', %{more options}) %></a>
|
||||
<div class="course_form_more_options" style="display: none; padding-left: 20px;">
|
||||
<a href="#" role="button" class="course_form course_form_more_options_link" style="padding-<%= direction('left') %>: 20px;"><%= t('links.more_options', %{more options}) %></a>
|
||||
<div class="course_form_more_options" style="display: none; padding-<%= direction('left') %>: 20px;">
|
||||
<% if @context.self_enrollment_allowed? %>
|
||||
<%= f.check_box :self_enrollment, :class => 'self_enrollment_checkbox', :disabled => !can_manage %>
|
||||
<label for="course_self_enrollment">
|
||||
|
@ -463,7 +463,7 @@
|
|||
<label for="course_default_wiki_editing_roles">
|
||||
<%= t(%{can create, rename, and edit course pages by default}) %>
|
||||
</label><br/>
|
||||
<div class="changed_default_wiki_editing_roles" style="display: none; padding-left: 20px; font-size: 0.8em;">
|
||||
<div class="changed_default_wiki_editing_roles" style="display: none; padding-<%= direction('left') %>: 20px; font-size: 0.8em;">
|
||||
<input type="checkbox" name="update_default_pages" id="update_default_pages"/>
|
||||
<label for="update_default_pages"><%= t 'wiki_editing_roles_change_existing', %{Change pages currently editable by "%{current_setting}" to "%{new_setting}".}, :current_setting => content_tag('span', @context.readable_default_wiki_editing_roles), :new_setting => content_tag('span', nbsp, :class => 'default_wiki_editing_roles_change') %></label>
|
||||
</div>
|
||||
|
|
|
@ -133,18 +133,18 @@
|
|||
<table>
|
||||
<tr>
|
||||
<td><%= before_label('allotted_storage', %{Allotted Storage}) %></td>
|
||||
<td style="padding-left: 10px; text-align: right;"><%= number_to_human_size(@context.quota) %></td>
|
||||
<td style="padding-<%= direction('left') %>: 10px; text-align: <%= direction('right') %>;"><%= number_to_human_size(@context.quota) %></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%= before_label('uploaded_files', %{Uploaded Files}) %></td>
|
||||
<td style="padding-left: 10px; text-align: right;"><%= number_to_human_size(@files_size) %></td>
|
||||
<td style="padding-left: 10px; text-align: right;"><%= t 'file_count', 'file', :count => @file_count %></td>
|
||||
<td style="padding-<%= direction('left') %>: 10px; text-align: <%= direction('right') %>;"><%= number_to_human_size(@files_size) %></td>
|
||||
<td style="padding-<%= direction('left') %>: 10px; text-align: <%= direction('right') %>;"><%= t 'file_count', 'file', :count => @file_count %></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><%= before_label('media_files', %{Media Files}) %></td>
|
||||
<td style="padding-left: 10px; text-align: right;"><%= number_to_human_size(@media_files_size) %></td>
|
||||
<td style="padding-left: 10px; text-align: right;"><%= t 'file_count', 'file', :count => @media_file_count %></td>
|
||||
<td style="padding-<%= direction('left') %>: 10px; text-align: <%= direction('right') %>;"><%= number_to_human_size(@media_files_size) %></td>
|
||||
<td style="padding-<%= direction('left') %>: 10px; text-align: <%= direction('right') %>;"><%= t 'file_count', 'file', :count => @media_file_count %></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<% else %>
|
||||
<div class="header_title">
|
||||
<% if out_of_context %>
|
||||
<span style="font-size: 0.8em; padding-left: 20px;">from
|
||||
<span style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;">from
|
||||
<% if assignment_visible_to_user %>
|
||||
<a href="<%= context_url(entry_context, :context_discussion_topic_url, (entry ? entry.discussion_topic_id : '{{ topic_id }}'), headless_param) %>" style="font-size: 1.2em; font-weight: bold;"><%= entry.discussion_topic.title %></a>
|
||||
<% else %>
|
||||
|
@ -82,7 +82,7 @@
|
|||
</div>
|
||||
<div class="content">
|
||||
<% unless hide_student_names %>
|
||||
<div style="float: left; margin: 0 5px 0 -10px;"><%= avatar((entry.try_rescue(:user_id)), context_code: entry_context.asset_string) %></div>
|
||||
<div style="float: <%= direction('left') %>; margin: 0 5px 0 -10px;"><%= avatar((entry.try_rescue(:user_id)), context_code: entry_context.asset_string) %></div>
|
||||
<% end %>
|
||||
<div class="course_id" style="display: none;"><%= entry_context.id if entry_context && entry_context.is_a?(Course) %></div>
|
||||
<div class="message user_content"><%= user_content(entry.try_rescue(:message)) || nbsp %></div>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div style="float: left; margin: 0 5px 0 -10px;"><%= avatar(entry.try_rescue(:user_id), context_code: entry_context.asset_string, size: 30) %></div>
|
||||
<div style="float: <%= direction('left') %>; margin: 0 5px 0 -10px;"><%= avatar(entry.try_rescue(:user_id), context_code: entry_context.asset_string, size: 30) %></div>
|
||||
<div class="course_id" style="display: none;"><%= entry_context.id if entry_context && entry_context.is_a?(Course) %></div>
|
||||
<div class="message user_content" style="<%= hidden unless entry %>"><%= user_content(entry.try_rescue(:message)) || nbsp %></div>
|
||||
<textarea class="message_html" style="display: none;"><%= h(entry.try_rescue(:message)) %></textarea>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<% eportfolio ||= nil %>
|
||||
<li id="portfolio_<%= eportfolio ? eportfolio.id : "blank" %>" style="<%= hidden unless eportfolio %> display: block; margin-bottom: 20px;">
|
||||
<a href="<%= eportfolio_path(eportfolio ? eportfolio.id : "{{ id }}") %>" class="icon-folder" style="font-size: 1.2em;"><span class="name"><%= eportfolio.name rescue nbsp %></span></a>
|
||||
<div style="padding-left: 30px;">
|
||||
<div style="padding-<%= direction('left') %>: 30px;">
|
||||
<%= t(:entry_count, { :one => "*1* page", :other => "*%{count}* pages" },
|
||||
:count => (eportfolio.eportfolio_entries.length rescue 0),
|
||||
:wrapper => '<span class="entry_count">\1</span>') %>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<% page_comment ||= nil; comment = page_comment || nil; read_only ||= false %>
|
||||
<div class="comment" id="comment_<%= comment ? comment.id : "{{ blank }}" %>" style="<%= hidden unless comment %> border: 0px solid #aaa; margin-bottom: 10px;">
|
||||
<div class="user_name pull-left"><%= comment.user_name rescue nbsp %></div>
|
||||
<div style="float: right;">
|
||||
<div style="float: <%= direction('right') %>;">
|
||||
<span class="created_at" style="color: #888; font-size: 0.8em;"><%= datetime_string(comment.created_at) rescue nbsp %></span>
|
||||
<% if !read_only && can_do(@portfolio, @current_user, :update) %>
|
||||
<a href="<%= eportfolio_entry_page_comment_path(@portfolio.id, @page.id, comment ? comment.id : "{{ id }}") %>" class="delete_comment_link no-hover"><i class="icon-trash standalone-icon"></i></a>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<h2>
|
||||
<%= @category.name %>
|
||||
<% if can_do(@portfolio, @current_user, :manage) %>
|
||||
<div style="float: right; margin-right: 10px; font-size: 0.8em;">
|
||||
<div style="float: <%= direction('right') %>; margin-<%= direction('right') %>: 10px; font-size: 0.8em;">
|
||||
<a href="#" class="manage_pages_link" style="font-style: italic;" title="<%= t('titles.manage_pages', "Add, remove or rearrange pages for this section") %>"><%= manage_pages_link_text %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<% elsif page_section["section_type"] == "submission" %>
|
||||
<% submission = @portfolio.user.submissions.where(id: page_section["submission_id"]).first if page_section["submission_id"].present? %>
|
||||
<% if submission %>
|
||||
<iframe class="submission_preview" src="<%= eportfolio_entry_preview_submission_path(@portfolio, @page, submission.id) %>" style="border: 1px solid #aaa; width: 100%; height: 300px; display: block; margin-left: auto; margin-right: auto;" title="<%= t("%{assignment} preview", :assignment=> submission.assignment.title) %>">
|
||||
<iframe class="submission_preview" src="<%= eportfolio_entry_preview_submission_path(@portfolio, @page, submission.id) %>" style="border: 1px solid #aaa; width: 100%; height: 300px; display: block; margin-<%= direction('left') %>: auto; margin-<%= direction('right') %>: auto;" title="<%= t("%{assignment} preview", :assignment=> submission.assignment.title) %>">
|
||||
</iframe>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<a class="rename_section_url" style="display: none;" href="<%= eportfolio_category_path(@portfolio, "{{ id }}") %>"></a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul style="font-size: 0.8em;line-height: 1.85em; font-style: italic; margin-left: 10px;" id="section_list_manage">
|
||||
<ul style="font-size: 0.8em;line-height: 1.85em; font-style: italic; margin-<%= direction('left') %>: 10px;" id="section_list_manage">
|
||||
<li style="display: none;" class="add_section"><button type="button" class="Button Button--link add_section_link no-hover icon-add"><%= t("Add Section") %></button></li>
|
||||
<li style="display: none;">
|
||||
<a href="<%= eportfolio_categories_path(@portfolio) %>" class="add_section_url"></a>
|
||||
|
|
|
@ -93,7 +93,7 @@
|
|||
or just jump straight to the portfolio.
|
||||
DETAILS
|
||||
%></p>
|
||||
<ul class="unstyled_list" style="padding-left: 20px; margin-bottom: 20px; line-height: 1.8em; font-size: 1.2em;">
|
||||
<ul class="unstyled_list" style="padding-<%= direction('left') %>: 20px; margin-bottom: 20px; line-height: 1.8em; font-size: 1.2em;">
|
||||
<li><a href="#" class="wizard_popup_link icon-question"><%= t('links.wizard', "Getting Started Wizard") %></a></li>
|
||||
<li><a href="?view=preview" class="icon-arrow-right"><%= t('links.portfolio', "Go to the Actual ePortfolio") %></a></li>
|
||||
</ul>
|
||||
|
@ -138,15 +138,15 @@
|
|||
class="submission_info">
|
||||
<%= submission.assignment.title %>, <%= submission.assignment.context.name %>
|
||||
</a>
|
||||
<div style="float: right; font-size: 0.8em; color: #aaa; margin-right: 20px; margin-top: 0.5em;">
|
||||
<div style="float: <%= direction('right') %>; font-size: 0.8em; color: #aaa; margin-<%= direction('right') %>: 20px; margin-top: 0.5em;">
|
||||
<%= datetime_string(submission.submitted_at || submission.updated_at) %>
|
||||
<a href="<%= context_url(submission.assignment.context, :context_assignment_submission_url, submission.assignment_id, @portfolio.user.id) %>" target="_blank" class="no-hover view_submission_url"><%= image_tag "popout.png", :alt => t('titles.view_submission', "View the Submission") %></a>
|
||||
</div>
|
||||
<span class="text" style="font-size: 1.2em;">
|
||||
<span class="text assignment_title"><%= submission.assignment.title %></span>
|
||||
<span style="font-size: 0.8em; padding-left: 5px;" class="text context_name"><%= submission.assignment.context.name %></span>
|
||||
<span style="font-size: 0.8em; padding-<%= direction('left') %>: 5px;" class="text context_name"><%= submission.assignment.context.name %></span>
|
||||
</span>
|
||||
<div style="font-size: 0.8em; color #aaa; margin-left: 20px;">
|
||||
<div style="font-size: 0.8em; color #aaa; margin-<%= direction('left') %>: 20px;">
|
||||
<%= t(:attachment_count, { :one => "1 Attachment", :other => "%{count} Attachments" },
|
||||
:count => submission.attachments.length) unless submission.attachments.empty? %></div>
|
||||
<span class="submission_id" style="display: none;"><%= submission.id %></span>
|
||||
|
@ -206,9 +206,9 @@
|
|||
<td><%= before_label(:page_name, "Page Name") %></td>
|
||||
<td><input type="text" name="eportfolio_entry[name]" style="width: 100px;"/></td>
|
||||
</tr><tr>
|
||||
<td colspan="2" style="padding-left: 20px; font-size: 0.8em; padding-top: 10px;">
|
||||
<td colspan="2" style="padding-<%= direction('left') %>: 20px; font-size: 0.8em; padding-top: 10px;">
|
||||
<%= t(:current_pages, "Current Pages") %>
|
||||
<ul id="page_select_list" class="unstyled_list" style="padding-left: 20px; margin-top: 5px;">
|
||||
<ul id="page_select_list" class="unstyled_list" style="padding-<%= direction('left') %>: 20px; margin-top: 5px;">
|
||||
<li class="page_select" id="page_select_blank" style="display: none;">
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -226,7 +226,7 @@
|
|||
</form>
|
||||
<% else %>
|
||||
<% if can_do(@portfolio, @current_user, :manage) %>
|
||||
<div style="float: right; display: none;"><a href="#" class="edit_content_link icon-edit"><%= edit_link_text %></a></div>
|
||||
<div style="float: <%= direction('right') %>; display: none;"><a href="#" class="edit_content_link icon-edit"><%= edit_link_text %></a></div>
|
||||
<% end %>
|
||||
<h2 id="eportfolio_entry_<%= @page.id %>"><span class="name"><%= @page.name %></span></h2>
|
||||
<%= form_for @page, :url => eportfolio_entry_url(@portfolio, @page), :html => {:id => "edit_page_form" } do |f| %>
|
||||
|
@ -242,7 +242,7 @@
|
|||
<div class="form_content">
|
||||
<%= f.check_box :allow_comments, :class => "allow_comments" %>
|
||||
<%= f.label :allow_comments, t('labels.allow_comments', "Allow Comments on this Page") %>
|
||||
<div style="margin-left: 40px;" class="show_comments_box <%= "disabled" unless @page.allow_comments %>">
|
||||
<div style="margin-<%= direction('left') %>: 40px;" class="show_comments_box <%= "disabled" unless @page.allow_comments %>">
|
||||
<%= f.check_box :show_comments, :class => "show_comments" %>
|
||||
<%= f.label :show_comments, t('labels.show_comments', "Make Comments Public") %>
|
||||
</div>
|
||||
|
@ -260,7 +260,7 @@
|
|||
<table class="formtable" style="width: 100%; display: none;">
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<div style="text-align: right; margin-right: 5%; font-size: 0.8em;">
|
||||
<div style="text-align: <%= direction('right') %>; margin-<%= direction('right') %>: 5%; font-size: 0.8em;">
|
||||
<a href="#" class="switch_views_link"><%= t '#editor.switch_editor_html', "HTML Editor" %></a>
|
||||
<a href="#" class="switch_views_link" style="display:none;"><%= t '#editor.switch_editor_rich_text', "Rich Content Editor" %></a>
|
||||
</div>
|
||||
|
@ -274,11 +274,11 @@
|
|||
<% if can_do(@portfolio, @current_user, :manage) %>
|
||||
<div id="edit_content_templates" style="display: none;">
|
||||
<div class="edit_rich_text_content form_content" style="display: none;">
|
||||
<textarea class="edit_section" id="edit_section_blank" style="width: 95%; margin-left: auto; margin-right: auto; height: 200px;"></textarea>
|
||||
<textarea class="edit_section" id="edit_section_blank" style="width: 95%; margin-<%= direction('left') %>: auto; margin-<%= direction('right') %>: auto; height: 200px;"></textarea>
|
||||
</div>
|
||||
<div class="edit_html_content form_content" style="display: none;">
|
||||
<%= before_label(:html_content, "Copy and paste your HTML code into the box below") %><br/>
|
||||
<textarea class="edit_section" id="edit_html_section_blank" style="width: 95%; margin-left: auto; margin-right: auto; height: 150px;"></textarea>
|
||||
<textarea class="edit_section" id="edit_html_section_blank" style="width: 95%; margin-<%= direction('left') %>: auto; margin-<%= direction('right') %>: auto; height: 150px;"></textarea>
|
||||
</div>
|
||||
<div class="edit_submission_content form_content" style="display: none;">
|
||||
<%= before_label(:choose_submission, "Select an assignment submission to embed in this page") %><br/>
|
||||
|
@ -299,8 +299,8 @@
|
|||
<%=t "click to select" %>
|
||||
</span>
|
||||
</span>
|
||||
<div style="float: right; font-size: 0.8em; color: #aaa; margin-right: 20px; margin-top: 0.5em;"><%= datetime_string(submission.submitted_at || submission.updated_at) %></div>
|
||||
<div style="font-size: 0.8em; color #aaa; margin-left: 20px;">
|
||||
<div style="float: <%= direction('right') %>; font-size: 0.8em; color: #aaa; margin-<%= direction('right') %>: 20px; margin-top: 0.5em;"><%= datetime_string(submission.submitted_at || submission.updated_at) %></div>
|
||||
<div style="font-size: 0.8em; color #aaa; margin-<%= direction('left') %>: 20px;">
|
||||
<%= t(:attachment_count, { :one => "1 Attachment", :other => "%{count} Attachments" },
|
||||
:count => submission.attachments.length) unless submission.attachments.empty? %></div>
|
||||
<div class="clear"></div>
|
||||
|
@ -317,17 +317,17 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="edit_attachment_content form_content" style="display: none;">
|
||||
<div style="width: 400px; margin: 0 auto; text-align: left;">
|
||||
<div style="width: 400px; margin: 0 auto; text-align: <%= direction('left') %>;">
|
||||
<%= before_label(:file_select, "Select a file to include on this page") %><br/>
|
||||
<div class="file_list" style="margin-left: 50px; max-height: 200px; overflow: auto;">
|
||||
<div class="file_list" style="margin-<%= direction('left') %>: 50px; max-height: 200px; overflow: auto;">
|
||||
<b><%= t(:no_files, "No Files Uploaded") if @portfolio.user.attachments.active.empty? %></b>
|
||||
<% unless @portfolio.user.attachments.active.empty? %>
|
||||
<%= render :partial => "files/nested_content", :object => (@folders.select{|f| !f.parent_folder_id}), :locals => {:folders => @folders} %>
|
||||
<% end %>
|
||||
</div><br/>
|
||||
<%= before_label(:file_upload, "Or upload a new file") %><br/>
|
||||
<%= file_field :attachment, :uploaded_data, :class => "file_upload", :style => "padding-left: 50px;" %>
|
||||
<div style="font-size: 0.8em; margin-left: 20px;">
|
||||
<%= file_field :attachment, :uploaded_data, :class => "file_upload", :style => "padding-#{ direction('left') }: 50px;" %>
|
||||
<div style="font-size: 0.8em; margin-<%= direction('left') %>: 20px;">
|
||||
<%= t("%{file_size_limit} user file quota applies",
|
||||
file_size_limit: number_to_human_size(@current_user.quota)) %>
|
||||
</div>
|
||||
|
@ -347,7 +347,7 @@
|
|||
</div>
|
||||
<%= form_for :attachment, :url => context_url(@portfolio.user, :controller => :files, :action => :create, :format => "text"), :html => {:id => "upload_file_form"} do |f| %>
|
||||
<% end %>
|
||||
<iframe class="submission_preview" style="border: 1px solid #aaa; width: 95%; height: 300px; display: block; margin-left: auto; margin-right: auto;" src="about:blank" title="<%= t("Preview") %>">
|
||||
<iframe class="submission_preview" style="border: 1px solid #aaa; width: 95%; height: 300px; display: block; margin-<%= direction('left') %>: auto; margin-<%= direction('right') %>: auto;" src="about:blank" title="<%= t("Preview") %>">
|
||||
</iframe>
|
||||
</div>
|
||||
<div style="display: none;">
|
||||
|
@ -419,7 +419,7 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<% if @owner_view %>
|
||||
<div style="text-align: left; font-size: 1.2em; margin: 30px 10px 0;">
|
||||
<div style="text-align: <%= direction('left') %>; font-size: 1.2em; margin: 30px 10px 0;">
|
||||
<a href="<%= eportfolio_export_portfolio_path(@portfolio.id) %>" class="download_eportfolio_link icon-zipped"><%= t('links.download_eportfolio', "Download the contents of this ePortfolio as a zip file") %></a>
|
||||
<div style="display: none; font-size: 1.2em;" id="downloading_eportfolio_message">
|
||||
<span class="message">
|
||||
|
@ -430,10 +430,10 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="text-align: left; font-size: 1.2em; margin: 30px 10px 0;">
|
||||
<div style="text-align: <%= direction('left') %>; font-size: 1.2em; margin: 30px 10px 0;">
|
||||
<a href="<%= eportfolio_url(@portfolio.id) %>" class="delete_eportfolio_link icon-trash"><%= t('links.delete', "Delete this ePortfolio") %></a>
|
||||
</div>
|
||||
<%= form_tag eportfolio_url(@portfolio.id), {:method => :delete, :id => "delete_eportfolio_form", :style => "margin-top: 20px; margin-left: 20px; display: none;"} do %>
|
||||
<%= form_tag eportfolio_url(@portfolio.id), {:method => :delete, :id => "delete_eportfolio_form", :style => "margin-top: 20px; margin-#{direction('left')}: 20px; display: none;"} do %>
|
||||
<%= t(:delete_confirm, {
|
||||
:one => "You currently have 1 page in this ePortfolio. Are you sure you want to delete the entire ePortfolio?",
|
||||
:other => "You currently have %{count} pages in this ePortfolio. Are you sure you want to delete the entire ePortfolio?"
|
||||
|
|
|
@ -60,7 +60,7 @@ DETAILS
|
|||
</div>
|
||||
<% else %>
|
||||
<h2><%= t('headers.my_eportfolios', "My ePortfolios") %></h2>
|
||||
<ul class="unstyled_list" style="padding-left: 20px;">
|
||||
<ul class="unstyled_list" style="padding-<%= direction('left') %>: 20px;">
|
||||
<%= render :partial => "eportfolio", :collection => @portfolios %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
<br><%= before_label k.to_s %> <%= v %>
|
||||
<% end %>
|
||||
<br />
|
||||
<pre style="font-size: 0.8em; margin-left: 20px; <%= "max-height: 150px;" if @reports.length > 1 %> overflow: auto;">
|
||||
<pre style="font-size: 0.8em; margin-<%= direction('left') %>: 20px; <%= "max-height: 150px;" if @reports.length > 1 %> overflow: auto;">
|
||||
<%= report.data.try(:[], "exception_message") %><br />
|
||||
<%= report.backtrace %>
|
||||
</pre>
|
||||
|
|
|
@ -100,10 +100,10 @@
|
|||
</div>
|
||||
|
||||
<input type="hidden" name="json_data_to_submit" value="" />
|
||||
<div class="button-container" style="padding-left:7px;">
|
||||
<div class="button-container" style="padding-<%= direction('left') %>:7px;">
|
||||
<button type="submit" class="btn"><%= t('buttons.save_changes', "Save Changes") %></button>
|
||||
<%= link_to t('#buttons.cancel', "Cancel"), :back , :class => "btn btn button-secondary" %>
|
||||
<span id="assignments_without_changes_alert" style="display:none; margin-left: 50px;"><%= t('notices.unchanged', "Note: You uploaded some assignments that had no grade changes detected. They have been hidden.") %></span>
|
||||
<span id="assignments_without_changes_alert" style="display:none; margin-<%= direction('left') %>: 50px;"><%= t('notices.unchanged', "Note: You uploaded some assignments that had no grade changes detected. They have been hidden.") %></span>
|
||||
</div>
|
||||
<% end -%>
|
||||
|
||||
|
|
|
@ -54,13 +54,13 @@
|
|||
<select
|
||||
class="grading_value grading_box pass_fail"
|
||||
id="student_grading_<%= assignment.id %>"
|
||||
style="<%= hidden unless submission %> text-align: left;"
|
||||
style="<%= hidden unless submission %> text-align: <%= direction('left') %>;"
|
||||
>
|
||||
<option value="" style="padding-left: 5px;">---</option>
|
||||
<option value="complete" style="padding-left: 5px;" <%= "selected" if complete_selected %>>
|
||||
<option value="" style="padding-<%= direction('left') %>: 5px;">---</option>
|
||||
<option value="complete" style="padding-<%= direction('left') %>: 5px;" <%= "selected" if complete_selected %>>
|
||||
<%= t("Complete") %>
|
||||
</option>
|
||||
<option value="incomplete" style="padding-left: 5px;" <%= "selected" if incomplete_selected %>>
|
||||
<option value="incomplete" style="padding-<%= direction('left') %>: 5px;" <%= "selected" if incomplete_selected %>>
|
||||
<%= t("Incomplete") %>
|
||||
</option>
|
||||
</select>
|
||||
|
|
|
@ -459,13 +459,13 @@
|
|||
<% end %>
|
||||
<td colspan="<%= assignment_presenter.deduction_present? ? 1 : 3 %>">
|
||||
<% graph = assignment_presenter.graph %>
|
||||
<div style="cursor: pointer; float: right; height: 30px; margin-left: 20px; width: 160px; position: relative; margin-right: 30px;" aria-hidden="true" title="<%= graph.title %>">
|
||||
<div class="grade-summary-graph-component" style="height: 10px; margin: 5px 0px; border-width: 2px; border-right-width: 0;"> </div>
|
||||
<div style="cursor: pointer; float: <%= direction('right') %>; height: 30px; margin-<%= direction('left') %>: 20px; width: 160px; position: relative; margin-<%= direction('right') %>: 30px;" aria-hidden="true" title="<%= graph.title %>">
|
||||
<div class="grade-summary-graph-component" style="height: 10px; margin: 5px 0px; border-width: 2px; border-<%= direction('right') %>-width: 0;"> </div>
|
||||
<div class="grade-summary-graph-component" style="width: <%= graph.low_width %>px; height: 0px; margin-top: 10px; border-bottom-width: 2px;"> </div>
|
||||
<div class="grade-summary-graph-component" style="left: <%= graph.high_left %>px; width: <%= graph.high_width %>px; height: 0px; margin-top: 10px; border-bottom-width: 2px;"> </div>
|
||||
<div class="grade-summary-graph-component" style="left: <%= graph.low_width %>px; width: <%= graph.mean_low_width %>px; height: 20px; border-width: 2px; border-top-left-radius: 3px; border-bottom-left-radius: 3px; border-right-width: 0; background: #fff;"> </div>
|
||||
<div class="grade-summary-graph-component" style="left: <%= graph.low_width %>px; width: <%= graph.mean_low_width %>px; height: 20px; border-width: 2px; border-top-left-radius: 3px; border-bottom-left-radius: 3px; border-<%= direction('right') %>-width: 0; background: #fff;"> </div>
|
||||
<div class="grade-summary-graph-component" style="left: <%= graph.mean_left%>px; width: <%= graph.mean_high_width%>px; height: 20px; border-width: 2px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; background: #fff;"> </div>
|
||||
<div class="grade-summary-graph-component" style="left: <%= graph.max_left %>px; height: 10px; margin: 5px 0px; border-width: 2px; border-left-width: 0;"> </div>
|
||||
<div class="grade-summary-graph-component" style="left: <%= graph.max_left %>px; height: 10px; margin: 5px 0px; border-width: 2px; border-<%= direction('left') %>-width: 0;"> </div>
|
||||
<% if submission && submission.score %>
|
||||
<div class="grade-summary-graph-component" style="top: 5px; height: 10px; width: 10px; left: <%= graph.score_left %>px; border: 2px solid #248; background: #abd; border-radius: 3px;" title="<%= before_label(:your_score, "Your Score") %>
|
||||
<%= t(:submission_score, "*%{score}* out of %{possible}", :wrapper => '\1', :score => n(submission.score), :possible => n(round_if_whole(assignment.points_possible))) %>">
|
||||
|
@ -505,7 +505,7 @@
|
|||
<% else %>
|
||||
<span style="white-space: pre-wrap;"><%= comment.comment %></span>
|
||||
<% end %>
|
||||
<div style="text-align: right; font-size: 0.8em; margin-right: 10px; clear: both;">
|
||||
<div style="text-align: <%= direction('right') %>; font-size: 0.8em; margin-<%= direction('right') %>: 10px; clear: both;">
|
||||
<% comment.attachments.each do |attachment| %>
|
||||
<div>
|
||||
<a href="<%= context_url(@context, :context_assignment_submission_url, submission.assignment_id, submission.user_id, :download => attachment.id, :comment_id => comment.id) %>"><%= image_tag "file.png", :style => "height: 12px;", :alt => "" %><%= t('links.download', "Download %{attachment}", :attachment => attachment.display_name) %></a>
|
||||
|
@ -529,7 +529,7 @@
|
|||
<% if assignment_presenter.has_rubric_assessments? %>
|
||||
<td colspan="6">
|
||||
<% assignment_presenter.rubric_assessments.each do |assessment| %>
|
||||
<div class="assessor" style="text-align: right; margin-bottom: 5px">
|
||||
<div class="assessor" style="text-align: <%= direction('right') %>; margin-bottom: 5px">
|
||||
<% if assignment.anonymous_peer_reviews %>
|
||||
<%= t("Anonymous User") %>
|
||||
<% else %>
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
|
||||
<% if @context.feature_enabled?(:outcome_gradebook) %>
|
||||
<div class="outcome-gradebook-container">
|
||||
<div class="outcome-menus hidden" style="text-align: right;">
|
||||
<div class="outcome-menus hidden" style="text-align: <%= direction('right') %>;">
|
||||
<span data-component="SectionFilter"></span>
|
||||
<span data-component="GradebookMenu" data-variant="DefaultGradebookLearningMastery"></span>
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
js_bundle :screenreader_gradebook
|
||||
%>
|
||||
<% content_for :page_title, t("Gradebook: Individual View") %>
|
||||
<div style="float: right;">
|
||||
<div style="float: <%= direction('right') %>;">
|
||||
<span data-component="GradebookSelector" data-variant="IndividualGradebook"></span>
|
||||
</div>
|
||||
<div style="display:none;">
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
list-style-type: none;
|
||||
margin: 0 0 20px;
|
||||
font-size: 1.5em;
|
||||
padding-left: 10px;
|
||||
padding-<%= direction('left') %>: 10px;
|
||||
}
|
||||
#student_list li {
|
||||
padding: 2px 25px;
|
||||
|
@ -58,7 +58,7 @@
|
|||
}
|
||||
#student_list .file_list {
|
||||
list-style-type: none;
|
||||
padding-left: 5px;
|
||||
padding-<%= direction('left') %>: 5px;
|
||||
font-size: 0.8em;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
@ -69,7 +69,7 @@
|
|||
#failure_list {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding-left: 10px;
|
||||
padding-<%= direction('left') %>: 10px;
|
||||
}
|
||||
#failure_list li {
|
||||
padding: 3px 25px;
|
||||
|
|
|
@ -30,16 +30,16 @@
|
|||
color: red;
|
||||
}
|
||||
dl#job-attributes dt {
|
||||
float:left;
|
||||
float:<%= direction('left') %>;
|
||||
clear:left;
|
||||
}
|
||||
dl#job-attributes dd {
|
||||
padding-left: 2em;
|
||||
float:left;
|
||||
padding-<%= direction('left') %>: 2em;
|
||||
float:<%= direction('left') %>;
|
||||
}
|
||||
#show-job {
|
||||
margin-left: 25px;
|
||||
float:left;
|
||||
margin-<%= direction('left') %>: 25px;
|
||||
float:<%= direction('left') %>;
|
||||
}
|
||||
#show-job dt {
|
||||
font-weight: bold;
|
||||
|
@ -54,11 +54,11 @@
|
|||
border: 2px solid #ccc;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#tags-wrapper h2 { float:left; }
|
||||
#tags-wrapper h2 { float:<%= direction('left') %>; }
|
||||
#tags-flavor {
|
||||
float:right;
|
||||
float:<%= direction('right') %>;
|
||||
}
|
||||
#jobs-grid { float:left; margin-top: 6px; }
|
||||
#jobs-grid { float:<%= direction('left') %>; margin-top: 6px; }
|
||||
.slick-row.ui-state-active {
|
||||
color: black;
|
||||
font-weight: normal;
|
||||
|
@ -74,12 +74,12 @@
|
|||
<% css_bundle :slickgrid %>
|
||||
<% js_bundle :jobs %>
|
||||
|
||||
<div id="running-wrapper" style="float:left">
|
||||
<div id="running-wrapper" style="float:<%= direction('left') %>">
|
||||
<h2><%= t 'headings.running_jobs', "Running Jobs" %></h2>
|
||||
<div id="running-grid" style="width:700px; height:250px;" class='grid'>
|
||||
</div>
|
||||
</div>
|
||||
<div id="tags-wrapper" style="float:right">
|
||||
<div id="tags-wrapper" style="float:<%= direction('right') %>">
|
||||
<h2><%= t 'headings.popular_tags', "Popular Tags" %></h2>
|
||||
<select id="tags-flavor">
|
||||
<%= options_for_select([[t('job_options.current', "Current"), 'current'],
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<div id="element_toggler_<%= index %>" class="element_toggler fixed_warning" role="button" aria-controls="element_toggler_<%= index %>" tabindex="0">
|
||||
<i class=<%= "icon-#{warning[:icon]}" %>></i>
|
||||
<b><%= warning[:title] %></b>
|
||||
<div style="float: right;"><%= warning[:message] %></div>
|
||||
<div style="float: <%= direction('right') %>;"><%= warning[:message] %></div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
<%= render(:partial => 'shared/new_nav_header') unless @headers == false %>
|
||||
|
||||
<div id="instructure_ajax_error_box">
|
||||
<div style="text-align: right; background-color: #fff;"><a href="#" class="close_instructure_ajax_error_box_link"><%= t('links.close', 'Close') %></a></div>
|
||||
<div style="text-align: <%= direction('right') %>; background-color: #fff;"><a href="#" class="close_instructure_ajax_error_box_link"><%= t('links.close', 'Close') %></a></div>
|
||||
<iframe id="instructure_ajax_error_result" src="about:blank" style="border: 0;" title="<%= t('Error') %>"></iframe>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
text-align: center;
|
||||
}
|
||||
#outcomes th.outcome {
|
||||
text-align: left;
|
||||
text-align: <%= direction('left') %>;
|
||||
}
|
||||
#outcomes td {
|
||||
padding: 2px 5px;
|
||||
|
@ -55,7 +55,7 @@
|
|||
border-bottom: 1px dotted #ccc;
|
||||
}
|
||||
#outcomes .short_description {
|
||||
text-align: left;
|
||||
text-align: <%= direction('left') %>;
|
||||
min-width: 150px;
|
||||
}
|
||||
#outcomes .attempts .sub_attempt {
|
||||
|
@ -74,7 +74,7 @@
|
|||
background-color: #fee;
|
||||
}
|
||||
#outcomes td#outcome_results {
|
||||
text-align: left;
|
||||
text-align: <%= direction('left') %>;
|
||||
}
|
||||
</style>
|
||||
<% end %>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<th><%= t('headers.participated', "Participated") %></th>
|
||||
<th><%= t('headers.time', "Time") %></th>
|
||||
<th>
|
||||
<div style="float:right; margin-right: 4px">
|
||||
<div style="float:<%= direction('right') %>; margin-<%= direction('right') %>: 4px">
|
||||
<%= link_to("csv", user_page_views_path(@user, :format => :csv), :class => 'icon-ms-excel') %>
|
||||
</div>
|
||||
<%= t('headers.user_agent', "User Agent") %>
|
||||
|
|
|
@ -239,17 +239,17 @@ TEXT
|
|||
<input type="checkbox" id="show_user_services" <%= 'checked' if @user.show_user_services %>/> <label for="show_user_services"><%= t('labels.show_user_services', "Let fellow course/group members see which services I've linked to my profile") %></label>
|
||||
</p>
|
||||
<table role="presentation" style="width: 100%;"><tr>
|
||||
<td style="vertical-align: top; width: 50%; padding-right: 20px;">
|
||||
<td style="vertical-align: top; width: 50%; padding-<%= direction('right') %>: 20px;">
|
||||
<h3><%= t('headers.registered_services', "Registered Services") %></h3>
|
||||
<div style="margin-left: 20px; margin-bottom: 20px;">
|
||||
<div style="margin-<%= direction('left') %>: 20px; margin-bottom: 20px;">
|
||||
<ul id="registered_services" class="unstyled_list">
|
||||
<% @user.user_services.select{|s| !UserService.configured_service?(s.service) || feature_and_service_enabled?(s.service) }.each do |service| %>
|
||||
<li class="service clearfix" id="service_<%= service.service %>">
|
||||
<a href="<%= profile_user_service_url(service.id) %>" class="delete_service_link no-hover" style="float: right; padding-top: 0.5em; padding-right: 10px;" title="<%= t('titles.unregister_service', "Unregister Service") %>"><%= image_tag "delete_circle.png", :alt => t('Unregister Service') %></a>
|
||||
<a href="<%= profile_user_service_url(service.id) %>" class="delete_service_link no-hover" style="float: <%= direction('right') %>; padding-top: 0.5em; padding-<%= direction('right') %>: 10px;" title="<%= t('titles.unregister_service', "Unregister Service") %>"><%= image_tag "delete_circle.png", :alt => t('Unregister Service') %></a>
|
||||
<a href="<%= service.service_user_link %>">
|
||||
<%= image_tag "#{service.service}.png", :style => "vertical-align: middle; float: left;", :alt => '' %>
|
||||
<%= image_tag "#{service.service}.png", :style => "vertical-align: middle; float: #{ direction('left') };", :alt => '' %>
|
||||
</a>
|
||||
<div style="float: left; padding-left: 5px;">
|
||||
<div style="float: <%= direction('left') %>; padding-<%= direction('left') %>: 5px;">
|
||||
<%= service.service.titleize rescue t(:unknown_service, "Unknown") %>
|
||||
<div style="font-size: 0.6em; line-height: 0.5em;">
|
||||
<% if service.has_profile_link? %>
|
||||
|
@ -268,25 +268,25 @@ TEXT
|
|||
</li>
|
||||
<% end %>
|
||||
<li id="service_blank" class="service clearfix" style="display: none;">
|
||||
<a href="<%= profile_user_service_url("{{ id }}") %>" class="delete_service_link no-hover" style="float: right;" title="<%= t('titles.unregister_service', "Unregister Service") %>"><%= image_tag "delete_circle.png", :alt => t('Unregister Service') %></a>
|
||||
<a href="<%= profile_user_service_url("{{ id }}") %>" class="delete_service_link no-hover" style="float: <%= direction('right') %>;" title="<%= t('titles.unregister_service', "Unregister Service") %>"><%= image_tag "delete_circle.png", :alt => t('Unregister Service') %></a>
|
||||
<span class="service"> </span>
|
||||
</li>
|
||||
</ul>
|
||||
<%= t(:no_registered_services, "No Registered Services") if @user.user_services.empty? %>
|
||||
</div>
|
||||
</td>
|
||||
<td style="vertical-align: top; width: 50%; padding-left: 20px;">
|
||||
<td style="vertical-align: top; width: 50%; padding-<%= direction('left') %>: 20px;">
|
||||
<h3><%= t('headers.other_services', "Other Services") %></h3>
|
||||
<div style="margin-left: 20px;">
|
||||
<div style="margin-<%= direction('left') %>: 20px;">
|
||||
<%= before_label(:other_services, "Click any service below to register") %>
|
||||
<% services = @user.user_services.map{|s| s.service} %>
|
||||
<ul id="unregistered_services" class="unstyled_list">
|
||||
|
||||
<li id="unregistered_service_google_drive" class="service" style="<%= hidden if !feature_and_service_enabled?(:google_drive) || services.include?("google_drive") %>">
|
||||
<a href="#" class="btn btn-small"><%= image_tag "google_drive_icon.png", :alt => '' %> <%= t('links.google_drive', "Google Drive") %></a>
|
||||
<div style="display: none; text-align: left;" class="content" title="<%= t('titles.authorize_google_drive', "Authorize Google Drive") %>" id="unregistered_service_google_drive_dialog">
|
||||
<div style="display: none; text-align: <%= direction('left') %>;" class="content" title="<%= t('titles.authorize_google_drive', "Authorize Google Drive") %>" id="unregistered_service_google_drive_dialog">
|
||||
<div>
|
||||
<%= image_tag "google_docs.png", :style => "float: left; padding-right: 5px;", :alt => '' %>
|
||||
<%= image_tag "google_docs.png", :style => "float: #{direction('left')}; padding-#{ direction('right') }: 5px;", :alt => '' %>
|
||||
<div style="font-size: 1.2em; font-weight: bold;"><%= t('headers.google_drive_access', "Google Drive Access") %></div>
|
||||
<%= t(:google_drive_description, <<-TEXT)
|
||||
Once you authorize us to see your Google Drive you'll be able to submit your assignments
|
||||
|
@ -303,9 +303,9 @@ TEXT
|
|||
|
||||
<li id="unregistered_service_skype" class="service" style="<%= hidden if services.include?("skype") || !service_enabled?(:skype) %>">
|
||||
<a href="#" class="btn btn-small"><%= image_tag "skype_icon.png", :alt => '' %> <%= t('links.skype', "Skype") %></a>
|
||||
<div style="display: none; text-align: left;" class="content" title="<%= t('titles.register_skype', "Register Skype") %>" id="unregistered_service_skype_dialog">
|
||||
<div style="display: none; text-align: <%= direction('left') %>;" class="content" title="<%= t('titles.register_skype', "Register Skype") %>" id="unregistered_service_skype_dialog">
|
||||
<div>
|
||||
<%= image_tag "skype.png", :style => "float: left; padding-right: 5px;", :alt => '' %>
|
||||
<%= image_tag "skype.png", :style => "float: #{direction('left')}; padding-#{ direction('right') }: 5px;", :alt => '' %>
|
||||
<div style="font-size: 1.2em; font-weight: bold;"><%= t('headers.share_skype_id', "Share your Skype ID") %></div>
|
||||
<%= t(:skype_description, <<-TEXT)
|
||||
Skype offers free online voice and video calls. Lots of students use
|
||||
|
@ -335,9 +335,9 @@ TEXT
|
|||
</li>
|
||||
<li id="unregistered_service_linked_in" class="service" style="<%= hidden if services.include?("linked_in") || !feature_and_service_enabled?(:linked_in) %>">
|
||||
<a href="#" class="btn btn-small"><%= image_tag "linked_in_icon.png", :alt => '' %> <%= t('links.linkedin', "LinkedIn") %></a>
|
||||
<div style="display: none; text-align: left;" class="content" title="<%= t('titles.authorize_linkedin', "Authorize LinkedIn") %>" id="unregistered_service_linked_in_dialog">
|
||||
<div style="display: none; text-align: <%= direction('left') %>;" class="content" title="<%= t('titles.authorize_linkedin', "Authorize LinkedIn") %>" id="unregistered_service_linked_in_dialog">
|
||||
<div>
|
||||
<%= image_tag "linked_in.png", :style => "float: left; padding-right: 5px;", :alt => '' %>
|
||||
<%= image_tag "linked_in.png", :style => "float: #{direction('left')}; padding-#{ direction('right') }: 5px;", :alt => '' %>
|
||||
<div style="font-size: 1.2em; font-weight: bold;"><%= t('headers.linkedin_access', "LinkedIn Access") %></div>
|
||||
<%= t(:linkedin_description, <<-TEXT)
|
||||
LinkedIn is a great resources for business networking, and can be
|
||||
|
@ -357,9 +357,9 @@ TEXT
|
|||
</li>
|
||||
<li id="unregistered_service_twitter" class="service" style="<%= hidden if services.include?("twitter") || !feature_and_service_enabled?(:twitter) %>">
|
||||
<a href="#" class="btn btn-small"><%= image_tag "twitter_icon.png", :alt => '' %> <%= t('links.twitter', "Twitter") %></a>
|
||||
<div style="display: none; text-align: left;" class="content" title="<%= t('titles.authorize_twitter', "Authorize Twitter") %>" id="unregistered_service_twitter_dialog">
|
||||
<div style="display: none; text-align: <%= direction('left') %>;" class="content" title="<%= t('titles.authorize_twitter', "Authorize Twitter") %>" id="unregistered_service_twitter_dialog">
|
||||
<div>
|
||||
<%= image_tag "twitter.png", :style => "float: left; padding-right: 5px;", :alt => '' %>
|
||||
<%= image_tag "twitter.png", :style => "float: #{direction('left')}; padding-#{ direction('right') }: 5px;", :alt => '' %>
|
||||
<div style="font-size: 1.2em; font-weight: bold;"><%= t('headers.twitter_access', "Twitter Access") %></div>
|
||||
<%= mt(:twitter_description, <<-TEXT)
|
||||
Twitter is a service for posting and subscribing to short messages.
|
||||
|
@ -381,9 +381,9 @@ TEXT
|
|||
</li>
|
||||
<li id="unregistered_service_yo" class="service" style="<%= hidden if services.include?("yo") || !feature_and_service_enabled?(:yo) %>">
|
||||
<a href="#" class="btn btn-small"><%= image_tag "yo_icon.png", :alt => '' %> <%= t('links.yo', "Yo") %></a>
|
||||
<div style="display: none; text-align: left;" class="content" title="<%= t('titles.authorize_yo', "Yo Login") %>" id="unregistered_service_yo_dialog">
|
||||
<div style="display: none; text-align: <%= direction('left') %>;" class="content" title="<%= t('titles.authorize_yo', "Yo Login") %>" id="unregistered_service_yo_dialog">
|
||||
<div>
|
||||
<%= image_tag "yo.png", :style => "float: left; padding-right: 5px;", :alt => '' %>
|
||||
<%= image_tag "yo.png", :style => "float: #{direction('left')}; padding-#{ direction('right') }: 5px;", :alt => '' %>
|
||||
<div style="font-size: 1.2em; font-weight: bold;"><%= t('headers.yo_login', "Yo Login") %></div>
|
||||
<%= mt(:yo_description, <<-TEXT)
|
||||
Yo is a single-tap zero character communication tool.
|
||||
|
@ -415,9 +415,9 @@ TEXT
|
|||
</li>
|
||||
<li id="unregistered_service_delicious" class="service" style="<%= hidden if services.include?("delicious") || !service_enabled?(:delicious) %>">
|
||||
<a href="#" class="btn btn-small"><%= image_tag "delicious_icon.png", :alt => '' %> <%= t('links.delicious', "Delicious") %></a>
|
||||
<div style="display: none; text-align: left;" class="content" title="<%= t('titles.delicious_login', "Delicious Login") %>" id="unregistered_service_delicious_dialog">
|
||||
<div style="display: none; text-align: <%= direction('left') %>;" class="content" title="<%= t('titles.delicious_login', "Delicious Login") %>" id="unregistered_service_delicious_dialog">
|
||||
<div>
|
||||
<%= image_tag "delicious.png", :style => "float: left; padding-right: 5px;", :alt => '' %>
|
||||
<%= image_tag "delicious.png", :style => "float: #{direction('left')}; padding-#{ direction('right') }: 5px;", :alt => '' %>
|
||||
<div style="font-size: 1.2em; font-weight: bold;"><%= t('headers.delicious_login', "Delicious Login") %></div>
|
||||
<%= t(:delicious_description, <<-TEXT)
|
||||
Delicious is a tool that lets you store and share your bookmarks with others.
|
||||
|
@ -449,9 +449,9 @@ TEXT
|
|||
</li>
|
||||
<li id="unregistered_service_diigo" class="service" style="<%= hidden if services.include?("diigo") || !feature_and_service_enabled?(:diigo) %>">
|
||||
<a href="#" class="btn btn-small"><%= image_tag "diigo_icon.png", :alt => '' %> <%= t('links.diigo', "Diigo") %></a>
|
||||
<div style="display: none; text-align: left;" class="content" title="<%= t('titles.diigo_login', "Diigo Login") %>" id="unregistered_service_diigo_dialog">
|
||||
<div style="display: none; text-align: <%= direction('left') %>;" class="content" title="<%= t('titles.diigo_login', "Diigo Login") %>" id="unregistered_service_diigo_dialog">
|
||||
<div>
|
||||
<%= image_tag "diigo.png", :style => "float: left; padding-right: 5px;", :alt => '' %>
|
||||
<%= image_tag "diigo.png", :style => "float: #{direction('left')}; padding-#{ direction('right') }: 5px;", :alt => '' %>
|
||||
<div style="font-size: 1.2em; font-weight: bold;"><%= t('headers.diigo_login', "Diigo Login") %></div>
|
||||
<%= t(:diigo_description, <<-TEXT)
|
||||
Diigo is a social bookmarking tool tailored specifically to research and
|
||||
|
@ -488,7 +488,7 @@ TEXT
|
|||
</tr></table>
|
||||
<% end %>
|
||||
<h2><%= before_label(:'headers.approved_integrations', "Approved Integrations") %></h2>
|
||||
<div style="margin-left: 20px;">
|
||||
<div style="margin-<%= direction('left') %>: 20px;">
|
||||
<% if @user.access_tokens.empty? %>
|
||||
<div id="no_approved_integrations"><%= t(:no_approved_integrations, <<-TEXT)
|
||||
Third-party applications can request permission to access
|
||||
|
@ -630,7 +630,7 @@ TEXT
|
|||
<a href="<%= profile_pics_url %>" class="profile_pics_url" style="display: none;"> </a>
|
||||
<%= t(:profile_pictures, "Select the image you'd like to use as your profile pic, or upload a new image:") %>
|
||||
<div class="profile_pic_list" style="background: #eee; padding: 5px; -moz-border-radius: 5px; margin: 5px 10px;">
|
||||
<h3 style="padding-left: 10px; padding-top: 10px;"><%= t('headers.loading_images', "Loading Images...") %></h3>
|
||||
<h3 style="padding-<%= direction('left') %>: 10px; padding-top: 10px;"><%= t('headers.loading_images', "Loading Images...") %></h3>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<a href="#" class="add_pic_link add"><%= t('links.upload_new_image', "Upload a new Image") %></a>
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
<td><%= form.password_field :password_confirmation, :class => "text" %>
|
||||
</td>
|
||||
</tr><tr>
|
||||
<td colspan="2" style="text-align: right;"><button type="submit" class="btn"><%= t 'buttons.update_password', "Update Password" %></button></td>
|
||||
<td colspan="2" style="text-align: <%= direction('right') %>;"><button type="submit" class="btn"><%= t 'buttons.update_password', "Update Password" %></button></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% end %>
|
||||
|
|
|
@ -35,19 +35,19 @@
|
|||
display: inline-block;
|
||||
}
|
||||
.question_bank .header_content {
|
||||
float: left;
|
||||
float: <%= direction('left') %>;
|
||||
}
|
||||
.question_bank #edit_bank_form {
|
||||
float: left;
|
||||
float: <%= direction('left') %>;
|
||||
}
|
||||
.question_bank .header .links {
|
||||
float: right;
|
||||
float: <%= direction('right') %>;
|
||||
}
|
||||
.question_bank:hover .header .links {
|
||||
opacity: 1.0;
|
||||
}
|
||||
.question_bank .content {
|
||||
padding-left: 20px;
|
||||
padding-<%= direction('left') %>: 20px;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -404,7 +404,7 @@
|
|||
<div class="quiz_comment">
|
||||
<% if editable %>
|
||||
<span style="font-size: 0.8em;"><%= before_label(:additional_comments, "Additional Comments") %></span>
|
||||
<textarea name="question_comment_<%= hash_get(question, :id) %>" style="display: block; width: auto; margin-left: 5px; margin-right: 5px; height: 50px;"><%= comment_get(user_answer, :more_comments) || "" %></textarea>
|
||||
<textarea name="question_comment_<%= hash_get(question, :id) %>" style="display: block; width: auto; margin-<%= direction('left') %>: 5px; margin-<%= direction('right') %>: 5px; height: 50px;"><%= comment_get(user_answer, :more_comments) || "" %></textarea>
|
||||
<% else %>
|
||||
<%= comment_get(user_answer, :more_comments) %>
|
||||
<% end %>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<a href="<%= context_url(@context, :context_question_banks_url, :include_bookmarked => '1', :inherited => '1') %>" class="find_question_banks_url" style="display: none;"> </a>
|
||||
<a href="/<%= @quiz.context_url_prefix %>/question_banks/{{ question_bank_id }}/questions?inherited=1" class="question_bank_questions_url" style="display: none;"> </a>
|
||||
<a href="<%= context_url(@context, :context_quiz_quiz_questions_url, @quiz.id) %>" class="add_questions_url" style="display: none;"> </a>
|
||||
<div style="float: right; padding-right: 5px; line-height: 2.5em;">
|
||||
<div style="float: <%= direction('right') %>; padding-<%= direction('right') %>: 5px; line-height: 2.5em;">
|
||||
<a href="<%= context_url(@context, :context_question_banks_url) %>"><%= t('links.view_question_banks', "View Course Question Banks") %></a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
@ -77,7 +77,7 @@
|
|||
</div>
|
||||
<div id="find_bank_dialog" style="display: none;">
|
||||
<a href="<%= context_url(@context, :context_question_banks_url, :include_bookmarked => '1', :inherited => '1') %>" class="find_question_banks_url" style="display: none;"> </a>
|
||||
<div style="float: right; padding-right: 5px; line-height: 2.5em;">
|
||||
<div style="float: <%= direction('right') %>; padding-<%= direction('right') %>: 5px; line-height: 2.5em;">
|
||||
<a href="<%= context_url(@context, :context_question_banks_url) %>"><%= t('links.view_question_banks', "View Course Question Banks") %></a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
<span class="id"> </span>
|
||||
<span class="match_id"> </span>
|
||||
</div>
|
||||
</td><td style="vertical-align: top; padding-top: 0.5em; text-align: right; width: 40px;">
|
||||
</td><td style="vertical-align: top; padding-top: 0.5em; text-align: <%= direction('right') %>; width: 40px;">
|
||||
<div class="question_actions">
|
||||
<% edit_html_text = t("Toggle editing answer text as HTML") %>
|
||||
<% delete_html_text = t("Delete this Answer") %>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
<option value="text_only_question"><%= t('question_type.text_only', "Text (no question)") %></option>
|
||||
</select>
|
||||
<span class="question_points_holder">
|
||||
<span style="padding-left: 20px;"><%= before_label :points, 'pts' %></span>
|
||||
<span style="padding-<%= direction('left') %>: 20px;"><%= before_label :points, 'pts' %></span>
|
||||
<input class="float_value" type="text" style="width: 25px; min-width: 0;" name="question_points" aria-label="<%= t "label.question.points", "Question point value" %>" <%= 'readonly' if points_are_locked %>/>
|
||||
</span>
|
||||
</div>
|
||||
|
@ -125,7 +125,7 @@
|
|||
<%= t('explanations.multi_answer_sets', "In the box below, every place you want to show an answer box, type a reference word (no spaces) surrounded by brackets") %><br/>
|
||||
(<%= t(:multi_answer_sets_example, 'i.e. "Roses are [color1], violets are [color2]"') %>)
|
||||
</div>
|
||||
<div style="float: right; margin-right: 10%; font-size: 0.8em;">
|
||||
<div style="float: <%= direction('right') %>; margin-<%= direction('right') %>: 10%; font-size: 0.8em;">
|
||||
<a href="#" class="toggle_question_content_views_link"><%= t '#editor.switch_editor_html', "HTML Editor" %></a>
|
||||
<a href="#" class="toggle_question_content_views_link" style="display:none;"><%= t '#editor.switch_editor_rich_text', "Rich Content Editor" %></a>
|
||||
</div>
|
||||
|
@ -206,7 +206,7 @@
|
|||
</div>
|
||||
<div class="form_answers">
|
||||
</div>
|
||||
<div style="text-align: right;" class="add_answer">
|
||||
<div style="text-align: <%= direction('right') %>;" class="add_answer">
|
||||
<a href="#" class="add_answer_link icon-add"><%= t('links.add_another_answer', "Add Another Answer") %></a>
|
||||
</div>
|
||||
<div class="matching_answer_incorrect_matches_holder" style="margin-top: 15px;">
|
||||
|
@ -218,7 +218,7 @@
|
|||
</div>
|
||||
<div class="missing_word_after_answer" style="margin-top: 15px;">
|
||||
<b><%= before_label(:missing_word_after, "Text to go after answers") %></b>
|
||||
<div style="float: right; margin-right: 10%; font-size: 0.8em;">
|
||||
<div style="float: <%= direction('right') %>; margin-<%= direction('right') %>: 10%; font-size: 0.8em;">
|
||||
<a href="#" class="toggle_text_after_answers_link"><%= t '#editor.switch_editor_html', "HTML Editor" %></a>
|
||||
<a href="#" class="toggle_text_after_answers_link" style="display:none;"><%= t '#editor.switch_editor_visual', "Rich Content Editor" %></a>
|
||||
</div>
|
||||
|
|
|
@ -47,7 +47,7 @@
|
|||
<label for="question_<%= hash_get(question, :id) %>_answer_<%= hash_get(answer, :id) %>" aria-label="<%= answer_label %>"><%= (hash_get(answer, :left_html) || hash_get(answer, :html)).present? ? (hash_get(answer, :left_html) || hash_get(answer, :html)).html_safe : (hash_get(answer, :left) || hash_get(answer, :text)) %></label>
|
||||
<% if !user_answer %>
|
||||
<br/>
|
||||
<div style="margin-left: 20px;">
|
||||
<div style="margin-<%= direction('left') %>: 20px;">
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<% unless content_is_locked %>
|
||||
<div style="float: right;" class="links">
|
||||
<div style="float: <%= direction('right') %>;" class="links">
|
||||
<span class="local_group_links">
|
||||
<% collapse_title = t('titles.collapse_group', "Collapse Group") %>
|
||||
<% expand_title = t('titles.expand_group', "Expand Group") %>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<div class="header-bar-right">
|
||||
<div class="header-group-left">
|
||||
<span id="quiz_display_points_possible">
|
||||
<%= t("Points %{n}", :n => raw("<span style=\"margin-left:5px\" class=\"points_possible\">#{@quiz.points_possible}</span>")) %>
|
||||
<%= t("Points %{n}", :n => raw("<span style=\"margin-#{direction('left')}:5px\" class=\"points_possible\">#{@quiz.points_possible}</span>")) %>
|
||||
</span>
|
||||
|
||||
<% if @quiz.published? %>
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<i class="icon-add"></i><span class="screenreader-only"><%= new_question_title %></span>
|
||||
<%= new_question_title %>
|
||||
</a>
|
||||
<a href="#" class="add_question_group_link btn" style="margin-left: 20px; margin-right: 20px;">
|
||||
<a href="#" class="add_question_group_link btn" style="margin-<%= direction('left') %>: 20px; margin-<%= direction('right') %>: 20px;">
|
||||
<i class="icon-add"></i><span class="screenreader-only"><%= new_question_group_title %></span>
|
||||
<%= new_question_group_title %>
|
||||
</a>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
t('links.preview_survey_again', "Preview the Survey Again") :
|
||||
t('links.preview_quiz_again', "Preview the Quiz Again") %><% end %><br/>
|
||||
<% elsif !@quiz.single_attempt? || can_do(@quiz, @current_user, :update) %>
|
||||
<div style="margin-left: 20px; margin-top: 20px; line-height: 1.3em;">
|
||||
<div style="margin-<%= direction('left') %>: 20px; margin-top: 20px; line-height: 1.3em;">
|
||||
<% if (@submission.attempt > 1 || (@submission.attempt == 1 && can_do(@quiz, @current_user, :update))) &&
|
||||
(can_do(@quiz, @current_user, :grade) || !@quiz.muted?) %>
|
||||
<%= t(:attempts_so_far, {:one => "1 Attempt so far", :other => "%{count} Attempts so far"}, :count => @submission.attempt) %><br/>
|
||||
|
@ -93,7 +93,7 @@
|
|||
<div style="margin-top: 10px; font-size: 1.2em;">
|
||||
<% if (!@locked && (@quiz.unlimited_attempts? || @submission.attempts_left > 0)) || can_do(@quiz, @current_user, :update) %>
|
||||
<%= link_to_take_or_retake_poll %><br/>
|
||||
<span style="font-size: 0.7em; padding-left: 20px;">
|
||||
<span style="font-size: 0.7em; padding-<%= direction('left') %>: 20px;">
|
||||
(<%= score_to_keep_message %>)
|
||||
</span>
|
||||
<% end %>
|
||||
|
|
|
@ -188,12 +188,12 @@
|
|||
</div>
|
||||
<div class="update_scores_final_score">
|
||||
<b><%= before_label(:final_score, "Final Score") %></b>
|
||||
<%= score_out_of_points_possible(@submission.score || 0, @quiz.points_possible || 0, :id => 'after_fudge_points_total', :style => 'font-size: 1.5em; padding-left: 5px') %>
|
||||
<%= score_out_of_points_possible(@submission.score || 0, @quiz.points_possible || 0, :id => 'after_fudge_points_total', :style => "font-size: 1.5em; padding-#{direction('left')}: 5px") %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if !editable %>
|
||||
<div class="quiz_score" style="text-align: right; font-size: 1.2em; <%= hidden if @quiz.ungraded? %>">
|
||||
<div class="quiz_score" style="text-align: <%= direction('right') %>; font-size: 1.2em; <%= hidden if @quiz.ungraded? %>">
|
||||
<% if @quiz.survey? %>
|
||||
<%= before_label(:survey_score, "Survey Score") %>
|
||||
<% else %>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<%= before_label(:time_elapsed, "Time Elapsed") %>
|
||||
<% end %>
|
||||
</span>
|
||||
<span style="font-size: 0.8em; padding-left: 10px;">
|
||||
<span style="font-size: 0.8em; padding-<%= direction('left') %>: 10px;">
|
||||
<a href="#" class="hide_time_link"><%= t('links.hide_time_running', "Hide") %></a>
|
||||
</span>
|
||||
<% if @quiz.due_at %>
|
||||
|
|
|
@ -172,7 +172,7 @@
|
|||
<%= f.radio_button('do_lock_at', false, :checked => true) %>
|
||||
<%= f.label('do_lock_at_false', :no_time_limit, :en => 'No time limit') %>
|
||||
</label>
|
||||
<label id="how_long_to_unlock_wrapper" style="float: left; margin-left: 30px;" for="until">
|
||||
<label id="how_long_to_unlock_wrapper" style="float: <%= direction('left') %>; margin-<%= direction('left') %>: 30px;" for="until">
|
||||
<%= f.radio_button('do_lock_at', true, checked: false) %>
|
||||
<%= f.label('do_lock_at', :available_until, en: 'Until', value: true) %>
|
||||
<label class="screenreader-only" id="quiz_lock_at_label">
|
||||
|
@ -219,7 +219,7 @@
|
|||
<span id="quiz_details_text">
|
||||
<%= @quiz.survey? ? t('links.show_student_survey_results', "Show Student Survey Results") : t('links.show_student_quiz_results', "Show Student Quiz Results") %>
|
||||
</span>
|
||||
<div style="font-size: 0.8em; padding-left: 20px;">(<%= t(:students_submitted_so_far, {:one => "1 student submitted so far", :other => "%{count} students submitted so far"}, :count => @submitted_student_count) %>)</div>
|
||||
<div style="font-size: 0.8em; padding-<%= direction('left') %>: 20px;">(<%= t(:students_submitted_so_far, {:one => "1 student submitted so far", :other => "%{count} students submitted so far"}, :count => @submitted_student_count) %>)</div>
|
||||
</a>
|
||||
</li>
|
||||
<% end %>
|
||||
|
|
|
@ -54,12 +54,12 @@
|
|||
}
|
||||
ul.user_list {
|
||||
list-style: none;
|
||||
padding-left: 0px;
|
||||
padding-<%= direction('left') %>: 0px;
|
||||
margin-top: 0px;
|
||||
max-width: 400px;
|
||||
}
|
||||
ul.user_list li.user {
|
||||
padding-left: 10px;
|
||||
padding-<%= direction('left') %>: 10px;
|
||||
color: #444;
|
||||
line-height: 1.5em;
|
||||
-moz-border-radius: 5px;
|
||||
|
@ -84,8 +84,8 @@ ul.user_list li.user .enrollment_type {
|
|||
margin: -2px 10px 0px;
|
||||
}
|
||||
ul.user_list li.user .links {
|
||||
float: right;
|
||||
padding-right: 20px;
|
||||
float: <%= direction('right') %>;
|
||||
padding-<%= direction('right') %>: 20px;
|
||||
padding-top: 5px;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
@ -93,8 +93,8 @@ ul.user_list li.user .links a {
|
|||
text-decoration: none;
|
||||
}
|
||||
ul.user_list li.user:hover .links {
|
||||
float: right;
|
||||
padding-right: 20px;
|
||||
float: <%= direction('right') %>;
|
||||
padding-<%= direction('right') %>: 20px;
|
||||
visibility: visible;
|
||||
}
|
||||
ul.user_list li.user.pending {
|
||||
|
@ -104,7 +104,7 @@ ul.user_list li.user.pending {
|
|||
h3 .tally {
|
||||
font-family: arial,sans-serif;
|
||||
font-size: 12px;
|
||||
padding-left: 5px;
|
||||
padding-<%= direction('left') %>: 5px;
|
||||
}
|
||||
.associated_user {
|
||||
display: none;
|
||||
|
@ -117,7 +117,7 @@ h3 .tally {
|
|||
background: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
text-align: left;
|
||||
text-align: <%= direction('left') %>;
|
||||
}
|
||||
</style>
|
||||
<% end %>
|
||||
|
@ -181,7 +181,7 @@ h3 .tally {
|
|||
<td colspan="2">
|
||||
<%= f.check_box :restrict_enrollments_to_section_dates %>
|
||||
<%= f.label :restrict_enrollments_to_section_dates, t('access_limit', "Users can only participate in the course between these dates") %>
|
||||
<div style="font-size: 0.8em; padding-left: 25px;">
|
||||
<div style="font-size: 0.8em; padding-<%= direction('left') %>: 25px;">
|
||||
<%= t('override_settings', 'This will override any term or course date settings.') %>
|
||||
</div>
|
||||
</td>
|
||||
|
@ -230,7 +230,7 @@ h3 .tally {
|
|||
<%= t('run_from', 'Runs from %{start_date} with no end date', :start_date => friendly_datetime(@section.start_at, context: @context).html_safe) %>
|
||||
<% end %>
|
||||
</div>
|
||||
<div style="margin-left: 10px; font-size: 0.8em;">
|
||||
<div style="margin-<%= direction('left') %>: 10px; font-size: 0.8em;">
|
||||
<%= t('Students can only participate in the course between these dates') if @section.restrict_enrollments_to_section_dates %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
@ -278,7 +278,7 @@ h3 .tally {
|
|||
<td colspan="2">
|
||||
<div id="course_autocomplete_name_holder" style="margin-top: 20px;">
|
||||
<%= before_label('labels.selected_course', 'Selected Course') %>
|
||||
<div style="margin-left: 20px;">
|
||||
<div style="margin-<%= direction('left') %>: 20px;">
|
||||
<div id="course_autocomplete_name" style="font-weight: bold;"></div>
|
||||
<div id="sis_id_holder" style="display: none;"><%= before_label('labels.sis_id', 'SIS ID') %> <span class="sis_id"> </span></div>
|
||||
<div id="account_name_holder" style="display: none;"><%= before_label('labels.account', 'Account') %> <span class="account_name"></span></div>
|
||||
|
|
|
@ -56,10 +56,10 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<div class="button-container">
|
||||
<button type="button" class="btn select_outcome_link" style="float: right; margin: 0 0.5em 0.5em 0.5em;">
|
||||
<button type="button" class="btn select_outcome_link" style="float: <%= direction('right') %>; margin: 0 0.5em 0.5em 0.5em;">
|
||||
<%= t 'buttons.add_outcome', "Add Outcome" %>
|
||||
</button>
|
||||
<div style="float: right; margin-top: 0.5em;">
|
||||
<div style="float: <%= direction('right') %>; margin-top: 0.5em;">
|
||||
<% if purpose == 'rubric' %>
|
||||
<input type="checkbox" class="criterion_for_scoring" checked /><label><%= t 'labels.use_for_scoring', "use this criterion for scoring" %></label>
|
||||
<% elsif purpose == 'question_bank' %>
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div style="text-align: center; font-size: 1.5em; margin: 10px;">
|
||||
<a href="http://www.google.com/chat/video" target="_blank" rel="noopener" class="btn"><%= t('buttons.install_video_plugin', 'Install the Video Plugin') %></a>
|
||||
</div>
|
||||
<div class="links" style="text-align: right; font-size: 0.8em; display: none;">
|
||||
<div class="links" style="text-align: <%= direction('right') %>; font-size: 0.8em; display: none;">
|
||||
<a href="#" class="cant_record_link"><%= t('dont_have_a_webcam', "Don't have a webcam?") %></a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<div class="display_grading_standard">
|
||||
<div class="standard_title text-center">
|
||||
<% if !read_only %>
|
||||
<div style="float: right;" class="displaying links">
|
||||
<div style="float: <%= direction('right') %>;" class="displaying links">
|
||||
<a href="#"
|
||||
class="find_grading_standard_link no-hover"
|
||||
aria-label="<%= t('Find an Existing Grading Scheme') %>"
|
||||
|
@ -60,9 +60,9 @@
|
|||
</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th id="name_header" style="text-align: left; padding-right: 10px; width: 25%;"><%= before_label('name', 'Name') %></th>
|
||||
<th id="name_header" style="text-align: <%= direction('left') %>; padding-<%= direction('right') %>: 10px; width: 25%;"><%= before_label('name', 'Name') %></th>
|
||||
<th colspan="3" style="width: 75%;">
|
||||
<div style="float: left; margin-left: 10px;"><%= before_label('range', 'Range') %></div>
|
||||
<div style="float: <%= direction('left') %>; margin-<%= direction('left') %>: 10px;"><%= before_label('range', 'Range') %></div>
|
||||
<div class="clear"></div>
|
||||
</th>
|
||||
</tr>
|
||||
|
@ -104,7 +104,7 @@
|
|||
</td>
|
||||
<td style="padding: 2px 5px; width: 25%;">
|
||||
<div class="editing_box">
|
||||
<span style="padding-right: 5px;" aria-hidden="true"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<span style="padding-<%= direction('right') %>: 5px;" aria-hidden="true"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<input
|
||||
type="text"
|
||||
class="standard_value"
|
||||
|
@ -115,7 +115,7 @@
|
|||
style="width: 37px;"/>%
|
||||
</div>
|
||||
<div class="displaying">
|
||||
<span style="padding-right: 5px;"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<span style="padding-<%= direction('right') %>: 5px;"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<span class="min_score"><%= I18n.n((row[1] * 100).round(2)) %></span>%
|
||||
</div>
|
||||
</td>
|
||||
|
@ -145,11 +145,11 @@
|
|||
</td>
|
||||
<td style="padding: 2px 5px;">
|
||||
<div class="editing_box">
|
||||
<span style="padding-right: 5px;"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<span style="padding-<%= direction('right') %>: 5px;"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<span class="edit_max_score"> </span>%
|
||||
</div>
|
||||
<div class="displaying">
|
||||
<span style="padding-right: 5px;"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<span style="padding-<%= direction('right') %>: 5px;"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></span>
|
||||
<span class="max_score"> </span>%
|
||||
</div>
|
||||
</td>
|
||||
|
@ -166,7 +166,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="displaying" style="text-align: right;">
|
||||
<div class="displaying" style="text-align: <%= direction('right') %>;">
|
||||
<% if !read_only %>
|
||||
<a href="<%= context_url(@context, :context_grading_standards_url) %>"><%= t('managing_grading_standards', 'manage grading schemes') %></a>
|
||||
<% end %>
|
||||
|
@ -203,17 +203,17 @@
|
|||
<div>
|
||||
<div class="pull-left">
|
||||
<a href="#" class="select_grading_standard_link"><b class="title"> </b></a>
|
||||
<span class="user_name" style="padding-left: 10px; font-size: 0.8em; color: #888;">
|
||||
<span class="user_name" style="padding-<%= direction('left') %>: 10px; font-size: 0.8em; color: #888;">
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
<div style="margin-left: 30px;" class="details">
|
||||
<div style="margin-<%= direction('left') %>: 30px;" class="details">
|
||||
<table style="font-size: 0.8em;">
|
||||
<tr class="details_row blank" style="display: none;">
|
||||
<td class="name" style="padding-right: 20px;"> </td>
|
||||
<td class="name" style="padding-<%= direction('right') %>: 20px;"> </td>
|
||||
<td style="padding: 2px 5px;"><span class="value"> </span>%</td>
|
||||
<td style="padding: 2px 5px;"><%= t('range_of_numbers', '%{lower_number} to %{higher_number}', :lower_number => '', :higher_number => '') %></td>
|
||||
<td style="padding: 2px 5px;"><span class="next_value"> </span>%</td>
|
||||
|
@ -226,7 +226,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="margin-top: 5px; text-align: right"><a href="#" class="cancel_find_grading_standard_link"><%= t('#buttons.cancel', 'Cancel') %></a></div>
|
||||
<div style="margin-top: 5px; text-align: <%= direction('right') %>"><a href="#" class="cancel_find_grading_standard_link"><%= t('#buttons.cancel', 'Cancel') %></a></div>
|
||||
</div>
|
||||
<a href="<%= context_url(((grading_standard.context || @context) rescue @context), :context_grading_standard_url, grading_standard ? grading_standard.id : "{{ id }}") rescue "#" %>" style="display: none;" class="update_grading_standard_url"> </a>
|
||||
<textarea id="default_grading_standard_data" style="display: none;"><%= GradingStandard.default_grading_standard.to_json %></textarea>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
display: none;
|
||||
}
|
||||
#file_content .context_module .header {
|
||||
margin-left: 5px;
|
||||
margin-<%= direction('left') %>: 5px;
|
||||
}
|
||||
#file_content .context_module {
|
||||
margin-bottom: 0;
|
||||
|
@ -74,7 +74,7 @@
|
|||
overflow: auto;
|
||||
width: 250px;
|
||||
position: relative;
|
||||
border-right: 1px solid #aaa;
|
||||
border-<%= direction('right') %>: 1px solid #aaa;
|
||||
}
|
||||
#modules .context_module_item .move_item_link {
|
||||
display: none;
|
||||
|
@ -91,7 +91,7 @@
|
|||
white-space: inherit;
|
||||
}
|
||||
#modules .context_module_item .module_item_icons {
|
||||
padding-left: 20px;
|
||||
padding-<%= direction('left') %>: 20px;
|
||||
}
|
||||
#modules .context_module {
|
||||
border: 0
|
||||
|
@ -131,7 +131,7 @@
|
|||
<div id="file_content_header">
|
||||
<div class="pull-left" id="file_display_name"><%= @attachment ? @attachment.display_name : @tag.title %>
|
||||
</div>
|
||||
<div style="float: right; padding-top:0.5em;">
|
||||
<div style="float: <%= direction('right') %>; padding-top:0.5em;">
|
||||
<a href="#" id="frameless_link"><%= t 'links.exit_frame', "Lose the Frames"%></a>
|
||||
</div>
|
||||
<div id="current_item_id" style="display: none;"><%= @tag.try(:id) %></div>
|
||||
|
@ -149,7 +149,7 @@
|
|||
<td style="<%= hidden unless @module %>" class="modules_holder">
|
||||
<div id="modules">
|
||||
<%= render :partial => "context_modules/context_module", :object => @module %>
|
||||
<div style="float: right; margin-top: 5px;">
|
||||
<div style="float: <%= direction('right') %>; margin-top: 5px;">
|
||||
<a href="#" class="hide_sidebar_link no-hover" title="<%= t 'links.hide_sidebar', "Hide Sidebar" %>"><%= image_tag "delete_circle.png", :alt => t('Hide Sidebar') %></a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div style="float: right; font-size: 0.8em; display: none;" class="links displaying locked">
|
||||
<div style="float: <%= direction('right') %>; font-size: 0.8em; display: none;" class="links displaying locked">
|
||||
<span style="<%= hidden if editable %>"><%= t 'messages.locked', "Can't change a rubric once you've started using it." %></span>
|
||||
<% if for_context %>
|
||||
<a href="<%= context_url(context, :context_rubric_url, rubric ? rubric.id : "{{ id }}") %>" class="delete_rubric_url" style="display: none;"> </a>
|
||||
|
@ -105,10 +105,10 @@
|
|||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="editing" style="float: right;">
|
||||
<div class="editing" style="float: <%= direction('right') %>;">
|
||||
<a href="<%= search_rubrics_url(:q => "") %>" class="find_rubric_link icon-search" style="<%= hidden unless !rubric || can_do(rubric_association, @current_user, :update) %>" title="<%= t 'titles.find_existing_rubric', "Find Existing Rubric" %>"><%= t 'links.find_a_rubric', "Find a Rubric" %></a>
|
||||
</div>
|
||||
<div class="editing" style="text-align: left">
|
||||
<div class="editing" style="text-align: <%= direction('left') %>">
|
||||
<label for="rubric-title"><%= t('title', "Title:") %></label>
|
||||
<input id="rubric-title" type="text" class="no-margin-bottom" name="title" value="<%= rubric.title rescue t('defaults.rubric_title', "Some Rubric") %>" style="width: 200px;" maxlength="255" aria-label="<%= t('title', "Title:") %>"/>
|
||||
<a href="<%= search_rubrics_url(:q => "") %>" style="display: none;"><%= image_tag "find.png", :alt => '' %> <%= t 'links.find_rubric', "Find Rubric" %></a>
|
||||
|
@ -149,7 +149,7 @@
|
|||
<%= render :partial => "shared/rubric_criterion", :object => nil %>
|
||||
<tr class="summary">
|
||||
<td colspan="4">
|
||||
<div class="total_points_holder" style="float: right; <%= hidden if rubric_association && rubric_association.hide_score_total %>">
|
||||
<div class="total_points_holder" style="float: <%= direction('right') %>; <%= hidden if rubric_association && rubric_association.hide_score_total %>">
|
||||
<span><%= before_label :total_points, "Total Points" %>
|
||||
<% ot(:out_of, "%{points} *out of %{total}*", :points => capture { %>
|
||||
<span class="rubric_total">
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<td style="padding: 0;">
|
||||
<% if !edit_view && criterion && rubric && rubric.free_form_criterion_comments %>
|
||||
<div class="custom_ratings_entry assessing">
|
||||
<div style="margin-left: 5px; margin-top: 2px; <%= hidden unless rubric_association && rubric_association.summary_data && rubric_association.summary_data[:saved_comments] && rubric_association.summary_data[:saved_comments][criterion.id.to_s] %>" class="saved_custom_rating_holder">
|
||||
<div style="margin-<%= direction('left') %>: 5px; margin-top: 2px; <%= hidden unless rubric_association && rubric_association.summary_data && rubric_association.summary_data[:saved_comments] && rubric_association.summary_data[:saved_comments][criterion.id.to_s] %>" class="saved_custom_rating_holder">
|
||||
<select class="saved_custom_rating">
|
||||
<option value=""><%= t "[ Select ]" %></option>
|
||||
<% (rubric_association.summary_data[:saved_comments][criterion.id.to_s] || [] rescue []).each do |comment| %>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<div class="rubric_dialog" id="rubric_dialog" style="display: none;">
|
||||
<h2 class="pull-left"><%= t 'titles.find_a_rubric', "Find a Rubric" %></h2>
|
||||
<a style="float: right;" href="<%= context_url(@context, :context_rubrics_url) %>"><%= t 'links.manage_rubrics', "Manage Rubrics" %></a>
|
||||
<a style="float: <%= direction('right') %>;" href="<%= context_url(@context, :context_rubrics_url) %>"><%= t 'links.manage_rubrics', "Manage Rubrics" %></a>
|
||||
<a href="<%= context_url(@context, :context_grading_rubrics_url) %>" class="grading_rubrics_url" style="display: none;"> </a>
|
||||
<div class="clear"></div>
|
||||
<div class="loading_message" style="margin: 10px; text-align: center;">
|
||||
|
@ -61,13 +61,13 @@
|
|||
<div>
|
||||
<div class="pull-left">
|
||||
<a href="#" class="select_rubric_link"><b class="title"> </b></a>
|
||||
<span class="display_name" style="padding-left: 10px; font-size: 0.8em; color: #888;">
|
||||
<span class="display_name" style="padding-<%= direction('left') %>: 10px; font-size: 0.8em; color: #888;">
|
||||
|
||||
</span>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div style="margin-left: 5px;" class="details">
|
||||
<div style="margin-<%= direction('left') %>: 5px;" class="details">
|
||||
<%= render :partial => "shared/rubric_summary", :object => nil, :locals => {:brief => true} %>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
@ -78,7 +78,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div style="margin-top: 5px; text-align: right; display: none;"><a href="#" class="cancel_find_rubric_link"><%= t '#buttons.cancel', "Cancel" %></a></div>
|
||||
<div style="margin-top: 5px; text-align: <%= direction('right') %>; display: none;"><a href="#" class="cancel_find_rubric_link"><%= t '#buttons.cancel', "Cancel" %></a></div>
|
||||
<div style="display: none;">
|
||||
<a href="<%= context_url(@context, :context_assignment_url, assignment.id) %>" style="display: none;" class="update_rubric_url"> </a>
|
||||
<a href="<%= context_url(@context, :context_rubric_associations_url) %>" class="select_rubric_url"> </a>
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
<%= render :partial => "shared/rubric_summary_criterion", :locals => {:assessing => assessing, :brief => brief} %>
|
||||
<% end %>
|
||||
<tr class="summary" style="<%= hidden if rubric_association && rubric_association.hide_score_total %>">
|
||||
<td colspan="2" style="padding-right: 10px; text-align: right;">
|
||||
<td colspan="2" style="padding-<%= direction('right') %>: 10px; text-align: <%= direction('right') %>;">
|
||||
<%= before_label :total_points, "Total Points" %>
|
||||
<%= t "*%{points}* out of **%{total}**",
|
||||
points: (assessing ? "0" : (I18n.n(rubric.points_possible) rescue 5)),
|
||||
|
|
|
@ -23,11 +23,11 @@
|
|||
<div class="post_date created_at"><%= datetime_string(submission_comment.created_at) rescue nbsp %></div>
|
||||
<%= image_tag "grading_icon.png", :class => "topic_icon", :alt => t(:grading_alt, "grading"), :title => t(:submission_comment, "Submission Comment"), :style => brief ? "padding: 2px;" : "" %>
|
||||
<a href="<%= context_url(context, :context_assignment_submission_url, submission_comment.submission.assignment_id, submission_comment.submission.user_id) %>" class="title subject"><%= submission_comment.submission.assignment.title rescue t(:assignment, "Assignment") %>, <%= context_user_name(context, submission_comment.submission.user) %></a>
|
||||
<a span="padding-left: 10px;" href="<%= context_url(context, :context_user_url, submission_comment ? submission_comment.author_id : '{{ user_id }}') %>" class="user_name"><%= context_user_name(context, submission_comment.author) rescue nbsp %></a>
|
||||
<a span="padding-<%= direction('left') %>: 10px;" href="<%= context_url(context, :context_user_url, submission_comment ? submission_comment.author_id : '{{ user_id }}') %>" class="user_name"><%= context_user_name(context, submission_comment.author) rescue nbsp %></a>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<div class="content">
|
||||
<div style="float: left; margin: 0 5px 0 -10px;"><%= avatar((submission_comment.author_id rescue nil), context.asset_string, 30) %></div>
|
||||
<div style="float: <%= direction('left') %>; margin: 0; margin-<%= direction('right') %>: 5px; margin-<%= direction('left') %>: -10px;"><%= avatar((submission_comment.author_id rescue nil), context.asset_string, 30) %></div>
|
||||
<div class="message user_content formatted_body"><%= user_content(submission_comment.try(:formatted_body)) || nbsp %></div>
|
||||
<div class="attachments_list" style="margin-top: 5px; <%= hidden unless submission_comment && !submission_comment.attachments.empty? %>">
|
||||
<% (submission_comment.attachments rescue []).each do |attachment| %>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<div id="user_list_duplicates_found" class="ui-widget">
|
||||
<div class="ui-state-highlight ui-corner-all">
|
||||
<p>
|
||||
<span style="float: left; margin-right: 0 0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<span style="float: <%= direction('left') %>; margin-<%= direction('right') %>: 0 0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<strong><%= before_label :notice, "Notice" %></strong>
|
||||
<span class="message_content"></span>
|
||||
</p>
|
||||
|
@ -52,14 +52,14 @@
|
|||
</div>
|
||||
<div id="user_list_no_valid_users" class="ui-widget">
|
||||
<div class="ui-state-highlight ui-corner-all">
|
||||
<p><span style="float: left; margin-right: 0 0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<p><span style="float: <%= direction('left') %>; margin-<%= direction('right') %>: 0 0.3em;" class="ui-icon ui-icon-info"></span>
|
||||
<%= t :no_valid_users, "*Sorry,* it does not seem as if there were any valid email addresses or login IDs typed in, please go back and try again.", :wrapper => "<strong>\\1</strong>" %></p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="user_list_with_errors" class="ui-widget">
|
||||
<div class="ui-state-highlight ui-corner-all">
|
||||
<p>
|
||||
<span style="float: left; margin-right: 0 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
<span style="float: <%= direction('left') %>; margin-<%= direction('right') %>: 0 0.3em;" class="ui-icon ui-icon-alert"></span>
|
||||
<strong><%= before_label :alert, "Alert" %></strong>
|
||||
<span class="message_content"></span>
|
||||
</p>
|
||||
|
|
|
@ -251,7 +251,7 @@
|
|||
<% if can_do(@context, @current_user, :manage_files) %>
|
||||
<%= form_for :attachment, :url => context_url(@context, :context_files_url), :html => {:id => "sidebar_upload_image_form", :style => "display: none;", :multipart => true} do |f| %>
|
||||
<input type="hidden" name="return_to" value="<%= request.url %>"/>
|
||||
<div style="margin-left: 10px;">
|
||||
<div style="margin-<%= direction('left') %>: 10px;">
|
||||
<label for="image_folder_id"><%= t('labels.folder', %{Folder}) %></label>
|
||||
<select name="attachment[folder_id]" id="image_folder_id" aria-label="<%= t('aria_label.folder_select_label', 'Select a folder to upload your image into') %>">
|
||||
<% @wiki_sidebar_data[:root_folders].each do |folder| %>
|
||||
|
|
|
@ -195,16 +195,16 @@
|
|||
|
||||
<% if @assignment.rubric_association %>
|
||||
<% @visible_rubric_assessments ||= [] %>
|
||||
<div id="rubric_holder" style="position: absolute; right: 0px; padding: 5px; background-color: #fff; border: 1px solid #aaa; border-right-width: 0; display: none;">
|
||||
<div id="rubric_holder" style="position: absolute; <%= direction('right') %>: 0px; padding: 5px; background-color: #fff; border: 1px solid #aaa; border-<%= direction('right') %>-width: 0; display: none;">
|
||||
<a
|
||||
class="hide_rubric_link"
|
||||
style="float: right; margin-right:0 !important;"
|
||||
style="float: <%= direction('right') %>; margin-<%= direction('right') %>:0 !important;"
|
||||
title="<%= t('hide_rubric_button', 'Hide Rubric') %>"
|
||||
role="button"
|
||||
aria-label="<%= t('hide_rubric_button', 'Hide Rubric') %>"
|
||||
tabindex='0'
|
||||
><i class="icon-x standalone-icon"></i></a>
|
||||
<div id="rubric_assessments_list" style="text-align: right; margin-bottom: 5px; <%= hidden if @assessment_request || @visible_rubric_assessments.empty? %>">
|
||||
<div id="rubric_assessments_list" style="text-align: <%= direction('right') %>; margin-bottom: 5px; <%= hidden if @assessment_request || @visible_rubric_assessments.empty? %>">
|
||||
<%= before_label('show_assessment_by', 'Show Assessment By') %>
|
||||
<select id="rubric_assessments_select">
|
||||
<% @visible_rubric_assessments.each do |assessment| %>
|
||||
|
@ -258,7 +258,7 @@
|
|||
<div style="background-color: #fff;">
|
||||
<a href="#" class="comments_link" style="display: none; <%= 'font-weight: bold;' unless @submission.submission_comments.empty? %>">Comments <% unless @submission.submission_comments.empty? %>(<%= @submission.submission_comments.length %>)<% end %></a>
|
||||
<div class="comments">
|
||||
<button type="button" class="btn button-secondary cancel_comment_button" style="display: none; float: right; margin-right:0 !important;"><%= image_tag("delete_circle.png", :alt => t('Delete')) %></button>
|
||||
<button type="button" class="btn button-secondary cancel_comment_button" style="display: none; float: <%= direction('right') %>; margin-<%= direction('right') %>:0 !important;"><%= image_tag("delete_circle.png", :alt => t('Delete')) %></button>
|
||||
<div class="comment_list" aria-live="polite" style="padding: 10px; clear:right;">
|
||||
<% unless @submission.user_can_read_grade?(@current_user, session) %>
|
||||
<% if @assignment.muted? %>
|
||||
|
@ -283,14 +283,14 @@
|
|||
<span style="white-space: pre-wrap;"><%= comment.comment %></span>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="comment_attachments" style="text-align: right; margin-right: 10px;">
|
||||
<div class="comment_attachments" style="text-align: <%= direction('right') %>; margin-<%= direction('right') %>: 10px;">
|
||||
<% comment.attachments.each do |attachment| %>
|
||||
<div class="comment_attachment">
|
||||
<a href="<%= context_url(@context, :context_assignment_submission_url, @assignment.id, @submission.user_id, :comment_id => comment.id, :download => attachment.id) %>" class="comment_attachment_link <%= attachment.mime_class %>"><%= attachment.display_name %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<div style="text-align: right; font-size: 0.8em; color: #888;">
|
||||
<div style="text-align: <%= direction('right') %>; font-size: 0.8em; color: #888;">
|
||||
<span class="author_name">
|
||||
<%= comment_author_name_for(comment) %>
|
||||
</span>,
|
||||
|
@ -311,8 +311,8 @@
|
|||
</div>
|
||||
<div class="comment" id="comment_blank" style="display: none; margin-bottom: 10px;">
|
||||
<span class="comment" style="color: #444; white-space: pre-wrap;"></span>
|
||||
<div class="comment_attachments" style="text-align: right; margin-right: 10px;"></div>
|
||||
<div style="text-align: right; font-size: 0.8em; color: #888;">
|
||||
<div class="comment_attachments" style="text-align: <%= direction('right') %>; margin-<%= direction('right') %>: 10px;"></div>
|
||||
<div style="text-align: <%= direction('right') %>; font-size: 0.8em; color: #888;">
|
||||
<span class="author_name"> </span>,
|
||||
<span class="posted_at"> </span>
|
||||
</div>
|
||||
|
@ -330,11 +330,11 @@
|
|||
<textarea class="ic-Input grading_comment"></textarea>
|
||||
<div class="comment_attachments">
|
||||
</div>
|
||||
<div class="clearfix" style="text-align: right;">
|
||||
<div class="clearfix" style="text-align: <%= direction('right') %>;">
|
||||
<% if feature_enabled?(:kaltura) %>
|
||||
<a href="#" class="media_comment_link media-comment pull-left"><%= t('media_comment', 'Media Comment') %></a>
|
||||
<% end %>
|
||||
<a href="#" style="float: right;" class="attach_comment_file_link"><%= t('attach_file', 'Attach File') %></a>
|
||||
<a href="#" style="float: <%= direction('right') %>;" class="attach_comment_file_link"><%= t('attach_file', 'Attach File') %></a>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
<% if @assignment.has_group_category? && can_do(@submission, @current_user, :make_group_comment) %>
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
</div>
|
||||
<% elsif @submission.submission_type == "online_text_entry" %>
|
||||
<% js_bundle 'legacy/submissions_show_preview_text' %>
|
||||
<div style="text-align: right; margin-top: 15px;">
|
||||
<div style="text-align: <%= direction('right') %>; margin-top: 15px;">
|
||||
<select class="data_view">
|
||||
<option aria-label="<%= t("Assignment %{assignment} submission Paper View", :assignment=> @assignment.title) %>" value="paper"><%= t('Paper View') %></option>
|
||||
<option aria-label="<%= t("Assignment %{assignment} submission Plain Text View", :assignment=> @assignment.title) %>" value="plain_text"><%= t('Plain Text View') %></option>
|
||||
|
|
|
@ -37,8 +37,8 @@
|
|||
<% @users.each do |user| %>
|
||||
<tr class="date">
|
||||
<td class="details"><a href="<%= user_user_notes_path(user)%>"><%= user.last_name_first %></a></td>
|
||||
<td style="text-align:left;"><%= datetime_string(user.try_rescue(:last_user_note)) || t("Never") %></td>
|
||||
<td class="courses" style="text-align:left;">
|
||||
<td style="text-align:<%= direction('left') %>;"><%= datetime_string(user.try_rescue(:last_user_note)) || t("Never") %></td>
|
||||
<td class="courses" style="text-align:<%= direction('left') %>;">
|
||||
<% user.courses.each_with_index do |course, i| %><%= ", " if i > 0 %><a href="<%= course_user_notes_path(course) %>"><%= course.short_name %></a><% end %>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<li class="<%= 'unpublished' if enrollment.course.created? || enrollment.course.claimed? %> <%= enrollment.state_based_on_date %> clearfix">
|
||||
|
||||
<a href="<%= course_user_path(enrollment.course_id, enrollment.user_id) %>" style="float: left; max-width: 800px;">
|
||||
<a href="<%= course_user_path(enrollment.course_id, enrollment.user_id) %>" style="float: <%= direction('left') %>; max-width: 800px;">
|
||||
<span class="name" title="<%= enrollment.long_name(@current_user) %>">
|
||||
<%= enrollment.long_name(@current_user) %>
|
||||
<% if enrollment.course.created? || enrollment.course.claimed? %>
|
||||
|
@ -54,7 +54,7 @@
|
|||
<% end %>
|
||||
</span>
|
||||
</a>
|
||||
<span style="float: right; margin-right: 5px; margin-top: 3px;">
|
||||
<span style="float: <%= direction('right') %>; margin-<%= direction('right') %>: 5px; margin-top: 3px;">
|
||||
<% if enrollment.can_be_deleted_by(@current_user, enrollment.course, session) %>
|
||||
<a href="#" rel="<%= api_v1_destroy_enrollment_url(enrollment.course_id, enrollment.id, {:task => "delete"}) %>" class="unenroll_link" role="button">
|
||||
<i class="icon-end standalone-icon"></i>
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<% unless @read_only %>
|
||||
<%# order important: the can_do(...) check filters out contexts that don't respond to root_account (e.g. User) %>
|
||||
<% first = true %>
|
||||
<td class="links" colspan="2" style="text-align: right; font-size: 0.8em; padding-top: 10px;">
|
||||
<td class="links" colspan="2" style="text-align: <%= direction('right') %>; font-size: 0.8em; padding-top: 10px;">
|
||||
<% if @user.grants_right?(@current_user, :rename) %>
|
||||
<% first = false %>
|
||||
<a href="#" class="edit_user_link"><%= t('edit', 'Edit') %></a>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
margin: 10px 0;
|
||||
}
|
||||
.merge_results td, .merge_results th {
|
||||
padding-right: 10px;
|
||||
padding-<%= direction('right') %>: 10px;
|
||||
padding-bottom: 3px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
@ -35,14 +35,14 @@
|
|||
border-top: 1px solid #ddd;
|
||||
}
|
||||
.merge_results .result > td {
|
||||
border-left: 1px solid #ddd;
|
||||
border-<%= direction('left') %>: 1px solid #ddd;
|
||||
}
|
||||
.merge_results thead .result > td {
|
||||
font-weight: bold;
|
||||
}
|
||||
.merge_results th {
|
||||
font-weight: bold;
|
||||
padding-right: 10px;
|
||||
padding-<%= direction('right') %>: 10px;
|
||||
}
|
||||
</style>
|
||||
<% end %>
|
||||
|
@ -76,7 +76,7 @@
|
|||
:pending_other_user_name => @pending_other_user.name, :pending_other_user_email => @pending_other_user.email) %>
|
||||
<%= render :partial => 'merge_results', :locals => {:user => @user, :other_user => @pending_other_user} %>
|
||||
<a class="btn" id="prepare_to_merge" style="width: 6em;" href="<%= user_admin_merge_url(@user.id, :new_user_id => @pending_other_user.id) %>"><%= t('prepare_to_merge', "Prepare to Merge Users") %></a>
|
||||
<span style="font-size: 0.8em; padding-left: 50px;">
|
||||
<span style="font-size: 0.8em; padding-<%= direction('left') %>: 50px;">
|
||||
<a class="btn" id="switch_user_positions" style="width: 6em;" href="<%= user_admin_merge_url(@pending_other_user.id, :pending_user_id => @user.id) %>"><%= t('switch_user_positions', "Switch User Positions") %></a>
|
||||
<a class="btn merge_with_other" style="width: 13em;" href="<%= user_admin_merge_url(@user.id, :clear => 1) %>"><%= t('merge_somone_else', 'Merge Someone Else With %{user_name}', :user_name => @user.name) %></a>
|
||||
<a class="btn merge_with_other" style="width: 13em;" href="<%= user_admin_merge_url(@pending_other_user.id, :clear => 1) %>"><%= t('merge_somone_else', 'Merge Someone Else With %{user_name}', :user_name => @pending_other_user.name) %></a>
|
||||
|
@ -109,7 +109,7 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<div style="margin-top: 20px;">
|
||||
<span id="selected_name" style="font-weight: bold; padding-right: 10px;"></span>
|
||||
<span id="selected_name" style="font-weight: bold; padding-<%= direction('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='btn btn-small select_button'><%= t 'links.select', "Select" %></a>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
<% unless @presenter.prior_enrollments.empty? %>
|
||||
<div style="margin-top: 20px; display: none;" id="previous_courses">
|
||||
<h2><%= t('titles.previous_courses', 'Previous Courses') %></h2>
|
||||
<table class="summary" style="margin-left: 20px; min-width: 350px;">
|
||||
<table class="summary" style="margin-<%= direction('left') %>: 20px; min-width: 350px;">
|
||||
<thead><tr>
|
||||
<th><%= t('course', 'Course') %></th>
|
||||
<th><%= t('percent', 'Percent') %></th>
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<div>
|
||||
<h1 class="screenreader-only"><%= t(:page_header_title, "User Profile") %></h1>
|
||||
<% if @context_account.is_a?(Account) && @context_account.has_outcomes? %>
|
||||
<div style="float: right;">
|
||||
<div style="float: <%= direction('right') %>;">
|
||||
<div>
|
||||
<a href="<%= context_url(@context_account, :context_user_outcomes_results_url, @user.id) %>" class=""><%= t('see_outcomes', 'See Outcome Results for %{user}', :user => @user.short_name) %></a>
|
||||
</div>
|
||||
|
@ -47,8 +47,8 @@
|
|||
margin-bottom: 2em;
|
||||
}
|
||||
#user-info-fieldsets table th{
|
||||
text-align: left;
|
||||
padding-right: 2em;
|
||||
text-align: <%= direction('left') %>;
|
||||
padding-<%= direction('right') %>: 2em;
|
||||
}
|
||||
ul.context_list .subtitle {
|
||||
line-height: 1.0em;
|
||||
|
@ -68,7 +68,7 @@
|
|||
<div id="courses_list" style="<%= hidden if @enrollments.empty? %>">
|
||||
<h3><%= t('courses', 'Courses') %> <%= count_if_any(@enrollments.count) %></h3>
|
||||
<div class="courses" style="font-size: 1.2em">
|
||||
<ul class="unstyled_list context_list" style="margin-left: 5px; font-size: 0.9em; margin-bottom: 10px; max-height: 200px; overflow: auto;">
|
||||
<ul class="unstyled_list context_list" style="margin-<%= direction('left') %>: 5px; font-size: 0.9em; margin-bottom: 10px; max-height: 200px; overflow: auto;">
|
||||
<% @enrollments.each do |enrollment| %>
|
||||
<% num_enrollments += 1 %>
|
||||
<%= render :partial => "enrollment", :object => enrollment %>
|
||||
|
@ -79,7 +79,7 @@
|
|||
<% if @user.adminable_accounts && !@user.adminable_accounts.empty? %>
|
||||
<h3><%= t('accounts', 'Accounts') %> <%= count_if_any(@user.adminable_accounts.count) %></h3>
|
||||
<div class="accounts" style="font-size: 1.2em">
|
||||
<ul class="unstyled_list context_list" style="margin-left: 5px; font-size: 0.9em; margin-bottom: 10px; max-height: 200px; overflow: auto;">
|
||||
<ul class="unstyled_list context_list" style="margin-<%= direction('left') %>: 5px; font-size: 0.9em; margin-bottom: 10px; max-height: 200px; overflow: auto;">
|
||||
<% @user.adminable_accounts.each do |account| %>
|
||||
<% num_enrollments += 1 %>
|
||||
<li>
|
||||
|
@ -95,7 +95,7 @@
|
|||
<% if !@group_memberships.empty? %>
|
||||
<h3><%= t('groups', 'Groups') %> <%= count_if_any(@group_memberships.count) %></h3>
|
||||
<div class="groups" style="font-size: 1.2em">
|
||||
<ul class="unstyled_list context_list" style="margin-left: 5px; font-size: 0.9em; max-width: 800px; margin-bottom: 10px; max-height: 200px; overflow: auto;">
|
||||
<ul class="unstyled_list context_list" style="margin-<%= direction('left') %>: 5px; font-size: 0.9em; max-width: 800px; margin-bottom: 10px; max-height: 200px; overflow: auto;">
|
||||
<% @group_memberships.each do |membership| %>
|
||||
<% num_enrollments += 1 %>
|
||||
<li>
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
<td data-number="<%= (student[:ungraded].map(&:submitted_at).compact.min || 1.day.from_now).to_i / 3600 %>">
|
||||
<% student[:ungraded].each do |submission| %>
|
||||
<%= link_to(submission.assignment.title, speed_grader_course_gradebook_path(course, :assignment_id => submission.assignment.id, :anchor => { :student_id => student[:enrollment].user_id }.to_json)) %><br/>
|
||||
<div style="padding-bottom: 5px; margin-top: -2px; padding-left: 20px; font-size: 0.8em; color: #888;">
|
||||
<div style="padding-bottom: 5px; margin-top: -2px; padding-<%= direction('left') %>: 20px; font-size: 0.8em; color: #888;">
|
||||
<% if submission.submitted_at %>
|
||||
<%= t 'submitted_time', { :zero => "submitted less than 1 day ago", :one => "submitted 1 day ago", :other => "submitted %{count} days ago" }, :count => (((Time.now - submission.submitted_at)/60)/1440).abs.to_i %>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue