Skip to content

Commit

Permalink
show weekly metrics for Goals and Objectives
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Apr 4, 2022
1 parent 7937afc commit 713d8ed
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/views/admin/collections/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@
</h4>
<div>
<%= link_to "Q1", admin_collections_path(quarter: 1, year: 2022), class: "usa-button #{params[:quarter] == "1" && params[:year] == "2022" ? nil : 'usa-button--outline'}" %>
</div>
<div>
<%= link_to "Q2", admin_collections_path(quarter: 2, year: 2022), class: "usa-button #{params[:quarter] == "2" && params[:year] == "2022" ? nil : 'usa-button--outline'}" %>
</div>
</div>
Expand Down
22 changes: 22 additions & 0 deletions app/views/components/_weekly_metrics.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,28 @@
</tr>
</tbody>
</table>
<table class="usa-table" style="width: 100%;">
<thead>
<tr>
<th>
Goals
</th>
<th>
Objectives
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<%= Goal.count %>
</td>
<td>
<%= Objective.count %>
</td>
</tr>
</tbody>
</table>
<table class="usa-table" style="width: 100%;">
<thead>
<tr>
Expand Down

0 comments on commit 713d8ed

Please sign in to comment.