mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-14 17:05:20 +08:00
fixes searching tables bug [fixes SCI-402]
This commit is contained in:
parent
bc73579c68
commit
eb394ce209
2 changed files with 6 additions and 3 deletions
|
@ -20,7 +20,10 @@
|
||||||
<span>
|
<span>
|
||||||
<%=t "search.index.module" %>
|
<%=t "search.index.module" %>
|
||||||
<%= render partial: "search/results/partials/my_module_text.html.erb",
|
<%= render partial: "search/results/partials/my_module_text.html.erb",
|
||||||
locals: { my_module: table.step.protocol.my_module, link_to_page: :results } %>
|
locals: {
|
||||||
|
my_module: table.step.protocol.my_module,
|
||||||
|
link_to_page: :protocols
|
||||||
|
} %>
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
<span>
|
<span>
|
||||||
|
@ -57,7 +60,7 @@
|
||||||
<span>
|
<span>
|
||||||
<%=t "search.index.module" %>
|
<%=t "search.index.module" %>
|
||||||
<%= render partial: "search/results/partials/my_module_text.html.erb",
|
<%= render partial: "search/results/partials/my_module_text.html.erb",
|
||||||
locals: { my_module: table.result.my_module } %>
|
locals: { my_module: table.result.my_module, link_to_page: :results } %>
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
<span>
|
<span>
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
<%= text %>
|
<%= text %>
|
||||||
</a>
|
</a>
|
||||||
<% when :results %>
|
<% when :results %>
|
||||||
<a href="<%= results_my_module_path(my_module.experiment.project) %>">
|
<a href="<%= results_my_module_path(my_module) %>">
|
||||||
<%= text %>
|
<%= text %>
|
||||||
</a>
|
</a>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
Loading…
Reference in a new issue