Sha256: 8bcf77886a5f02a175b28ddc2f0fcdcfedebaff9592bd9dc66ed3ba7a3f21941

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

<%
  links = []
  current_tab ||= "Topics"
  [ ["Topics", {:action => :index}],
    ["Messages", {:action => :messages}]
  ].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;">
    <%=raw(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/forum/_tabs.html.erb
platform-3.1.3 app/views/platform/admin/forum/_tabs.html.erb
platform-3.1.2 app/views/platform/admin/forum/_tabs.html.erb
platform-3.1.1 app/views/platform/admin/forum/_tabs.html.erb