Commit 0c314215718dd419afcbebdfd3687f70ca4f3803
1 parent
508db3da
Exists in
master
and in
1 other branch
Update button styles
Showing
4 changed files
with
8 additions
and
3 deletions
Show diff stats
app/views/apps/show.html.haml
| @@ -6,9 +6,8 @@ | @@ -6,9 +6,8 @@ | ||
| 6 | = @app.api_key | 6 | = @app.api_key |
| 7 | - content_for :action_bar do | 7 | - content_for :action_bar do |
| 8 | - if current_user.admin? | 8 | - if current_user.admin? |
| 9 | - = link_to 'edit', edit_app_path(@app) | ||
| 10 | - | | ||
| 11 | - = link_to 'destroy', app_path(@app), :method => :delete, :confirm => 'Seriously?' | 9 | + = link_to 'edit', edit_app_path(@app), :class => 'button' |
| 10 | + = link_to 'destroy', app_path(@app), :method => :delete, :confirm => 'Seriously?', :class => 'button' | ||
| 12 | 11 | ||
| 13 | - if @app.errs.none? | 12 | - if @app.errs.none? |
| 14 | %h3 Setup your app | 13 | %h3 Setup your app |
app/views/users/index.html.haml
app/views/users/show.html.haml
| 1 | - content_for :title, @user.name | 1 | - content_for :title, @user.name |
| 2 | +- content_for :action_bar do | ||
| 3 | + = link_to 'edit', edit_user_path(@user), :class => 'button' | ||
| 4 | + = link_to 'destroy', user_path(@user), :method => :delete, :confirm => 'Seriously?', :class => 'button' | ||
| 2 | 5 | ||
| 3 | %table | 6 | %table |
| 4 | %tr | 7 | %tr |
public/stylesheets/application.css
| @@ -362,6 +362,7 @@ pre { | @@ -362,6 +362,7 @@ pre { | ||
| 362 | a.button { | 362 | a.button { |
| 363 | display: inline-block; | 363 | display: inline-block; |
| 364 | padding: 0 0.8em; | 364 | padding: 0 0.8em; |
| 365 | + margin-left: 0.5em; | ||
| 365 | color: #666; | 366 | color: #666; |
| 366 | background-color: #EBEBEB; | 367 | background-color: #EBEBEB; |
| 367 | border: 1px solid #BBB; | 368 | border: 1px solid #BBB; |