diff --git a/app/views/cities/show.html.erb b/app/views/cities/show.html.erb index 2965577..9573f8c 100644 --- a/app/views/cities/show.html.erb +++ b/app/views/cities/show.html.erb @@ -35,6 +35,18 @@
<%= @city&.state&.name %>
+ <% if @city.wiki_data_id.present? %> + <%= link_to "https://www.wikidata.org/wiki/#{@city.wiki_data_id}", + target: "_blank", + rel: "noopener noreferrer", + class: "badge badge-lg badge-outline badge-info gap-2", + data: { controller: "tooltip", tooltip_target: "tooltip", tooltip_content: "View on WikiData" } do %> + + + + WikiData + <% end %> + <% end %>