pg_rails 7.0.8.pre.alpha.45 → 7.0.8.pre.alpha.47

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: 51044044d32796f5a93f9fcbaff4dbbc304750d17b06ea31adc4a569c6ac6aeb
4
- data.tar.gz: da956e274b861c0aca4fb6a52ff2f0b1ffbe9e8bf24a917864de09cea13a1459
3
+ metadata.gz: d00b1bbbfee181b3b277407e4f0c47f6ae4e46c3320843cd584c59f8f26e1923
4
+ data.tar.gz: 4b7333ebed2f3e2b38c66d61d1f62cca791417e39ac172262462519048f446c2
5
5
  SHA512:
6
- metadata.gz: 164e7f6a1412103f63e35576c221145c592e908123c8f8d08942a8539578d970959d39a4c179a5779882add40fe673f9760657b13fa9ae6d010c8b9a6077d207
7
- data.tar.gz: e0ac5127c12affbd5c16d2d03656e56c34d83af715ad838f49dc6f88c8da10c2d1713316bb1971e9cd38b13589507a5d117cbaef92aa96b7f58eca2cdc283b94
6
+ metadata.gz: 44b458f61a8143f3726da5ebefc6d05a8b83bd9ad0663804aa2b8cdbce3be6d2843564362c6aa15160ec75e4ce8eb932bfc6eae5166275fa32c8ab672b5a4dc8
7
+ data.tar.gz: 60ae139cd51262e8bdcd7bb687e0810f3eda3e0bcb32b3bb511b428a9153d7d5e24654c96e460ac9428861804db28d1770c63931f110c716f90e99b400066c93
@@ -8,6 +8,7 @@ ActiveAdmin.register User do
8
8
  column :email
9
9
  column :current_sign_in_at
10
10
  column :created_at
11
+ column :confirmed_at
11
12
  column :developer
12
13
  actions
13
14
  end
@@ -21,14 +21,6 @@ form label {
21
21
  font-weight: bold;
22
22
  }
23
23
 
24
- .form-control,
25
- .form-select {
26
- border: 1px solid #a7b7bb;
27
-
28
- &:focus, &:focus-visible {
29
- outline: 1px solid color.adjust(#a7b7bb, $saturation: +30%);
30
- }
31
- }
32
24
  select[multiple] {
33
25
  height: inherit;
34
26
  }
@@ -84,3 +76,22 @@ input[type=datetime-local], input[type=datetime] {
84
76
  border-radius: var(--bs-border-radius);
85
77
  padding: 0.6em 0.4em;
86
78
  }
79
+
80
+
81
+ .navbar {
82
+ @extend .bg-primary;
83
+ }
84
+
85
+ .offcanvas {
86
+ @extend .bg-primary;
87
+ }
88
+
89
+ :root {
90
+ --bs-border-radius-sm: 0.06rem;
91
+ --bs-border-radius: 0.1rem;
92
+ --bs-border-radius-lg: 0.25rem;
93
+ --bs-border-radius-xl: 0.45rem;
94
+ --bs-border-radius-xxl: 0.6rem;
95
+ --bs-border-color: #a7b7bb;
96
+ --bs-body-bg: #{$light};
97
+ }
@@ -51,11 +51,11 @@ module Admin
51
51
  end
52
52
 
53
53
  def atributos_para_listar
54
- %i[email nombre apellido developer]
54
+ %i[email nombre apellido confirmed_at developer]
55
55
  end
56
56
 
57
57
  def atributos_para_mostrar
58
- %i[email nombre apellido developer]
58
+ %i[email nombre apellido confirmed_at developer]
59
59
  end
60
60
  end
61
61
  end
@@ -36,6 +36,12 @@ Rollbar.configure({
36
36
  document.addEventListener('turbo:load', bindToasts)
37
37
  document.addEventListener('turbo:render', bindToasts)
38
38
 
39
+ document.addEventListener('turbo:before-cache', () => {
40
+ document.querySelectorAll('.offcanvas-backdrop').forEach((el) => {
41
+ el.remove()
42
+ })
43
+ })
44
+
39
45
  function bindToasts () {
40
46
  const toastElList = document.querySelectorAll('.toast:not(.hide):not(.show)')
41
47
  Array.from(toastElList).map(toastEl => new bootstrap.Toast(toastEl).show())
@@ -2,7 +2,7 @@ class Navbar
2
2
  include Rails.application.routes.url_helpers
3
3
 
4
4
  attr_reader :extensiones
5
- attr_accessor :logo
5
+ attr_accessor :logo, :logo_xl, :logo_xl_url
6
6
 
7
7
  def initialize(user)
8
8
  @user = user
@@ -1,3 +1,9 @@
1
+ <% if @navbar.logo_xl_url.present? %>
2
+ <div class="mx-3 my-4 m-md-5">
3
+ <%= image_tag @navbar.logo_xl_url, class: 'img-fluid' %>
4
+ </div>
5
+ <% end %>
6
+
1
7
  <h2><%= t(".sign_up") %></h2>
2
8
  <div id="form-signup" data-controller="pg_form">
3
9
  <%= pg_form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %>
@@ -1,3 +1,9 @@
1
+ <% if @navbar.logo_xl_url.present? %>
2
+ <div class="mx-3 my-4 m-md-5">
3
+ <%= image_tag @navbar.logo_xl_url, class: 'img-fluid' %>
4
+ </div>
5
+ <% end %>
6
+
1
7
  <h2><%= t(".sign_in") %></h2>
2
8
 
3
9
  <%= pg_form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
@@ -23,7 +23,7 @@ html
23
23
  meta name="rollbar-env" content="#{Rails.env}"
24
24
  body
25
25
  #flash-wrapper.d-flex.justify-content-around
26
- #flash.flash.z-1
26
+ #flash.flash.z-1 style="margin-top: 3px"
27
27
  = render partial: 'pg_layout/flash'
28
28
  = render partial: 'pg_layout/sidebar_mobile'
29
29
 
@@ -1,6 +1,6 @@
1
1
  / Flash messages que se muestran en el HTML
2
2
  / slim-lint:disable LineLength
3
- - flash_to_show = flash.select { |flash_message| flash_message[0].to_sym.in? ApplicationController._flash_types }
3
+ - flash_to_show = flash.select { |fm| fm[0].to_sym.in?(ApplicationController._flash_types) && fm[1].present? }
4
4
  / slim-lint:enable LineLength
5
5
  - toast = flash[:toast].nil? ? true : flash[:toast]
6
6
  - if toast
@@ -1,4 +1,4 @@
1
- <div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
1
+ <div class="offcanvas offcanvas-start" data-turbo-temporary="true" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
2
2
  <div class="offcanvas-header" data-bs-theme="dark">
3
3
  <h5 class="offcanvas-title" id="offcanvasExampleLabel"></h5>
4
4
  <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PgRails
4
- VERSION = '7.0.8-alpha.45'
4
+ VERSION = '7.0.8-alpha.47'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.8.pre.alpha.45
4
+ version: 7.0.8.pre.alpha.47
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martín Rosso