Sha256: f3606c1e4de3975cc2d8cd528ed739cb67f19a977bb03742eb362756c9053dcd

Contents?: true

Size: 776 Bytes

Versions: 15

Compression:

Stored size: 776 Bytes

Contents

<%
  links = []
  current_tab ||= ""
  [ ["Languages", {:action => :index}],
    ["Users", {:action => :users}],
    ["Context Rules", {:action => :rules}],
    ["Cases", {:action => :cases}],
    ["Case Rules", {:action => :case_rules}],
    ["Case Exceptions", {:action => :case_values}],
    ["Metrics", {:action => :metrics}],
    ["Charts", {:action => :charts}]].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(" | ").html_safe%>
  </span>
  <%=current_tab %>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
tr8n-3.2.3 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.2.2 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.2.1 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.2.0 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.8 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.7 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.6 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.5 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.4 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.3 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.2 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.1.1 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.0.5 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.0.3 app/views/tr8n/admin/language/_tabs.html.erb
tr8n-3.0.2 app/views/tr8n/admin/language/_tabs.html.erb