Open-Source-Access-Control-.../app/views/settings/index.html.erb

17 lines
370 B
Plaintext
Raw Normal View History

2013-09-28 11:59:19 +00:00
<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>
2013-09-28 11:59:19 +00:00
<% if can? :update, setting %>
<td><%= link_to 'Edit', edit_setting_path(setting.first) %></td>
<% end %>
</tr>
<% end %>
</table>