Sha256: 9871b474b9f1e3685b7c10207528630bf04bf364048bfc31a915c3bdcf1326b9
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
<ul id="controls" class="menu"> <li id="auth_controls"> <% if current_user %> <%= link_to t("txt.views.layouts.application.logout"), user_session_path, :method => :delete %> <% else %> <%= link_to t("txt.views.layouts.application.login"), new_user_session_path(:back_to => @return_url) %> <ul class="hidden"><li><%= t("txt.common.pending") %></li></ul> <% end %> </li> <li id="language_selection"> <a href="javascript:;" class="lang-widget"><%= t("txt.views.lang_widget.caption") %> ▼</a> <ul class="lang-widget"> <%- unless Iqvoc::Concept.pref_labeling_languages.reject(&:nil?).length == 0 -%> <li><h3><%= t("txt.views.lang_widget.primary") %></h3></li> <% Iqvoc::Concept.pref_labeling_languages.each do |lang| %> <li> <%= link_to t("languages.#{lang}"), params.merge(:lang => lang), :class => lang == I18n.locale.to_s ? "current" : nil %> </li> <% end %> <% end %> <% if Iqvoc.available_languages.length > 1 %> <li><h3><%= t("txt.views.lang_widget.secondary") %></h3></li> <% Iqvoc.available_languages.reject { |lang| lang == I18n.locale.to_s }.each do |lang| %> <li> <label> <input type="checkbox" value="<%= lang %>"> <%= t("languages.#{lang}") %> </label> </li> <% end %> <% end %> </ul> </li> </ul>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iqvoc-3.5.7 | app/views/layouts/_controls.html.erb |