Sha256: 5a545b0fc4653b083189d243885397fd3be4e8bdc76d18e78b292d6f556cbf30

Contents?: true

Size: 1.68 KB

Versions: 11

Compression:

Stored size: 1.68 KB

Contents

<div class="translations_navigation">
  <div style="font-size:22px; font-weight: bold;padding-bottom:15px;">
	 <%=tra("Translation Tools", "Tabs header") %>
	 - <%=tra("{language} Language", nil, :language => tr8n_current_language.native_name)%>
	 <% if tr8n_current_language.default? %> 
		 <% if tr8n_current_user_is_admin? %>
		   <%=link_to(tra("manage", "Link to management section"), "/tr8n/language", :style => "font-size:12px;")%>
		 <% end %>
 	 <% else %>
		 <% if tr8n_current_user_is_manager? %>
		   <%=link_to(tra("manage", "Link to management section"), "/tr8n/language", :style => "font-size:12px;")%>
		 <% end %>
	 <% end %>  
	</div>
  
  <ul class="translations_tab_nav translations_tabs">
      <% tr8n_features_tabs.each do |tab| %>
        <%  classes = []
            section_key_condition = tab[:key].to_s == "sitemap" ? (@section_key != nil) : (@section_key == nil)

            if tab[:actions].any?
              current = (tab[:controller] == controller.controller_name and tab[:actions].include?(controller.action_name) and section_key_condition) 
            else
              current = (tab[:controller] == controller.controller_name and section_key_condition) 
            end 

            classes << "current" if current
            if tr8n_features_tabs.first == tab
              classes << "first" 
              classes << "first_current" if current
            elsif tr8n_features_tabs.last == tab
              classes << "last"
              classes << "last_current" if current
            end   
        %>
        
        <li class="<%=classes.join(' ') %>">
          <%=link_to(tra(tab[:title], "Feature title"), tab[:link])%>
        </li>

      <% end %>
  </ul>
</div>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/common/_tabs.html.erb
tr8n-3.2.2 app/views/tr8n/common/_tabs.html.erb
tr8n-3.2.1 app/views/tr8n/common/_tabs.html.erb
tr8n-3.2.0 app/views/tr8n/common/_tabs.html.erb
tr8n-3.1.8 app/views/tr8n/common/_tabs.html.erb
tr8n-3.1.7 app/views/tr8n/common/_tabs.html.erb
tr8n-3.1.6 app/views/tr8n/common/_tabs.html.erb
tr8n-3.1.5 app/views/tr8n/common/_tabs.html.erb
tr8n-3.1.4 app/views/tr8n/common/_tabs.html.erb
tr8n-3.1.3 app/views/tr8n/common/_tabs.html.erb
tr8n-3.1.2 app/views/tr8n/common/_tabs.html.erb