From 7a3b14ce9ce82ecf0f6d360fad0c08f56bf99b78 Mon Sep 17 00:00:00 2001 From: Chris Oliver Date: Thu, 2 May 2024 16:24:40 -0500 Subject: [PATCH] Use blue instead of indigo --- app/views/madmin/application/edit.html.erb | 4 ++-- app/views/madmin/application/index.html.erb | 6 +++--- app/views/madmin/application/new.html.erb | 2 +- app/views/madmin/application/show.html.erb | 4 ++-- app/views/madmin/fields/attachment/_show.html.erb | 2 +- app/views/madmin/fields/attachments/_show.html.erb | 2 +- app/views/madmin/fields/belongs_to/_show.html.erb | 2 +- app/views/madmin/fields/file/_show.html.erb | 2 +- app/views/madmin/fields/has_many/_show.html.erb | 2 +- app/views/madmin/fields/integer/_index.html.erb | 2 +- app/views/madmin/fields/nested_has_many/_show.html.erb | 2 +- app/views/madmin/fields/polymorphic/_show.html.erb | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/views/madmin/application/edit.html.erb b/app/views/madmin/application/edit.html.erb index 0d3c8a5..ab31171 100644 --- a/app/views/madmin/application/edit.html.erb +++ b/app/views/madmin/application/edit.html.erb @@ -1,7 +1,7 @@

- <%= link_to resource.friendly_name.pluralize, resource.index_path, class: "text-indigo-500" %> + <%= link_to resource.friendly_name.pluralize, resource.index_path, class: "text-blue-500" %> / - Edit <%= link_to resource.display_name(@record), resource.show_path(@record), class: "text-indigo-500" %> + Edit <%= link_to resource.display_name(@record), resource.show_path(@record), class: "text-blue-500" %>

<%= render partial: "form", locals: { record: @record, resource: resource } %> diff --git a/app/views/madmin/application/index.html.erb b/app/views/madmin/application/index.html.erb index 3679454..1747e16 100644 --- a/app/views/madmin/application/index.html.erb +++ b/app/views/madmin/application/index.html.erb @@ -4,7 +4,7 @@
<%= hidden_field_tag :page, params[:page], value: 1, class: "hidden" %> - <%= search_field_tag :q, params[:q], placeholder: "Search", class: "rounded-full px-4 focus:bg-white focus:border-indigo-500" %> + <%= search_field_tag :q, params[:q], placeholder: "Search", class: "rounded-full px-4 focus:bg-white focus:border-blue-500" %> <%= link_to clear_search_params, class: "absolute top-1/2 right-3 text-gray-500 bg-white transform -translate-y-1/2" do %> @@ -51,8 +51,8 @@ <% end %> - <%= link_to "View", resource.show_path(record), class: "text-indigo-500" %> - <%= link_to "Edit", resource.edit_path(record), class: "text-indigo-500" %> + <%= link_to "View", resource.show_path(record), class: "text-blue-500" %> + <%= link_to "Edit", resource.edit_path(record), class: "text-blue-500" %> <% end %> diff --git a/app/views/madmin/application/new.html.erb b/app/views/madmin/application/new.html.erb index 39a5bd8..d01f482 100644 --- a/app/views/madmin/application/new.html.erb +++ b/app/views/madmin/application/new.html.erb @@ -1,5 +1,5 @@

- <%= link_to resource.friendly_name.pluralize, resource.index_path, class: "text-indigo-500" %> + <%= link_to resource.friendly_name.pluralize, resource.index_path, class: "text-blue-500" %> / New <%= resource.friendly_name %>

diff --git a/app/views/madmin/application/show.html.erb b/app/views/madmin/application/show.html.erb index 0895f35..b1c4f90 100644 --- a/app/views/madmin/application/show.html.erb +++ b/app/views/madmin/application/show.html.erb @@ -1,8 +1,8 @@

- <%= link_to resource.friendly_name.pluralize, resource.index_path, class: "text-indigo-500" %> + <%= link_to resource.friendly_name.pluralize, resource.index_path, class: "text-blue-500" %> / - <%= link_to resource.display_name(@record), resource.show_path(@record), class: "text-indigo-500 font-bold" %> + <%= link_to resource.display_name(@record), resource.show_path(@record), class: "text-blue-500 font-bold" %>

