From d5b538461e028e181977d00e5e8f35901b76614d Mon Sep 17 00:00:00 2001 From: Andreas N Date: Thu, 1 Jan 2015 19:10:31 +0100 Subject: [PATCH] added moderator display to about page --- app/assets/stylesheets/base.css.scss | 4 ++++ app/views/static/about.html.haml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/app/assets/stylesheets/base.css.scss b/app/assets/stylesheets/base.css.scss index 8bb46eb2..1d7a9b9c 100644 --- a/app/assets/stylesheets/base.css.scss +++ b/app/assets/stylesheets/base.css.scss @@ -57,4 +57,8 @@ body { .j2-lh { color: #fff; +} + +.about--moderator li { + list-style: none; } \ No newline at end of file diff --git a/app/views/static/about.html.haml b/app/views/static/about.html.haml index 8da0a1a2..8e6652ba 100644 --- a/app/views/static/about.html.haml +++ b/app/views/static/about.html.haml @@ -32,6 +32,13 @@ .media-body %h4.entry-text.entry-about pixeldesu %h6.entry-subtext Frontend Design & Layout + %h3 Moderators + %ul.about--moderator + - User.where(moderator: true).each do |mod| + %li + %a{href: show_user_profile_path(mod.screen_name)} + %img.answerbox--img-small{src: User.find_by_screen_name(mod.screen_name).profile_picture.url(:medium)} + = mod.screen_name .panel.panel-default .panel-body There are lies, damned lies, and then there are...