made admin listing changeable in justask.yml

This commit is contained in:
nilsding 2015-04-02 01:28:42 +02:00
parent 7236a8c46f
commit 47cbbed719
2 changed files with 22 additions and 15 deletions

View File

@ -13,20 +13,14 @@
= succeed '!' do
= APP_CONFIG['site_name']
%br/
- APP_CONFIG['admins'].each do |adm|
.media
.pull-left
%a{href: show_user_profile_path('pixeldesu')}
%img.img-rounded.answerbox--img{src: User.find_by_screen_name('pixeldesu').profile_picture.url(:medium)}
%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 pixeldesu
%h6.entry-subtext Frontend Design & Layout
.media
.pull-left
%a{href: show_user_profile_path('Filippus')}
%img.img-rounded.answerbox--img{src: User.find_by_screen_name('Filippus').profile_picture.url(:medium)}
.media-body
%h4.entry-text.entry-about Filippus
%h6.entry-subtext Moderator Management & Support
%h4.entry-text.entry-about= adm['about_text']
%h6.entry-subtext= adm['subtext']
.panel.panel-default
.panel-body
%h3 Moderators

View File

@ -29,3 +29,16 @@ sharing:
# Redis
redis_url: "redis://localhost:6379"
# Site admins
admins:
- screen_name: 'nilsding'
about_text: nilsding
subtext: Backend, Server & Code
- screen_name: 'pixeldesu'
about_text: pixeldesu
subtext: Frontend Design & Layout
- screen_name: 'Filippus'
about_text: Filippus
subtext: Moderator Management & Support