Sha256: 316ff57059f462992c18301e89f1cf2edaf90d5ec323a0e46116fb48c5159078

Contents?: true

Size: 562 Bytes

Versions: 4

Compression:

Stored size: 562 Bytes

Contents

<%
  links = []
  current_tab ||= ""
  [["Translation Keys", {:action => :index}],
   ["Comments", {:action => :comments}],
   ["Locks", {:action => :locks}]].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

4 entries across 4 versions & 1 rubygems

Version Path
tr8n-3.1.1 app/views/tr8n/admin/translation_key/_tabs.html.erb
tr8n-3.0.5 app/views/tr8n/admin/translation_key/_tabs.html.erb
tr8n-3.0.3 app/views/tr8n/admin/translation_key/_tabs.html.erb
tr8n-3.0.2 app/views/tr8n/admin/translation_key/_tabs.html.erb