<% title _("Settings") %>
<% title_actions documentation_button('3.5.2ConfigurationOptions') %>
<ul class="nav nav-tabs" data-tabs="tabs">
  <% @settings.group_by(&:category).each do |category, setting| %>
    <li class='<%= category == @settings.first.category ? "active" : ""%>'>
      <a href='<%= "##{short_cat(category)}" %>' data-toggle="tab"><%= _(short_cat(category)) %></a>
    </li>
  <% end %>
</ul>
<div class="tab-content">
  <% @settings.group_by(&:category).each do |category, setting| %>
    <div class="tab-pane <%= "active" if category == @settings.first.category %>" id='<%= short_cat(category) %>' >
      <table class="table table-bordered table-striped">
        <thead>
          <tr>
            <th><%= s_("Setting|Name") %></th>
            <th><%= s_("Setting|Value") %></th>
            <th><%= s_("Setting|Description") %></th>
          </tr>
        </thead>
        <tbody>
          <% setting.each do |item| %>
            <tr>
              <td><%=h item.name %></td>
              <td class="setting_value"><%= value(item) %></td>
              <td><%=h _(item.description) %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
    </div>
  <% end %>
</div>
