Skip to content

Commit cd8eb5f

Browse files
committed
fixed lack of label for the site/category
1 parent d73dd8f commit cd8eb5f

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

app/views/users/_prefs.html.erb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@
1111
<input class="js-user-pref" type="checkbox" data-pref="<%= name %>" <%= 'checked' if value == 'true' %>
1212
data-community="<%= community %>" />
1313
<% when 'choice' %>
14-
<%= select_tag nil, options_for_select(preference_choice(pref_config), selected: value),
15-
include_blank: true, class: 'js-user-pref form-element', data: { pref: name, community: community } %>
14+
<%= select_tag nil,
15+
options_for_select(preference_choice(pref_config), selected: value),
16+
class: 'js-user-pref form-element',
17+
data: { pref: name, community: community } %>
1618
<% when 'integer' %>
1719
<input class="js-user-pref form-element" type="number" data-pref="<%= name %>" value="<%= value %>"
1820
data-community="<%= community %>" />
@@ -22,4 +24,4 @@
2224
<% end %>
2325
</div>
2426
</div>
25-
<% end %>
27+
<% end %>

config/config/preferences.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ default_license:
3838
Your choice of default license. This will override site and category default licensing.
3939
default: ~
4040
choice:
41+
- name: Site or category default
42+
value: ~
4143
- name: CC BY-SA 4.0
4244
value: CC BY-SA 4.0
4345
- name: CC BY 4.0

0 commit comments

Comments
 (0)