scinote-web/app/views/global_activities/references/_team.html.erb
aignatov-bio b1f9e7f1ca Fix global activities jsonb field [SCI-3830] (#2030)
* Fix global activities jsonb field

* Fix tests
2019-11-18 13:59:54 +01:00

13 lines
488 B
Text

<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 %>
<% else %>
<span title="<%= breadcrumbs['team'] %>">
<%= breadcrumbs['team']&.truncate(Constants::NAME_TRUNCATION_LENGTH) %>
</span>
<% end %>
</div>