mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-13 04:36:00 +08:00
Change link in activities for protocols [SCI-11240]
This commit is contained in:
parent
4fb54535ad
commit
d0877c7d15
2 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ module GlobalActivitiesHelper
|
|||
end
|
||||
when Protocol
|
||||
if obj.my_module.nil?
|
||||
path = protocols_path(team: obj.team.id)
|
||||
path = protocol_path(obj)
|
||||
elsif obj.my_module.navigable?
|
||||
path = protocols_my_module_path(obj.my_module)
|
||||
else
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<% if subject.in_repository? %>
|
||||
<div class="ga-breadcrumb">
|
||||
<span class="sn-icon sn-icon-protocols-templates"></span>
|
||||
<%= route_to_other_team protocols_path(team: subject.team),
|
||||
<%= route_to_other_team protocol_path(subject),
|
||||
team,
|
||||
subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
|
||||
title: subject.name %>
|
||||
|
|
Loading…
Reference in a new issue