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'
|
when 'Project'
|
||||||
project_path(object_id)
|
project_path(object_id)
|
||||||
when 'Protocol'
|
when 'Protocol'
|
||||||
edit_protocol_path(object_id)
|
protocol_path(object_id)
|
||||||
when 'RepositoryBase'
|
when 'RepositoryBase'
|
||||||
repository_path(object_id)
|
repository_path(object_id)
|
||||||
when 'Report'
|
when 'Report'
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%=t "general.close" %></button>
|
<button type="button" class="btn btn-secondary" data-dismiss="modal"><%=t "general.close" %></button>
|
||||||
<% if can_manage_protocol_in_repository?(@protocol) %>
|
<% 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,
|
protocol.team,
|
||||||
t('general.edit') %>
|
t('general.edit') %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
text %>
|
text %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% elsif can_manage_protocol_in_repository?(step.protocol) %>
|
<% 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,
|
step.protocol.team,
|
||||||
text %>
|
text %>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue