Browse Source

Add no merge requests message

pull/2561/head
Manny Dinssa 2 years ago
parent
commit
683a6eeb29
  1. 4
      app/views/organisations/_merge_request_list.html.erb

4
app/views/organisations/_merge_request_list.html.erb

@ -1,4 +1,7 @@
<section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>"> <section class="app-table-group" tabindex="0" aria-labelledby="<%= title.dasherize %>">
<% if @merge_requests.empty? %>
<p>No merge requests</p>
<% else %>
<%= govuk_table do |table| %> <%= govuk_table do |table| %>
<%= table.with_caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %> <%= table.with_caption(classes: %w[govuk-!-font-size-19 govuk-!-font-weight-regular]) do |caption| %>
<strong><%= @merge_requests.where.not(status: 4).count %></strong> unresolved merge requests <strong><%= @merge_requests.where.not(status: 4).count %></strong> unresolved merge requests
@ -51,4 +54,5 @@
<% end %> <% end %>
<% end %> <% end %>
<% end %> <% end %>
<% end %>
</section> </section>

Loading…
Cancel
Save