diff --git a/app/views/madmin/fields/attachment/_show.html.erb b/app/views/madmin/fields/attachment/_show.html.erb index 2c8f431..050aa0f 100644 --- a/app/views/madmin/fields/attachment/_show.html.erb +++ b/app/views/madmin/fields/attachment/_show.html.erb @@ -4,6 +4,6 @@ <%= image_tag main_app.url_for(attachment), class: "max-h-32" %> <% end %> <% else %> - <%= link_to attachment.filename, main_app.url_for(attachment), target: :_blank, class: "text-indigo-500 underline" %> + <%= link_to attachment.filename, main_app.url_for(attachment), target: :_blank, class: "text-blue-500 underline" %> <% end %> <% end %> \ No newline at end of file diff --git a/app/views/madmin/fields/attachments/_show.html.erb b/app/views/madmin/fields/attachments/_show.html.erb index da22043..69da8cd 100644 --- a/app/views/madmin/fields/attachments/_show.html.erb +++ b/app/views/madmin/fields/attachments/_show.html.erb @@ -5,7 +5,7 @@ <%= image_tag main_app.url_for(attachment), class: "max-h-32" %> <% end %> <% else %> - <%= link_to attachment.filename, main_app.url_for(attachment), target: :_blank, class: "text-indigo-500 underline" %> + <%= link_to attachment.filename, main_app.url_for(attachment), target: :_blank, class: "text-blue-500 underline" %> <% end %> <% end %> <% end %> diff --git a/app/views/madmin/fields/belongs_to/_show.html.erb b/app/views/madmin/fields/belongs_to/_show.html.erb index 6ee48a4..6ac53b1 100644 --- a/app/views/madmin/fields/belongs_to/_show.html.erb +++ b/app/views/madmin/fields/belongs_to/_show.html.erb @@ -1,3 +1,3 @@ <% if (object = field.value(record)) %> - <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-indigo-500 underline" %> + <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-blue-500 underline" %> <% end %> diff --git a/app/views/madmin/fields/file/_show.html.erb b/app/views/madmin/fields/file/_show.html.erb index 288557c..bb45255 100644 --- a/app/views/madmin/fields/file/_show.html.erb +++ b/app/views/madmin/fields/file/_show.html.erb @@ -1,6 +1,6 @@ <% value = field.value(record) %> <% if value.respond_to?(:url) %> - <%= link_to value.url, value.url, target: :_blank, class: "text-indigo-500 underline" %> + <%= link_to value.url, value.url, target: :_blank, class: "text-blue-500 underline" %> <% else %> <%= value %> <% end %> diff --git a/app/views/madmin/fields/has_many/_show.html.erb b/app/views/madmin/fields/has_many/_show.html.erb index c6512b2..a48b1f8 100644 --- a/app/views/madmin/fields/has_many/_show.html.erb +++ b/app/views/madmin/fields/has_many/_show.html.erb @@ -1,5 +1,5 @@ <% field.value(record).each do |object| %>
- <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-indigo-500 underline" %> + <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-blue-500 underline" %>
<% end %> diff --git a/app/views/madmin/fields/integer/_index.html.erb b/app/views/madmin/fields/integer/_index.html.erb index 0570a5a..e06f72a 100644 --- a/app/views/madmin/fields/integer/_index.html.erb +++ b/app/views/madmin/fields/integer/_index.html.erb @@ -1,5 +1,5 @@ <% if field.attribute_name == :id %> - <%= link_to field.value(record), resource.show_path(record), class: "text-indigo-500 underline" %> + <%= link_to field.value(record), resource.show_path(record), class: "text-blue-500 underline" %> <% else %> <%= field.value(record) %> <% end %> diff --git a/app/views/madmin/fields/nested_has_many/_show.html.erb b/app/views/madmin/fields/nested_has_many/_show.html.erb index c6512b2..a48b1f8 100644 --- a/app/views/madmin/fields/nested_has_many/_show.html.erb +++ b/app/views/madmin/fields/nested_has_many/_show.html.erb @@ -1,5 +1,5 @@ <% field.value(record).each do |object| %>
- <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-indigo-500 underline" %> + <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-blue-500 underline" %>
<% end %> diff --git a/app/views/madmin/fields/polymorphic/_show.html.erb b/app/views/madmin/fields/polymorphic/_show.html.erb index 6ee48a4..6ac53b1 100644 --- a/app/views/madmin/fields/polymorphic/_show.html.erb +++ b/app/views/madmin/fields/polymorphic/_show.html.erb @@ -1,3 +1,3 @@ <% if (object = field.value(record)) %> - <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-indigo-500 underline" %> + <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object), class: "text-blue-500 underline" %> <% end %>