Sha256: 91bd397afbf58cf9a3adf59ece41f175b3f66269c7bf46284325caf686656441

Contents?: true

Size: 1016 Bytes

Versions: 2

Compression:

Stored size: 1016 Bytes

Contents

<%= panel 'System Configuration' do %>
    <ul>
      <% SystemConfigController.get_config_items.sort.each do |(item_name,attrib)| %>
          <% if attrib[:require_id] %>
              <% eval(attrib[:id_provider]).each do |id| %>
                  <li><%= link_to item_name.to_s.humanize.titlecase + ' Settings: ' + id.to_s.humanize.titlecase, eval("#{attrib[:path_helper]}(#{id.inspect})") %></li>
              <% end %>
          <% else %>
              <li><%= link_to item_name.to_s.humanize.titlecase + ' Settings', eval(attrib[:path_helper].to_s) %></li>
          <% end %>
      <% end %>
    </ul>

    <br>
    <br>

    <div class="center">
      <% if BarkestCore.restart_pending? %>
          <strong>Application restart is pending.</strong><br>
          <%= link_to 'Refresh Page', system_config_url, class: 'btn btn-warning' %>
      <% else %>
          <%= link_to 'Restart Application', system_config_restart_url, method: :post, class: 'btn btn-danger' %>
      <% end %>
    </div>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
barkest_core-1.5.4.0 app/views/system_config/index.html.erb
barkest_core-1.5.3.0 app/views/system_config/index.html.erb