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

7 lines
238 B
Text

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