mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-08 15:05:22 +02:00
* fix: replace hardcoded bg-white with bg-container in notification notice * fix: replace hardcoded text-white with fg-inverse in notification CTA * fix: replace hardcoded text-white with fg-inverse in text tooltip * fix: replace hardcoded bg-gray-900 text-white with bg-inverse fg-inverse in invitations form * fix: replace hardcoded bg-gray-800 text-white with bg-inverse fg-inverse in AI consent form * fix: replace hardcoded text-white with fg-inverse in changelog page * fix: replace hardcoded text-white and border-gray-500 with fg-inverse and border-secondary in investment tooltip * fix: replace hardcoded text-white with fg-inverse in holdings missing price tooltip * fix: replace hardcoded text-white and bg-gray-400 with fg-inverse and bg-surface-inset in settings profiles * fix: replace hardcoded bg-orange-500 text-white with bg-yellow-600 fg-inverse in settings hosting danger zone --------- Co-authored-by: Eran Avidor <eavidor@Eran-Avidor-MBP.lan>
20 lines
1 KiB
Text
20 lines
1 KiB
Text
<% if Current.user.admin? %>
|
|
<div class="space-y-4">
|
|
<div class="flex flex-col md:flex-row md:items-center md:justify-between gap-4">
|
|
<div class="w-full md:w-2/3">
|
|
<h3 class="font-medium text-primary"><%= t("settings.hostings.show.clear_cache") %></h3>
|
|
<p class="text-secondary text-sm"><%= t("settings.hostings.show.clear_cache_warning") %></p>
|
|
</div>
|
|
<%=
|
|
button_to t("settings.hostings.show.clear_cache"), clear_cache_settings_hosting_path, method: :delete,
|
|
class: "w-full md:w-auto bg-yellow-600 fg-inverse text-sm font-medium rounded-lg px-4 py-2",
|
|
data: { turbo_confirm: {
|
|
title: t("settings.hostings.show.confirm_clear_cache.title"),
|
|
body: t("settings.hostings.show.confirm_clear_cache.body"),
|
|
accept: t("settings.hostings.show.clear_cache"),
|
|
acceptClass: "w-full bg-yellow-600 fg-inverse rounded-xl text-center p-[10px] border mb-2"
|
|
}}
|
|
%>
|
|
</div>
|
|
</div>
|
|
<% end %>
|