mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-08 22:23:41 -04:00
Stop the current garden from being a link on gardens/show.
This commit is contained in:
1 parent
75eb0ab02f
commit
cfb300bbad
1 file changed
+4
-1
@@ -11,7 +11,10 @@
|
||||
%ul
|
||||
- @garden.user.gardens.each do |othergarden|
|
||||
%li
|
||||
= link_to "#{othergarden.name}", garden_path(othergarden)
|
||||
- if @garden == othergarden
|
||||
= @garden.name
|
||||
- else
|
||||
= link_to "#{othergarden.name}", garden_path(othergarden)
|
||||
|
||||
- if current_user == @garden.owner
|
||||
= link_to 'Edit', edit_garden_path(@garden), :class => 'btn'
|
||||
|
||||
Reference in new issue
Block a user