scinote-web/app/views/search/results/partials/_step_text.html.erb
2016-02-12 16:52:43 +01:00

10 lines
No EOL
255 B
Text

<% query ||= nil %>
<% text = query.present? ? highlight(step.name, query) : step.name %>
<% if can_view_steps_in_module(step.my_module) %>
<a href="<%= my_module_steps_path(step.my_module) %>">
<%= text %>
</a>
<% else %>
<%= text %>
<% end %>