Browse Source

Authorising the name and id attributes in events' and orgas' description

remotes/origin/master
echarp 2 years ago
parent
commit
3888485356
  1. 2
      app/views/events/show.html.haml
  2. 2
      app/views/note_mailer/notify.text.haml
  3. 2
      app/views/orgas/show.html.haml
  4. 2
      app/views/tags/show.html.haml

2
app/views/events/show.html.haml

@ -39,7 +39,7 @@
.description
= description sanitize @event.description,
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
attributes: %w[href src width height style title]
attributes: %w[href src width height style title name id]
%h3
%em.fa.fa-info-circle

2
app/views/note_mailer/notify.text.haml

@ -2,7 +2,7 @@
\
!= sanitize @note.contents.html_safe,
tags: %w[p br table tr td ul ol li a strong b em i img],
attributes: %w[href src width height]
attributes: %w[href src width height name id]
\
!= t '.edit_link'
\

2
app/views/orgas/show.html.haml

@ -29,7 +29,7 @@
.description
= description sanitize @orga.description,
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
attributes: %w[href src width height style title]
attributes: %w[href src width height style title name id]
%h3
%em.fa.fa-info-circle

2
app/views/tags/show.html.haml

@ -25,7 +25,7 @@
.description
= sanitize event.description,
tags: %w[p h1 h2 h3 h4 br table tr th td ul ol li a strong b em i img sub sup span],
attributes: %w[href src width height style title]
attributes: %w[href src width height style title name id]
- if @events_past.any?
%h2

Loading…
Cancel
Save