mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-08 15:54:43 -04:00
make sure all buttons are either btn-default or btn-primary
This commit is contained in:
@@ -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' }
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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" }
|
||||
|
||||
|
||||
@@ -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' }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user