Display tag "new" on actions
An author will see a "new" tag on each action or resource that has appeared on his dashboard since his last login. Too add "new" tag on dashbord menu when there are new resources.
This commit is contained in:
@@ -3,6 +3,9 @@
|
||||
data-equalizer-watch="resources"
|
||||
title="<%= resource_tooltip(resource, proposal) %>">
|
||||
<h4><%= resource.title %></h4>
|
||||
<% if is_new_action_since_last_login?(resource, @new_actions_since_last_login) %>
|
||||
<span class="label"><%= t("dashboard.progress.new_action") %></span>
|
||||
<% end %>
|
||||
<p class="resource-description">
|
||||
<%= resource.short_description %>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user