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

8 lines
238 B
Text
Raw Normal View History

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