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

10 lines
255 B
Plaintext
Raw Normal View History

2016-02-12 23:52:43 +08:00
<% 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 %>