Skip to content

Commit

Permalink
titleize group names
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed May 28, 2024
1 parent 74579ed commit a84265f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/models/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<%= render partial: "file", collection: @groups.delete(nil) %>
</div>
<% @groups.each_pair do |group, files| %>
<h3><a name="<%= group.parameterize %>"><%= group %></a></h3>
<h3><a name="<%= group.parameterize %>"><%= group.titleize %></a></h3>
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 mb-4">
<%= render partial: "file", collection: files %>
</div>
Expand Down Expand Up @@ -95,7 +95,7 @@
<a href="#files">Top</a>
<ul>
<% @groups.each_pair do |group, files| %>
<li><a href="#<%= group.parameterize %>"><%= group %></a></li>
<li><a href="#<%= group.parameterize %>"><%= group.titleize %></a></li>
<% end %>
</ul>
<%= link_to t(".files_card.bulk_edit"), bulk_edit_library_model_model_files_path(@model.library, @model), class: "btn btn-secondary" if policy(@model).edit? %>
Expand Down

0 comments on commit a84265f

Please sign in to comment.