solid_errors 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b086564f3446e9c41472043b8ba8b4e29f97f56c7ee344a447558ec55c2cfb61
4
- data.tar.gz: b5f8b57742a711be45ce26c737a57058d3638f1e3f8d7dd4bb044e6f9deb30fc
3
+ metadata.gz: 3eb4ed02d7765415bc5b1a719cc0a7e2e0b61b3a7cf174536300ab8c0fea18a2
4
+ data.tar.gz: 5bab7cc225b36530ba37a31a6fcabb29f12192fd62bfc56405164c374453bbcd
5
5
  SHA512:
6
- metadata.gz: ee26c907eaad1ad7854c2736a9ce02facf8844517e70d43ca272778bec6dfb122ab4ed75c191a927a5c7dffebe930b3a166ec060be15fe835262989b2f8b3be7
7
- data.tar.gz: 5b29b48dcf635614609540ba0a5281b819ec8ee8742e6f486ea5e9a4010cde5fd5b579372fb7c6625b29b092c50ea65ce02d8993921e77d7b58b09f20b181a64
6
+ metadata.gz: 5cd1e176b16aa361b52526d1e1612c048cf9638e33c87fa1196ef999b332c57d9356e88abdc76899705f3a828938ce8efbe50813d330e74f9ff0df11b4d4bcb8
7
+ data.tar.gz: bddc3ee8731021723630d9bfc25c207fd6317327a65df6c1201df15cc5e5df326f11bd22c24eade3007fbcdca07a757aaf49b1a9c41cf222b310fb32eed0a45f
@@ -1,12 +1,12 @@
1
1
  <div class="inline-flex items-center justify-start flex-wrap gap-3 whitespace-nowrap">
2
2
  <% if current_controller.errors? && !current_action.errors_index? %>
3
- <%= link_to errors_path, class: button_classes(icon: true) do %>
3
+ <%= link_to errors_path, class: "inline-flex items-center justify-center gap-2 font-medium cursor-pointer border rounded-lg py-3 px-5 bg-gray-100 text-initial border-gray-300 hover:ring-gray-200 hover:ring-8" do %>
4
4
  <%= bootstrap_svg "arrow-left" %>
5
5
  <span>Back to errors</span>
6
6
  <% end %>
7
7
  <% end %>
8
8
 
9
- <%= button_to error_path(error), method: :patch, class: button_classes(type: :primary_ghost), params: { error: { resolved_at: Time.now } } do %>
9
+ <%= button_to error_path(error), method: :patch, class: "inline-flex items-center justify-center gap-2 font-medium cursor-pointer border rounded-lg py-3 px-5 bg-transparent text-blue-500 border-blue-500 hover:ring-blue-200 hover:ring-8", params: { error: { resolved_at: Time.now } } do %>
10
10
  Resolve Error<span class="sr-only"> #<%= error.id %></span>
11
11
  <% end %>
12
12
  </div>
@@ -17,7 +17,7 @@
17
17
  <%= time_ago_in_words error.occurrences.maximum(:created_at), scope: 'datetime.distance_in_words.short' %>
18
18
  </td>
19
19
  <td class="relative whitespace-nowrap py-4 pl-3 pr-4 text-right text-sm font-medium sm:pr-3">
20
- <%= button_to error_path(error), method: :patch, class: button_classes(type: :primary_ghost), params: { error: { resolved_at: Time.now } } do %>
20
+ <%= button_to error_path(error), method: :patch, class: "inline-flex items-center justify-center gap-2 font-medium cursor-pointer border rounded-lg py-3 px-5 bg-transparent text-blue-500 border-blue-500 hover:ring-blue-200 hover:ring-8", params: { error: { resolved_at: Time.now } } do %>
21
21
  Resolve<span class="sr-only">, Error #<%= error.id %></span>
22
22
  <% end %>
23
23
  </td>
@@ -14,5 +14,3 @@
14
14
  <%= render partial: "solid_errors/errors/error", collection: @errors %>
15
15
  </tbody>
16
16
  </table>
17
-
18
- <%#= @errors.count %>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidErrors
4
- VERSION = "0.2.7"
4
+ VERSION = "0.2.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solid_errors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Margheim