i18n [ijk].* shared partials
Change-Id: I0ce1daaefc5f8484eb4461a5c7fc8f1133c4c913 Reviewed-on: https://gerrit.instructure.com/4532 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Brian Palmer <brianp@instructure.com>
This commit is contained in:
parent
5fd76c7119
commit
7af574cbc9
|
@ -1,29 +1,29 @@
|
|||
<ul id="identity">
|
||||
<% if !@current_user %>
|
||||
<% if !@domain_root_account || @domain_root_account == Account.default %>
|
||||
<li class="no-left-border"><%= link_to "Sign Up as a Teacher", register_path %></li>
|
||||
<li class="no-left-border"><%= link_to t('links.sign_up_as_teacher', "Sign Up as a Teacher"), register_path %></li>
|
||||
<li><%= link_to "Log In", login_path %></li>
|
||||
<% else %>
|
||||
<li class="no-left-border"><%= link_to "Log In", login_path %></li>
|
||||
<li class="no-left-border"><%= link_to t('links.log_in', "Log In"), login_path %></li>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<li class="user_name"><%= link_to @current_user.short_name, profile_path %></li>
|
||||
<% if @real_current_user && @real_current_user != @current_user %>
|
||||
<li class="stop_masquerading"><%= link_to "[Stop Masquerading]", user_masquerade_url(@real_current_user.id), :method => :post %></li>
|
||||
<li class="stop_masquerading"><%= link_to t('links.stop_masquerading', "[Stop Masquerading]"), user_masquerade_url(@real_current_user.id), :method => :post %></li>
|
||||
<% end %>
|
||||
<li class="first inbox"><a href="<%= inbox_path %>"><span>Inbox</span>
|
||||
<li class="first inbox"><a href="<%= inbox_path %>"><span><%= t 'links.inbox', "Inbox" %></span>
|
||||
<% unread = @current_user.unread_inbox_items_count; if unread > 0 %>
|
||||
<b class="unread-messages-count"><%= unread %></b>
|
||||
<% end %>
|
||||
</a></li>
|
||||
<li><%= link_to "Profile", profile_path %></li>
|
||||
<li><%= link_to t('links.profile', "Profile"), profile_path %></li>
|
||||
<li class="user_id" style="display: none;"><%= @current_user.id %></li>
|
||||
<li class="course_id" style="display: none;"><%= @context.id if @context && @context.is_a?(Course) %></li>
|
||||
<li id="current_context_code" style="display: none;"><%= @context.try_rescue(:asset_string) %></li>
|
||||
<li class="user_long_name" style="display: none;"><%= @current_user.name %></li>
|
||||
<li class="logout"><%= link_to "Logout", logout_path, :method => :delete %></li>
|
||||
<li class="logout"><%= link_to t('links.logout', "Logout"), logout_path, :method => :delete %></li>
|
||||
<% end %>
|
||||
<% if Setting.get_cached("show_feedback_link", "false") == "true" %>
|
||||
<li class="feedback"><a href="#" id="feedback_link">Feedback</a></li>
|
||||
<li class="feedback"><a href="#" id="feedback_link"><%= t 'links.feedback', "Feedback" %></a></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
|
|
@ -114,14 +114,14 @@
|
|||
<div style="float: left;" id="file_display_name"><%= @attachment ? @attachment.display_name : @tag.title %>
|
||||
</div>
|
||||
<div style="float: right; padding-top:0.5em;">
|
||||
<a href="#" id="frameless_link">Lose the Frames</a>
|
||||
<a href="#" id="frameless_link"><%= t 'links.exit_frame', "Lose the Frames"%></a>
|
||||
</div>
|
||||
<div id="current_item_id" style="display: none;"><%= @tag.id %></div>
|
||||
<div id="current_item_id" style="display: none;"><%= @tag.try(:id) %></div>
|
||||
<div style="padding-top: 0.5em;">
|
||||
<a href="<%= context_url(@context, :context_url) %>">Course Home</a> |
|
||||
<a href="<%= context_url(@context, :context_files_url) %>">Files</a>
|
||||
<a href="<%= context_url(@context, :context_url) %>"><%= t 'links.course_home', "Course Home" %></a> |
|
||||
<a href="<%= context_url(@context, :context_files_url) %>"><%= t 'links.files', "Files" %></a>
|
||||
<% if @module %>
|
||||
| <a href="<%= context_url(@context, :context_context_modules_url) %>">Modules</a>
|
||||
| <a href="<%= context_url(@context, :context_context_modules_url) %>"><%= t 'links.modules', "Modules" %></a>
|
||||
<% end %>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
|
@ -132,7 +132,7 @@
|
|||
<div id="modules">
|
||||
<%= render :partial => "context_modules/context_module", :object => @module %>
|
||||
<div style="float: right; margin-top: 5px;">
|
||||
<a href="#" class="hide_sidebar_link no-hover" title="Hide Sidebar"><%= image_tag "delete_circle.png" %></a>
|
||||
<a href="#" class="hide_sidebar_link no-hover" title="<%= t 'links.hide_sidebar', "Hide Sidebar" %>"><%= image_tag "delete_circle.png" %></a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<div class="hidden-readable">
|
||||
Hit "?" to see a list of keyboard shortcuts for this page.
|
||||
<%= t :body, %{Hit "?" to see a list of keyboard shortcuts for this page.} %>
|
||||
</div>
|
Loading…
Reference in New Issue