Skip to content

Commit

Permalink
Improve registers display in curator dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
lmrodriguezr committed Dec 6, 2023
1 parent cd67571 commit 77b9efe
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions app/views/users/_pending_registers.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,37 @@
</h2>

<% @pending_registers.each do |r| %>
<div class="card my-3">
<div class="card my-3 register-card">
<%= link_to(r, class: 'card-header btn btn-light text-left') do %>
<%= r.acc_url %>: <b><%= r.propose_title %></b>
<% end %>
<div class="card-body row">
<div class="col-md-6">
Last updated <%= time_ago_in_words(r.updated_at) %> ago
by <%= r.user.display_name %>
<br/>
<%= pluralize(r.names.count, 'name') %>,
<%= r.status_name %>
<div class="container row register-metadata">
<div class="col-4">
<%= fa_icon('th-list') %>&nbsp;
<%= pluralize(r.names.count, 'name') %>
</div>
<div class="col-4 text-center">
<%= fa_icon('comment') %>&nbsp;
<%= pluralize(r.correspondences.count, 'message') %>
</div>
<div class="col-4 text-right">
<% status_cl = r.status_name == 'notified' ? 'success' : 'info' %>
<span class="text-<%= status_cl %>">
<%= fa_icon('clipboard-check') %>&nbsp;
<%= r.status_name %>
</span>
</div>
<div class="col-6">
<%= fa_icon('user') %>&nbsp;
<%= r.user.display_name %>
</div>
<div class="col-6 text-right">
<%= fa_icon('history') %>&nbsp;
<%= time_ago_in_words(r.updated_at) %> ago
</div>
</div>
</div>
<div class="col-md-6 border-left">
<%= render(partial: 'registers/curator_review_checks',
Expand Down

0 comments on commit 77b9efe

Please sign in to comment.