adds specs for stats
This commit is contained in:
@@ -10,14 +10,18 @@
|
||||
<div class="small-12 medium-3 column">
|
||||
<p class="featured">
|
||||
<%= t("admin.stats.proposal_notifications.total") %><br>
|
||||
<span class="number"><%= @proposal_notifications.count %></span>
|
||||
<span class="number" id="proposal_notifications_count">
|
||||
<%= @proposal_notifications.count %>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="small-12 medium-3 column">
|
||||
<p class="featured">
|
||||
<%= t("admin.stats.proposal_notifications.proposals_with_notifications") %><br>
|
||||
<span class="number"><%= @proposals_with_notifications.count %></span>
|
||||
<span class="number" id="proposals_with_notifications_count">
|
||||
<%= @proposals_with_notifications.count %>
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -28,8 +32,10 @@
|
||||
|
||||
<div id="proposal_notifications">
|
||||
<% @proposal_notifications.each do |notification| %>
|
||||
<p><%= link_to notification.proposal.title, proposal_path(notification.proposal) %></p>
|
||||
<p><%= notification.title %></p>
|
||||
<p><%= notification.body %></p>
|
||||
<div class="proposal_notification">
|
||||
<p><%= link_to notification.proposal.title, proposal_path(notification.proposal) %></p>
|
||||
<p><%= notification.title %></p>
|
||||
<p><%= notification.body %></p>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user