Sha256: 293430e29eaceda2a50bc7dc9deb56b182549e484be01cfeb8a92e2d3c90190c

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 Bytes

Contents

<%= render 'shared/message' %>

<div class="row">
  <div class="col-md-12 mb-4">
    <%= link_to 'Create new setting', new_web_setting_path, class: 'btn btn-secondary d-block' %>
  </div>
</div>

<% if @settings.present? %>
  <table class="table">
    <thead>
      <tr>
        <th>#</th>
        <th>Key</th>
        <th>Value</th>
      </tr>
    </thead>
    <tbody>
      <% @settings.each.with_index(1) do |setting, index| %>
        <tr>
          <td><%= link_to index, web_setting_path(setting) %></td>
          <td><%= setting.key %></td>
          <td><%= setting.value %></td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% else %>
  <p>The settings was blank, try add a new one in <%= link_to 'here', new_web_setting_path %>.</p>
<% end %>
   

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
realiser-0.2.0 app/views/realiser/web/settings/index.html.erb
realiser-0.1.1 app/views/realiser/web/settings/index.html.erb
realiser-0.1.0 app/views/realiser/web/settings/index.html.erb