scinote-web/app/views/global_activities/references/_team.html.erb
2021-03-02 11:13:08 +01:00

14 lines
473 B
Plaintext

<div class="ga-breadcrumb">
<span class="fas fa-users"></span>
<% 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) %>
</span>
<% end %>
</div>