mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 18:52:07 +08:00
Fix opening of activites for archived my_module [SCI-8887] (#5804)
This commit is contained in:
parent
12dd66b6a6
commit
f84de45cfe
2 changed files with 3 additions and 2 deletions
|
@ -88,7 +88,8 @@
|
|||
</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a class="btn btn-light task-card-view-activities" href="<%= activities_my_module_url(id: my_module.id) %>" aria-controls="<%= my_module.id %>_activities" role="tab">
|
||||
<a class="btn btn-light task-card-view-activities" href="<%= activities_my_module_url(id: my_module.id, view_mode: my_module.archived_branch? ? 'archived' : 'active') %>"
|
||||
aria-controls="<%= my_module.id %>_activities" role="tab">
|
||||
<span class="sn-icon sn-icon-activities" aria-hidden="true"></span>
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
<% end %>
|
||||
</a>
|
||||
<a class="p-4 border-b-4 border-transparent text-sn-grey hover:no-underline <%= "border-sn-blue" if is_module_activities? %>"
|
||||
href="<%= activities_my_module_url(@my_module) %>"
|
||||
href="<%= activities_my_module_url(@my_module, view_mode: params[:view_mode]) %>"
|
||||
title="<%= t("nav2.modules.activities") %>"
|
||||
>
|
||||
<%= t("nav2.modules.activities") %>
|
||||
|
|
Loading…
Reference in a new issue