Default to keeping user's email addresses private.
This commit is contained in:
parent
d61b4253df
commit
ed6b2d8c93
7 changed files with 31 additions and 17 deletions
|
|
@ -70,9 +70,10 @@
|
|||
%b Submitter
|
||||
%td
|
||||
= link_to @event.submitter.name, admin_user_path(@event.submitter)
|
||||
(
|
||||
= link_to @event.submitter.email, "mailto: #{@event.submitter.email}"
|
||||
)
|
||||
- if @event.submitter.email_public
|
||||
(
|
||||
= link_to @event.submitter.email, "mailto: #{@event.submitter.email}"
|
||||
)
|
||||
%tr
|
||||
%td
|
||||
%b Speakers
|
||||
|
|
@ -80,9 +81,10 @@
|
|||
- @event.speakers.each do |speaker|
|
||||
%div
|
||||
= link_to speaker.name, admin_user_path(speaker)
|
||||
(
|
||||
= link_to speaker.email, "mailto: #{speaker.email}"
|
||||
)
|
||||
- if speaker.email_public
|
||||
(
|
||||
= link_to speaker.email, "mailto: #{speaker.email}"
|
||||
)
|
||||
%tr
|
||||
%td
|
||||
%b Biographies
|
||||
|
|
|
|||
|
|
@ -44,9 +44,10 @@
|
|||
- @booth.responsibles.each_with_index do |responsibles, i|
|
||||
.responsibles
|
||||
= link_to responsibles.name, user_path(responsibles)
|
||||
(
|
||||
= responsibles.email
|
||||
)
|
||||
- if responsibles.email_public
|
||||
(
|
||||
= responsibles.email
|
||||
)
|
||||
= ", " unless i == @booth.responsibles.length - 1
|
||||
%tr
|
||||
%td.col-md-2
|
||||
|
|
|
|||
|
|
@ -8,7 +8,8 @@
|
|||
= semantic_form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f|
|
||||
= f.input :username, required: false, input_html: { autocomplete: 'off' }
|
||||
= f.input :email, required: false, input_html: { autocomplete: 'off' }
|
||||
= f.input :email_public
|
||||
= f.input :email_public,
|
||||
hint: "Do you want to your email address publicly? (On sessions, registration lists, etc.)"
|
||||
= f.input :password, hint: "(Leave blank if you don't want to change it)", input_html: { autocomplete: 'off' }
|
||||
= f.input :password_confirmation, input_html: { autocomplete: 'off' }
|
||||
= f.inputs name: 'OpenID' do
|
||||
|
|
|
|||
|
|
@ -25,10 +25,7 @@
|
|||
%ul.nav.navbar-nav.navbar-right
|
||||
%li.dropdown
|
||||
%a.dropdown-toggle{"data-toggle" => "dropdown", href: '#', id: "current-user-detail"}
|
||||
- if not current_user.name.blank?
|
||||
#{current_user.name}
|
||||
-else
|
||||
#{current_user.email}
|
||||
= current_user.name
|
||||
= image_tag(current_user.gravatar_url(size: '18'), title: "Yo #{current_user.name}!", alt: '')
|
||||
%b.caret
|
||||
%ul.dropdown-menu
|
||||
|
|
|
|||
|
|
@ -26,7 +26,11 @@
|
|||
%tr
|
||||
%td= index
|
||||
%td= event_registration.name
|
||||
%td= event_registration.email
|
||||
%td
|
||||
- if event_registration.registration.user.email_public
|
||||
= event_registration.email
|
||||
- else
|
||||
(private)
|
||||
%td= event_registration.created_at
|
||||
%td.text-center
|
||||
- if event_registration.attended
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue