scinote-web/app/views/search/results/partials/_repository_text.html.erb

7 lines
237 B
Text

<% if can_read_team?(repository.team) %>
<%= route_to_other_team repository_path(id: repository.id),
repository.team,
repository.name %>
<% else %>
<%= repository.name %>
<% end %>