From fa492346698c3695affd010873e81b670991ad37 Mon Sep 17 00:00:00 2001 From: Thomas Countz Date: Wed, 15 Mar 2017 06:06:32 -0400 Subject: [PATCH] remove "add new garden" on other member's page (#1283) * update garden#show view logic * added name to contributors Closes #1167 --- CONTRIBUTORS.md | 3 ++- app/views/gardens/show.html.haml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 5201f40df..636c47a39 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -76,7 +76,8 @@ submit the change with your pull request. - Brenda Wallace / [br3nda](https://github.com/br3nda) - Jim Stallings / [jestallin](https://github.com/jestallin) - Alyssa Ransbury / [alran](https://github.com/alran) +- Thomas Countz / [thomascountz](https://github.com/thomascountz) ## Bots -- Security and Dependency Updates / [deppbot](https://github.com/deppbot) +- Security and Dependency Updates / [deppbot](https://github.com/deppbot) \ No newline at end of file diff --git a/app/views/gardens/show.html.haml b/app/views/gardens/show.html.haml index 8143955d5..8b6c3a5d3 100644 --- a/app/views/gardens/show.html.haml +++ b/app/views/gardens/show.html.haml @@ -111,5 +111,5 @@ - else = link_to othergarden, garden_path(othergarden) - - if can? :create, @garden + - if @garden.owner == current_member = link_to 'Add New Garden', new_garden_path, class: 'btn btn-default btn-xs'