Sha256: bf1d5e78330583342abffc49f17c51ddcb67bce2632930b93a07fbc17706dcd1
Contents?: true
Size: 1.38 KB
Versions: 7
Compression:
Stored size: 1.38 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() %> <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
7 entries across 7 versions & 1 rubygems