make sure all buttons are either btn-default or btn-primary

This commit is contained in:
Skud
2014-07-22 12:09:08 +10:00
parent 117fd23bea
commit 4e9679b22a
5 changed files with 9 additions and 9 deletions

View File

@@ -6,11 +6,11 @@
%p
- if @owner == current_member
= link_to 'Add a garden', new_garden_path, :class => 'btn btn-primary'
= link_to "View everyone's gardens", gardens_path, :class => 'btn'
= link_to "View everyone's gardens", gardens_path, :class => 'btn btn-default'
- else # everyone's gardens
= link_to 'Add a garden', new_garden_path, :class => 'btn btn-primary'
- if current_member
= link_to 'View your gardens', gardens_by_owner_path(:owner => current_member.slug), :class => 'btn'
= link_to 'View your gardens', gardens_by_owner_path(:owner => current_member.slug), :class => 'btn btn-default'
- else
= render :partial => 'shared/signin_signup', :locals => { :to => 'add a new garden' }

View File

@@ -15,5 +15,5 @@
#{ strip_tags(@notification.body) }
%p
=link_to 'Delete', @notification, method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn'
=link_to 'Delete', @notification, method: :delete, data: { confirm: 'Are you sure?' }, :class => 'btn btn-default'
=link_to 'Reply', @reply_link, :class => 'btn btn-primary'

View File

@@ -75,7 +75,7 @@
= submit_tag "Checkout with PayPal", :class => 'btn btn-primary'
- if can? :destroy, @order
= link_to 'Delete this order', @order, method: :delete, |
data: { confirm: 'Are you sure?' }, :class => 'btn'
= link_to "View other orders/order history", orders_path, :class => 'btn'
data: { confirm: 'Are you sure?' }, :class => 'btn btn-default'
= link_to "View other orders/order history", orders_path, :class => 'btn btn-default'
%p

View File

@@ -6,11 +6,11 @@
%p
- if @owner == current_member
= link_to 'Plant something', new_planting_path, :class => 'btn btn-primary'
= link_to "View everyone's plantings", plantings_path, :class => 'btn'
= link_to "View everyone's plantings", plantings_path, :class => 'btn btn-default'
- else # everyone's plantings
= link_to 'Plant something', new_planting_path, :class => 'btn btn-primary'
- if current_member
= link_to 'View your plantings', plantings_by_owner_path(:owner => current_member.slug), :class => 'btn'
= link_to 'View your plantings', plantings_by_owner_path(:owner => current_member.slug), :class => 'btn btn-default'
- else
= render :partial => 'shared/signin_signup', :locals => { :to => "track what you've planted" }

View File

@@ -6,11 +6,11 @@
%p
- if @author == current_member
= link_to 'Post something', new_post_path, :class => 'btn btn-primary'
= link_to "View everyone's posts", posts_path, :class => 'btn'
= link_to "View everyone's posts", posts_path, :class => 'btn btn-default'
- else # everyone's posts
= link_to 'Post something', new_post_path, :class => 'btn btn-primary'
- if current_member
= link_to 'View your posts', posts_by_author_path(:author => current_member.slug), :class => 'btn'
= link_to 'View your posts', posts_by_author_path(:author => current_member.slug), :class => 'btn btn-default'
- else
= render :partial => 'shared/signin_signup', :locals => { :to => 'write a post' }