Skip to content

Commit

Permalink
Merge pull request #3470 from betagouv/debug-20240530
Browse files Browse the repository at this point in the history
Debug : style email dirigeant + icone PQ dans cartes relance
  • Loading branch information
LucienMLD authored May 30, 2024
2 parents 111c630 + 49d85a5 commit db71fc1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
14 changes: 13 additions & 1 deletion app/front/stylesheets/components/components.sass
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,21 @@
margin-bottom: 0.875rem
ul
li
display: flex
margin-bottom: 0
line-height: 1.6rem
&.li--marker
margin-left: 1.5rem
padding-left: 1rem
&::marker
font-family: 'remixicon' !important
font-size: 1.5rem
&.li--mail-line::marker
content: "\eef6" // ri-mail-line
&.li--phone-line::marker
content: "\efec" // ri-phone-line



&:last-child
margin-bottom: 0
.name
Expand Down
2 changes: 1 addition & 1 deletion app/models/reminders_register.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# fk_rails_... (expert_id => experts.id)
#
class RemindersRegister < ApplicationRecord
belongs_to :expert
belongs_to :expert, touch: true

validates :run_number, presence: true, uniqueness: { scope: :expert_id }

Expand Down
10 changes: 4 additions & 6 deletions app/views/application/_person.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.block-infos{ class: "#{'compact' if defined?(compact)}" }
.block-infos{ class: "break-word#{' compact' if defined?(compact)}" }
%ul.list-unstyled.fr-pl-1v
- if prefix.present?
%li.blue
Expand All @@ -13,10 +13,8 @@
%span.picto.ri-contacts-book-line{ 'aria-hidden': 'true' }
= job
- if phone_number.present?
%li
%span.picto.ri-phone-line{ 'aria-hidden': 'true' }
%li.li--marker.li--phone-line
= link_to(phone_number, "tel:#{ERB::Util.url_encode(phone_number)}", class: 'fr-link')
- if email.present?
%li
%span.picto.ri-mail-line{ 'aria-hidden': 'true' }
= mail_to email, email, class: 'fr-link break-word'
%li.li--marker.li--mail-line
= mail_to email, email, class: 'fr-link'
2 changes: 1 addition & 1 deletion app/views/reminders/_need.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- cache [need, action] do
- cache [need, action, need.experts.pluck(:updated_at)] do
.card-reminders-need.fr-my-4w.card
.card__header
.card__title
Expand Down

0 comments on commit db71fc1

Please sign in to comment.