Admin interface #6
|
@ -5,6 +5,17 @@
|
||||||
vertical-align: middle !important;
|
vertical-align: middle !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.picture-placeholder {
|
||||||
|
@extend .img-thumbnail;
|
||||||
|
|
||||||
|
.glyphicon {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
font-size: 48px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
@extend .pull-right;
|
@extend .pull-right;
|
||||||
@extend .btn-group;
|
@extend .btn-group;
|
||||||
|
|
|
@ -6,13 +6,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-image {
|
.profile-image {
|
||||||
@extend .img-circle;
|
@extend .img-thumbnail;
|
||||||
max-width: 140px;
|
max-width: 171px;
|
||||||
max-height: 140px;
|
max-height: 180px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.social {
|
.social {
|
||||||
@extend .btn-group;
|
@extend .btn-group;
|
||||||
|
margin-top: 10px;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@extend .btn;
|
@extend .btn;
|
||||||
|
|
|
@ -9,7 +9,10 @@
|
||||||
= image_tag @user.speaker_profile.picture.url, class: "profile-image"
|
= image_tag @user.speaker_profile.picture.url, class: "profile-image"
|
||||||
h3.media-heading
|
h3.media-heading
|
||||||
= @user.speaker_profile.name
|
= @user.speaker_profile.name
|
||||||
small< = @user.speaker_profile.organisation
|
- if @user.speaker_profile.organisation.present?
|
||||||
|
div
|
||||||
|
=> fa_icon(:briefcase)
|
||||||
|
= @user.speaker_profile.organisation
|
||||||
div.social
|
div.social
|
||||||
= link_to "mailto://#{@user.email}"
|
= link_to "mailto://#{@user.email}"
|
||||||
= fa_icon :envelope
|
= fa_icon :envelope
|
||||||
|
@ -25,6 +28,12 @@
|
||||||
h5 = SpeakerProfile.human_attribute_name(:biography)
|
h5 = SpeakerProfile.human_attribute_name(:biography)
|
||||||
= simple_format @user.speaker_profile.biography
|
= simple_format @user.speaker_profile.biography
|
||||||
|
|
||||||
|
h5 = t :contacts
|
||||||
|
- if @user.speaker_profile.twitter.present?
|
||||||
|
p #{fa_icon(:twitter)} @#{@user.speaker_profile.twitter}
|
||||||
|
- if @user.speaker_profile.public_email.present?
|
||||||
|
p #{fa_icon(:envelope)} #{@user.speaker_profile.public_email} (#{t(:public)})
|
||||||
|
p #{fa_icon(:envelope)} #{@user.email} (#{t(:private)})
|
||||||
p #{glyph(:phone)} #{Phony.format(@user.speaker_profile.mobile_phone, format: :international)}
|
p #{glyph(:phone)} #{Phony.format(@user.speaker_profile.mobile_phone, format: :international)}
|
||||||
|
|
||||||
.modal-footer
|
.modal-footer
|
||||||
|
|
|
@ -1,4 +1,10 @@
|
||||||
tr id="user-#{user.id}"
|
tr id="user-#{user.id}"
|
||||||
|
td
|
||||||
|
- if user.speaker_profile.present?
|
||||||
|
= image_tag user.speaker_profile.picture.thumb.url, class: 'img-thumbnail'
|
||||||
|
- else
|
||||||
|
.picture-placeholder
|
||||||
|
= glyph(:user)
|
||||||
td = user.email
|
td = user.email
|
||||||
td = user.speaker_profile.try(:first_name) or '-'
|
td = user.speaker_profile.try(:first_name) or '-'
|
||||||
td = user.speaker_profile.try(:last_name) or '-'
|
td = user.speaker_profile.try(:last_name) or '-'
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
table.record-table
|
table.record-table
|
||||||
thead
|
thead
|
||||||
tr
|
tr
|
||||||
|
th = SpeakerProfile.human_attribute_name(:picture)
|
||||||
th = User.human_attribute_name(:email)
|
th = User.human_attribute_name(:email)
|
||||||
th = SpeakerProfile.human_attribute_name(:first_name)
|
th = SpeakerProfile.human_attribute_name(:first_name)
|
||||||
th = SpeakerProfile.human_attribute_name(:last_name)
|
th = SpeakerProfile.human_attribute_name(:last_name)
|
||||||
|
|
Loading…
Reference in New Issue