Skip to content

Commit

Permalink
More good layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Nov 18, 2024
1 parent ad29a3e commit ccd1f19
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions app/views/home/_user_job_roles.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
<% role.managed_user_job_roles.each do |managed_role| %>
<% user = managed_role.user %>
<div class="col-3">
<div class="card bg-transparent my-3">
<div class="card-header">
<span class="badge rounded-pill text-bg-success float-start"><%= user.good_events_count -%></span>
<span class="badge rounded-pill text-bg-danger float-end"><%= user.bad_events_count -%></span>
</div>
<div class="card-body bg-white">
<div class="text-center">
<div class="card my-3">
<div class="card-body">
<span class="badge rounded-pill text-bg-success float-end"><%= user.good_events_count -%></span>
<span class="badge rounded-pill text-bg-danger float-end mx-1"><%= user.bad_events_count -%></span>
<div class="text-left">
<div><%= user.chinese_name %></div>
<small class="text-muted"><%= managed_role.title %></small>
</div>
Expand Down

0 comments on commit ccd1f19

Please sign in to comment.