Skip to content

Commit a3952dd

Browse files
committed
minor linting fixes for the site_settings/index view
1 parent 8f93b46 commit a3952dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/site_settings/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<% content_for :title, 'Site Settings' %>
22

3-
<h1><%= current_page?(global_settings_path) ? 'Global' : '' %> Site Settings</h1>
3+
<h1><%= 'Global' if current_page?(global_settings_path)%> Site Settings</h1>
44
<p>
55
The settings on this page control various aspects of the display or operation of the site. Change these
66
rarely and with care. Bear in mind that setting changes will generally not be retroactive - so if you change
@@ -26,7 +26,7 @@
2626
<h4><%= setting.name %></h4>
2727
<div class="form-caption"><%= setting.description %></div>
2828
</td>
29-
<td class="site-setting--value js-setting-value<%= setting.text? ? '' : ' nowrap' %>"
29+
<td class="site-setting--value js-setting-value<%= ' nowrap' if setting.text? %>"
3030
data-type="<%= setting.value_type %>" data-name="<%= setting.name %>"
3131
data-community-id="<%= current_page?(global_settings_path) ? nil : RequestContext.community_id %>">
3232
<%= setting.typed %>

0 commit comments

Comments
 (0)