Skip to content

Commit

Permalink
Error message for maps tab at /tags (#4284)
Browse files Browse the repository at this point in the history
* Error message for maps tab

* Singular error message

* Update _tab_content.html.erb

* Update _tab_content.html.erb

* Update app/views/tag/show/_tab_content.html.erb

Co-Authored-By: oorjitchowdhary <39333058+oorjitchowdhary@users.noreply.github.com>
  • Loading branch information
oorjitchowdhary authored and grvsachdeva committed Dec 19, 2018
1 parent 92e444a commit 1666d4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/tag/show/_tab_content.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@
<% if @node_type == "maps" %>
<div class="tab-pane active" id="wikis">
<%= render :partial => "map/maps" %>
<% if @nodes.empty? %>
<p><strong>Sorry, no map is tagged with `<%= params[:id] %>` tag. You can view other maps <a href="/maps">here</a>.</strong></p>
<% else %>
<%= render :partial => "map/maps" %>
<% end %>
</div>
<% end %>
Expand Down

0 comments on commit 1666d4c

Please sign in to comment.