style: simplify wiki data badge display
- Removed unnecessary div wrappers from the wiki data badge - Cleaned up the code for better readability This change enhances the markup simplicity without affecting the functionality, ensuring the badge displays correctly while maintaining the same styling.
This commit is contained in:
parent
75e7004da6
commit
435244777c
@ -1,5 +1,4 @@
|
|||||||
<% if city.wiki_data_id.present? %>
|
<% if city.wiki_data_id.present? %>
|
||||||
<div class="badge badge-soft badge-lg badge-info">
|
|
||||||
<%= link_to "https://www.wikidata.org/wiki/#{city.wiki_data_id}",
|
<%= link_to "https://www.wikidata.org/wiki/#{city.wiki_data_id}",
|
||||||
target: "_blank",
|
target: "_blank",
|
||||||
rel: "noopener noreferrer",
|
rel: "noopener noreferrer",
|
||||||
@ -10,5 +9,4 @@
|
|||||||
</svg>
|
</svg>
|
||||||
<%= t("text.wiki_data") %>
|
<%= t("text.wiki_data") %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
Loading…
Reference in New Issue
Block a user