From 0c314215718dd419afcbebdfd3687f70ca4f3803 Mon Sep 17 00:00:00 2001 From: Jared Pace Date: Fri, 13 Aug 2010 09:58:24 -0400 Subject: [PATCH] Update button styles --- app/views/apps/show.html.haml | 5 ++--- app/views/users/index.html.haml | 2 ++ app/views/users/show.html.haml | 3 +++ public/stylesheets/application.css | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/views/apps/show.html.haml b/app/views/apps/show.html.haml index c7cbe13..d30fd68 100644 --- a/app/views/apps/show.html.haml +++ b/app/views/apps/show.html.haml @@ -6,9 +6,8 @@ = @app.api_key - content_for :action_bar do - if current_user.admin? - = link_to 'edit', edit_app_path(@app) - | - = link_to 'destroy', app_path(@app), :method => :delete, :confirm => 'Seriously?' + = link_to 'edit', edit_app_path(@app), :class => 'button' + = link_to 'destroy', app_path(@app), :method => :delete, :confirm => 'Seriously?', :class => 'button' - if @app.errs.none? %h3 Setup your app diff --git a/app/views/users/index.html.haml b/app/views/users/index.html.haml index 9124180..f105afc 100644 --- a/app/views/users/index.html.haml +++ b/app/views/users/index.html.haml @@ -1,4 +1,6 @@ - content_for :title, 'Users' +- content_for :action_bar do + %span= link_to('Add a New User', new_user_path, :class => 'add') %table %thead diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 1ef3754..4be9b47 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -1,4 +1,7 @@ - content_for :title, @user.name +- content_for :action_bar do + = link_to 'edit', edit_user_path(@user), :class => 'button' + = link_to 'destroy', user_path(@user), :method => :delete, :confirm => 'Seriously?', :class => 'button' %table %tr diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 61fae97..8792c0f 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -362,6 +362,7 @@ pre { a.button { display: inline-block; padding: 0 0.8em; + margin-left: 0.5em; color: #666; background-color: #EBEBEB; border: 1px solid #BBB; -- libgit2 0.21.2