remove visible traces of team members

This commit is contained in:
pixeldesu 2017-03-29 14:52:26 -07:00
parent 6787c0539f
commit b153a04b54
2 changed files with 9 additions and 53 deletions

View File

@ -51,35 +51,6 @@
- User.where(contributor: true).each do |sup| - User.where(contributor: true).each do |sup|
%a{href: show_user_profile_path(sup.screen_name), title: sup.screen_name, data: { toggle: :tooltip, placement: :top }} %a{href: show_user_profile_path(sup.screen_name), title: sup.screen_name, data: { toggle: :tooltip, placement: :top }}
%img.img-rounded.answerbox--img-small{src: sup.profile_picture.url(:medium)} %img.img-rounded.answerbox--img-small{src: sup.profile_picture.url(:medium)}
.panel.panel-default
.panel-body
.row
.col-md-4
%h3= t 'views.about.team.title'
= t('views.about.team.desc', app_title: APP_CONFIG['site_name'])
%br/
- APP_CONFIG['admins'].each do |adm|
.media
.pull-left
%a{href: show_user_profile_path(adm['screen_name'])}
%img.img-rounded.answerbox--img{src: User.find_by_screen_name(adm['screen_name']).profile_picture.url(:medium)}
.media-body
%h4.entry-text.entry-about= adm['about_text']
%h6.entry-subtext= adm['subtext']
.col-md-4
%h3= t 'views.about.moderators.title'
%p= t('views.about.moderators.desc', app_title: APP_CONFIG['site_name'])
%ul.about--moderator
- User.where(moderator: true).each do |mod|
%a{href: show_user_profile_path(mod.screen_name), title: mod.screen_name, data: { toggle: :tooltip, placement: :top }}
%img.img-rounded.answerbox--img{src: mod.profile_picture.url(:medium)}
.col-md-4
%h3= t 'views.about.funding.title'
%p= t('views.about.funding.desc', app_title: APP_CONFIG['site_name'])
%ul.about--moderator
- User.where(supporter: true).each do |sup|
%a{href: show_user_profile_path(sup.screen_name), title: sup.screen_name, data: { toggle: :tooltip, placement: :top }}
%img.img-rounded.answerbox--img{src: sup.profile_picture.url(:medium)}
.panel.panel-default .panel.panel-default
.panel-body .panel-body
.row .row

View File

@ -1,29 +1,14 @@
.panel.panel-default#profile .panel.panel-default#profile
%img.profile--avatar{src: @user.profile_picture.url(:large)} %img.profile--avatar{src: @user.profile_picture.url(:large)}
- if @user.admin? - if user_signed_in? && current_user.admin?
.profile--panel-badge.panel-badge-danger - if @user.admin?
%i.fa.fa-flask .profile--panel-badge.panel-badge-danger
= t 'views.user.title.admin' %i.fa.fa-flask
- if @user.moderator? = t 'views.user.title.admin'
.profile--panel-badge.panel-badge-success - if @user.moderator?
%i.fa.fa-users .profile--panel-badge.panel-badge-success
= t 'views.user.title.moderator' %i.fa.fa-users
- if @user.supporter? = t 'views.user.title.moderator'
.profile--panel-badge.panel-badge-warning
%i.fa.fa-star
= t 'views.user.title.supporter'
- if @user.contributor?
.profile--panel-badge.panel-badge-primary
%i.fa.fa-github
= t 'views.user.title.contributor'
- if @user.blogger?
.profile--panel-badge.panel-badge-info
%i.fa.fa-pencil
= t 'views.user.title.blogger'
- if @user.translator?
.profile--panel-badge.panel-badge-info
%i.fa.fa-globe
= t 'views.user.title.translator'
- if @user.banned? - if @user.banned?
.profile--panel-badge.panel-badge-default .profile--panel-badge.panel-badge-default
%i.fa.fa-ban %i.fa.fa-ban