Skip to content

Commit

Permalink
Use blue instead of indigo
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed May 2, 2024
1 parent 4eb3b41 commit 7a3b14c
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions app/views/madmin/application/edit.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<h1 class="text-xl mb-4">
<%= 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" %>
/
<strong>Edit <%= link_to resource.display_name(@record), resource.show_path(@record), class: "text-indigo-500" %></strong>
<strong>Edit <%= link_to resource.display_name(@record), resource.show_path(@record), class: "text-blue-500" %></strong>
</h1>

<%= render partial: "form", locals: { record: @record, resource: resource } %>
6 changes: 3 additions & 3 deletions app/views/madmin/application/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div class="flex-grow flex md:justify-end gap-4">
<form class="flex items-center gap-2 relative">
<%= 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 %>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd" />
Expand Down Expand Up @@ -51,8 +51,8 @@
<% end %>

<td class="px-4 py-2 text-center">
<%= 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" %>
</td>
</tr>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/madmin/application/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h1 class="text-xl mb-4">
<%= 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" %>
/
<strong>New <%= resource.friendly_name %></strong>
</h1>
Expand Down
4 changes: 2 additions & 2 deletions app/views/madmin/application/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="md:flex items-center justify-between mb-4">
<h1 class="text-xl">
<%= 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" %>
</h1>

<div class="flex gap-2 items-center px-4">
Expand Down
2 changes: 1 addition & 1 deletion app/views/madmin/fields/attachment/_show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
2 changes: 1 addition & 1 deletion app/views/madmin/fields/attachments/_show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
2 changes: 1 addition & 1 deletion app/views/madmin/fields/belongs_to/_show.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>
2 changes: 1 addition & 1 deletion app/views/madmin/fields/file/_show.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>
2 changes: 1 addition & 1 deletion app/views/madmin/fields/has_many/_show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% field.value(record).each do |object| %>
<div>
<%= 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" %>
</div>
<% end %>
2 changes: 1 addition & 1 deletion app/views/madmin/fields/integer/_index.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>
2 changes: 1 addition & 1 deletion app/views/madmin/fields/nested_has_many/_show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<% field.value(record).each do |object| %>
<div>
<%= 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" %>
</div>
<% end %>
2 changes: 1 addition & 1 deletion app/views/madmin/fields/polymorphic/_show.html.erb
Original file line number Diff line number Diff line change
@@ -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 %>

0 comments on commit 7a3b14c

Please sign in to comment.