Sha256: 9392455152cb9298c6df1302c9f208d33b6e495405fae97b3e4b86ab4b522859

Contents?: true

Size: 483 Bytes

Versions: 4

Compression:

Stored size: 483 Bytes

Contents

<%
  links = []
  current_tab ||= ""
  [ 
    ["Categories", {: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
platform-3.1.4 app/views/platform/admin/categories/_tabs.html.erb
platform-3.1.3 app/views/platform/admin/categories/_tabs.html.erb
platform-3.1.2 app/views/platform/admin/categories/_tabs.html.erb
platform-3.1.1 app/views/platform/admin/categories/_tabs.html.erb