From b62801bd6445c973fd2e68e89bb0243128f0d802 Mon Sep 17 00:00:00 2001 From: Luke Snyder Date: Sun, 14 Aug 2011 21:49:12 -0400 Subject: [PATCH] Initial styling and links --- app/views/admins/_admin_bar.haml | 7 +++++++ app/views/admins/stats.html.haml | 9 ++++++--- app/views/admins/user_search.html.haml | 5 +++++ public/stylesheets/sass/application.sass | 24 +++++++++++++++++------- 4 files changed, 35 insertions(+), 10 deletions(-) create mode 100644 app/views/admins/_admin_bar.haml diff --git a/app/views/admins/_admin_bar.haml b/app/views/admins/_admin_bar.haml new file mode 100644 index 000000000..4c1765c9c --- /dev/null +++ b/app/views/admins/_admin_bar.haml @@ -0,0 +1,7 @@ +#admin_nav + %h3 + %ul + %li= link_to 'User Search', user_search_path + %li= link_to 'Pod Stats', pod_stats_path + + diff --git a/app/views/admins/stats.html.haml b/app/views/admins/stats.html.haml index d90d9db77..17ae0f654 100644 --- a/app/views/admins/stats.html.haml +++ b/app/views/admins/stats.html.haml @@ -1,7 +1,10 @@ +.span-24 + = render :partial => 'admins/admin_bar.haml' +%br +%br + .span-24.last - %br - %br %h1 Usage Statistics %div{:style => "float:right;"} @@ -68,7 +71,7 @@ /#stats_graph{:style => "text-align:right;position:relative;vertical-align:bottom;background-color:#eee;"} / = @posts_per_day.inspect / /- @posts_per_day.each do |key, val| - / / .asdo{:style => "display:inline-block;width:35px;vertical-align:bottom;background-color:#666;height:#{(val/@most_posts_within)*200}px;"} + / /.asdo{:style => "display:inline-block;width:35px;vertical-align:bottom;background-color:#666;height:#{(val/@most_posts_within)*200}px;"} %br diff --git a/app/views/admins/user_search.html.haml b/app/views/admins/user_search.html.haml index 2dbca64a7..900e78ee7 100644 --- a/app/views/admins/user_search.html.haml +++ b/app/views/admins/user_search.html.haml @@ -1,4 +1,9 @@ +.span-24 + = render :partial => 'admins/admin_bar.haml' +%br +%br + %h3 = form_tag 'admin_inviter', :method => :get do email to invite: diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index cbbcf9df8..fe78f5172 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -3397,10 +3397,20 @@ ul#getting_started .green :color green -// .resend -// :color black -// &:hover -// :text-decoration none -// :color black -// &:hover -// :text-decoration none +.resend + :color black + &:hover + :text-decoration none + :color black + &:hover + :text-decoration none + +#admin_nav + :float left + :font-size 1em + ul + :display inline-block + li + :display inline + :margin + :right 1em