mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-12-09 21:56:32 +08:00
Remove legacy protocol links [SCI-7323]
This commit is contained in:
parent
e96ccdb1d5
commit
b67bea81b8
3 changed files with 3 additions and 3 deletions
|
|
@ -241,7 +241,7 @@ module Dashboard
|
|||
when 'Project'
|
||||
project_path(object_id)
|
||||
when 'Protocol'
|
||||
edit_protocol_path(object_id)
|
||||
protocol_path(object_id)
|
||||
when 'RepositoryBase'
|
||||
repository_path(object_id)
|
||||
when 'Report'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%=t "general.close" %></button>
|
||||
<% if can_manage_protocol_in_repository?(@protocol) %>
|
||||
<%= route_to_other_team_btn edit_protocol_path(protocol),
|
||||
<%= route_to_other_team_btn protocol_path(protocol),
|
||||
protocol.team,
|
||||
t('general.edit') %>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
text %>
|
||||
<% end %>
|
||||
<% elsif can_manage_protocol_in_repository?(step.protocol) %>
|
||||
<%= route_to_other_team edit_protocol_path(step.protocol),
|
||||
<%= route_to_other_team protocol_path(step.protocol),
|
||||
step.protocol.team,
|
||||
text %>
|
||||
<% else %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue