mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-01 01:14:30 +08:00
Add missing target var to result searches
This commit is contained in:
parent
17bcaeb2c2
commit
6d26203796
4 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<% if result.is_text %>
|
||||
<%= render partial: "results/result_text.html.erb", locals: {result: result, markdown: markdown} %>
|
||||
<%= render partial: "results/result_text.html.erb", locals: {result: result, markdown: markdown, target: nil} %>
|
||||
<% elsif result.is_table %>
|
||||
<%= render partial: "results/result_table.html.erb", locals: {result: result} %>
|
||||
<% elsif result.is_asset %>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<% elsif asset.result %>
|
||||
<span>
|
||||
<%=t "search.index.result" %>
|
||||
<%= render partial: "search/results/partials/result_text.html.erb", locals: { result: asset.result } %>
|
||||
<%= render partial: "search/results/partials/result_text.html.erb", locals: { result: asset.result, target: nil } %>
|
||||
</span>
|
||||
<br>
|
||||
<span>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<span class="glyphicon glyphicon-file"></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= render partial: "search/results/partials/result_text.html.erb", locals: { result: result, query: search_query } %>
|
||||
<%= render partial: "search/results/partials/result_text.html.erb", locals: { result: result, query: search_query, target: nil } %>
|
||||
</h5>
|
||||
|
||||
<% if result.is_text && result.result_text.text.present? && !result.result_text.text.empty? && @markdown.present? %>
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<% elsif table.result %>
|
||||
<span>
|
||||
<%=t "search.index.result" %>
|
||||
<%= render partial: "search/results/partials/result_text.html.erb", locals: { result: table.result } %>
|
||||
<%= render partial: "search/results/partials/result_text.html.erb", locals: { result: table.result, target: nil } %>
|
||||
</span>
|
||||
<br>
|
||||
<span>
|
||||
|
|
Loading…
Add table
Reference in a new issue