From 409cb8aa66144cfcdce7a08a6f0891ad336fe0c5 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Sun, 30 Nov 2014 14:21:11 +0100 Subject: [PATCH] added team display to about page --- app/controllers/static_controller.rb | 1 + app/views/static/about.html.haml | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/controllers/static_controller.rb b/app/controllers/static_controller.rb index 47207459..33afc69d 100644 --- a/app/controllers/static_controller.rb +++ b/app/controllers/static_controller.rb @@ -3,5 +3,6 @@ class StaticController < ApplicationController end def about + @admins = User.where(admin: true) end end diff --git a/app/views/static/about.html.haml b/app/views/static/about.html.haml index 2b59a807..d98de9b4 100644 --- a/app/views/static/about.html.haml +++ b/app/views/static/about.html.haml @@ -13,10 +13,13 @@ .col-sm-4 .panel.panel-default .panel-body - %h3 Title 1 - Blah blah blah blah... + %h3 The Team + The people behind justask! %br/ - Someone fill this text here. + %ul + - @admins.each do |user| + %li + %a= link_to user.screen_name, show_user_profile_path(user.screen_name) .col-sm-4 .panel.panel-default .panel-body