Open-Source-Access-Control-.../app/views/settings/index.html.erb
2014-02-09 00:56:48 -07:00

17 lines
370 B
Plaintext
Executable File

<h2>Site-Wide Settings</h2>
<table>
<tr>
<th>Name</th>
<th>Value</th>
</tr>
<% @settings.each do |setting| %>
<tr>
<td><%= setting.first.titleize %></td>
<td>"<%= setting.last.truncate(140) %>"</td>
<% if can? :update, setting %>
<td><%= link_to 'Edit', edit_setting_path(setting.first) %></td>
<% end %>
</tr>
<% end %>
</table>