Sha256: 0edcfa5376d9c8befb94ade94b61d5b1d640463a8464929c2f2ab4d738d2ff79
Contents?: true
Size: 1.44 KB
Versions: 8
Compression:
Stored size: 1.44 KB
Contents
<ul class="nav pull-right"> <li class="divider-vertical"></li> <li id="language_selection" class="dropdown"> <a href="javascript:;" class="dropdown-toggle"> <%= t("txt.views.lang_widget.caption") %> <b class="caret"></b> </a> <ul class="lang-widget dropdown-menu"> <%- if Iqvoc::Concept.pref_labeling_languages.reject(&:nil?).any? -%> <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 => ("current" if lang == I18n.locale.to_s) %> </li> <% end %> <% end %> <% secondary_languages = Iqvoc.available_languages.reject { |lang| lang == I18n.locale.to_s } %> <% if secondary_languages.any? %> <li><h3><%= t("txt.views.lang_widget.secondary") %></h3></li> <% secondary_languages.each do |lang| %> <li> <label> <input type="checkbox" value="<%= lang %>"> <%= t("languages.#{lang}") %> </label> </li> <% end %> <% end %> </ul> </li> <li> <% 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) %> <% end %> </li> </ul>
Version data entries
8 entries across 8 versions & 1 rubygems