Sha256: a3205351f34fd492712a2889ff82728be36d24f004a9890a7878e2cf67b9b403

Contents?: true

Size: 498 Bytes

Versions: 4

Compression:

Stored size: 498 Bytes

Contents

<%
  links = []
  current_tab ||= ""
  [ 
		["Top Translators By Language", {:action => :index}],
	].each do |link|
      if controller.action_name == link.last[:action].to_s
        current_tab = link.first if current_tab.blank?
        links << link.first
      else
        links << link_to(link.first, link.last)
      end 
   end   
%>

<div class="section_title">
  <span style="font-size:12px; float:right; padding-top:5px;">
    <%=links.join(" | ")%>
  </span>
  <%=current_tab %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/admin/metrics/_tabs.html.erb
tr8n-3.2.2 app/views/tr8n/admin/metrics/_tabs.html.erb
tr8n-3.2.1 app/views/tr8n/admin/metrics/_tabs.html.erb
tr8n-3.2.0 app/views/tr8n/admin/metrics/_tabs.html.erb