diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index e508cf813..37a186ff1 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -29,7 +29,7 @@ module AdminHelper end def menu_profiles? - ["administrators", "organizations", "officials", "moderators", "valuators", "managers", "users"].include? controller_name + ["administrators", "organizations", "officials", "moderators", "valuators", "managers", "users", "activity"].include? controller_name end def menu_banners? diff --git a/app/views/admin/_menu.html.erb b/app/views/admin/_menu.html.erb index f2af2c116..b573f6b41 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -115,7 +115,7 @@ <%= link_to t("admin.menu.officials"), admin_officials_path %> -
| <%= t("admin.activity.show.type") %> | -<%= t("admin.activity.show.action") %> | -<%= t("admin.activity.show.content") %> | -<%= t("admin.activity.show.by") %> | -
|---|---|---|---|
|
- <%= activity.actionable_type.constantize.model_name.human %> - <%= l activity.actionable.created_at.to_date %> - |
-
- <%= t("admin.activity.show.actions.#{activity.action}") %> - <%= l activity.created_at.to_date %> - |
-
- <% case activity.actionable_type %>
- <% when "User" %>
- <%= activity.actionable.username %> (<%= activity.actionable.email %>)
- <% when "Comment" %>
- <%= activity.actionable.body %>
- <% else %>
- <%= activity.actionable.title %>
- -
- <%= activity.actionable.description %>
-
- <% end %>
- |
- <%= activity.user.name %> (<%= activity.user.email %>) | -
| <%= t("admin.activity.show.type") %> | +<%= t("admin.activity.show.action") %> | +<%= t("admin.activity.show.content") %> | +<%= t("admin.activity.show.by") %> | +
|---|---|---|---|
|
+ <%= activity.actionable_type.constantize.model_name.human %> + <%= l activity.actionable.created_at.to_date %> + |
+
+ <%= t("admin.activity.show.actions.#{activity.action}") %> + <%= l activity.created_at.to_date %> + |
+
+ <% case activity.actionable_type %>
+ <% when "User" %>
+ <%= activity.actionable.username %> (<%= activity.actionable.email %>)
+ <% when "Comment" %>
+ <%= activity.actionable.body %>
+ <% else %>
+ <%= activity.actionable.title %>
+ +
+ <%= activity.actionable.description %>
+
+ <% end %>
+ | + <%= activity.user.name %> (<%= activity.user.email %>) + | +