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

8 lines
237 B
Text
Raw Normal View History

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