- Change badge class from 'badge-ghost' to 'badge-info' - Adjust the badge to have a softer appearance This update improves the visual clarity of the wiki data badge, making it more consistent with the overall design while ensuring the functionality remains unchanged.
14 lines
765 B
Plaintext
14 lines
765 B
Plaintext
<% 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}",
|
|
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 %>
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
</svg>
|
|
<%= t("text.wiki_data") %>
|
|
<% end %>
|
|
</div>
|
|
<% end %> |