mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-01 20:48:23 +08:00
Fix grayed links when subjects gets deleted
This commit is contained in:
parent
abdf3b32be
commit
fd6165bc55
6 changed files with 10 additions and 10 deletions
|
@ -1,5 +1,5 @@
|
|||
<%= render partial: "global_activities/references/team.html.erb",
|
||||
locals: { team: team, subject: subject&.team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
<div class="ga-breadcrumb">
|
||||
<%= image_tag 'icon_small/project.svg' %>
|
||||
<% if subject %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<%= render partial: "global_activities/references/team.html.erb",
|
||||
locals: { team: team, subject: subject&.team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
<div class="ga-breadcrumb">
|
||||
<span class="fas fa-folder"></span>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<% if subject.in_repository? %>
|
||||
<%= render partial: "global_activities/references/team.html.erb",
|
||||
locals: { team: team, subject: subject&.team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
<% else %>
|
||||
<%= render partial: "global_activities/references/my_module.html.erb",
|
||||
locals: { team: team, subject: subject&.my_module, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<%= render partial: "global_activities/references/team.html.erb",
|
||||
locals: { team: team, subject: subject&.team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
<div class="ga-breadcrumb">
|
||||
<span class="fas fa-clipboard-check"></span>
|
||||
<% if subject %>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<%= render partial: "global_activities/references/team.html.erb",
|
||||
locals: { team: team, subject: subject&.team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
locals: { team: team, subject: team, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %>
|
||||
<div class="ga-breadcrumb">
|
||||
<span class="fas fa-list-alt"></span>
|
||||
<% if subject %>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<div class="ga-breadcrumb">
|
||||
<span class="fas fa-users"></span>
|
||||
<% if subject %>
|
||||
<%= route_to_other_team projects_path(team: subject.id),
|
||||
subject,
|
||||
subject.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
|
||||
title: subject.name %>
|
||||
<% if team %>
|
||||
<%= route_to_other_team projects_path(team: team.id),
|
||||
team,
|
||||
team.name&.truncate(Constants::NAME_TRUNCATION_LENGTH),
|
||||
title: team.name %>
|
||||
<% else %>
|
||||
<span title="<%= breadcrumbs['team'] %>">
|
||||
<%= breadcrumbs['team']&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
|
||||
|
|
Loading…
Reference in a new issue