tabs.patch

add an asterisk to allow translations with args - LluĂ­s Gili, 2011-09-27 10:21

Download (642 Bytes)

View differences:

app/views/common/_tabs.rhtml
3 3
<div class="tabs">
4 4
  <ul>
5 5
  <% tabs.each do |tab| -%>
6
    <li><%= link_to l(tab[:label]), { :tab => tab[:name] },
6
    <li><%= link_to l(*tab[:label]), { :tab => tab[:name] },
7 7
                                    :id => "tab-#{tab[:name]}",
8 8
                                    :class => (tab[:name] != selected_tab ? nil : 'selected'),
9 9
                                    :onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>