Sha256: cdcfc1638dd85f1b64170e27be5c6d2c3d1c17c351f64e8e7dd2664aec365426

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

<% title _("Settings") %>
<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">
          <tr>
            <th><%= s_("Setting|Name") %></th>
            <th><%= s_("Setting|Value") %></th>
            <th><%= s_("Setting|Description") %></th>
          </tr>
          <% setting.each do |item| %>
            <tr>
              <td><%=h item.name %></td>
              <td class="setting_value"><%= value(item) %></td>
              <td><%=h _(item.description) %></td>
            </tr>
          <% end %>
        </table>
      </div>
  <% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/app/views/settings/index.html.erb
foreman_discovery-1.0.0.rc4 test/foreman_app/app/views/settings/index.html.erb
foreman_discovery-1.0.0.rc3 test/foreman_app/app/views/settings/index.html.erb
foreman_discovery-1.0.0.rc2 test/foreman_app/app/views/settings/index.html.erb
foreman_discovery-1.0.0.rc1 test/foreman_app/app/views/settings/index.html.erb