Skip to content

Commit

Permalink
Updated file app/views/tag/show/_tab_content.html.erb (#9598)
Browse files Browse the repository at this point in the history
Updated file config/locales/en.yml
solved issue 9540

Co-authored-by: GUNEET SINGH <[email protected]>
  • Loading branch information
Guneetsinghtuli and GUNEET SINGH authored May 11, 2021
1 parent 392a2d9 commit bc7864a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/tag/show/_tab_content.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<% if @node_type == "note" %>
<div class="tab-pane active" id="notes">
<% if @notes.nil? || @notes.length == 0 %>
<p><%= raw translation('tag.show.no_results_found', tag: params[:id]) %>:</p>
<p><a href="/search/<%= params[:id] %>">Search for "<%= params[:id] %>"</a></p>
<p><%= raw translation('tag.show.no_notes_results_found') %></p>
<p>Or try searching: <a href="/search/<%= params[:id] %>"><%= params[:id] %></a></p>
<% else %>
<%= render partial: "notes/notes", locals: { tagname: params[:id] } %>
<% end %>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ en:
wiki_pages: "Wiki pages"
maps: "Maps"
no_results_found: "No results found; try searching for '<b>%{tag}</b>'"
no_notes_results_found: "Hi! No Research Notes have this tag <span>&#x1F937</span>, try checking the <b>Questions</b> or <b>Wiki</b> tabs on this page."
no_wikis_results_found: "Hi! No Wikis have this tag <span>&#x1F937</span>, try checking the <b>Research Notes</b> or <b>Questions</b> tabs on this page."
no_questions_results_found: "Hi! No Questions have this tag <span>&#x1F937</span>, try checking the <b>Research Notes</b> or <b>Wikis</b> tabs on this page."
try_advanced_search: "Or try an <a href='%{url1}'>advanced search</a>"
Expand Down

0 comments on commit bc7864a

Please sign in to comment.