mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-24 09:43:24 -04:00
Fixed display of edit glyphicon based on edit priviledge.
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
.panel-heading
|
||||
%h3.panel-title
|
||||
= link_to "#{garden.owner.login_name}'s garden", garden.owner
|
||||
%a.pull-right{:href => edit_garden_path(garden), :role => "button"}
|
||||
%span.glyphicon.glyphicon-pencil{:title => "Edit"}
|
||||
- if can? :edit, garden
|
||||
%a.pull-right{:href => edit_garden_path(garden), :role => "button"}
|
||||
%span.glyphicon.glyphicon-pencil{:title => "Edit"}
|
||||
.panel-body{:id => "gardens_panel_body"}
|
||||
.row
|
||||
.col-md-4
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
.panel-heading
|
||||
%h3.panel-title
|
||||
= link_to "#{harvest.owner.login_name}'s harvest", harvest.owner
|
||||
%a.pull-right{:href => edit_harvest_path(harvest), :role => "button"}
|
||||
%span.glyphicon.glyphicon-pencil{:title => "Edit"}
|
||||
- if can? :edit, harvest
|
||||
%a.pull-right{:href => edit_harvest_path(harvest), :role => "button"}
|
||||
%span.glyphicon.glyphicon-pencil{:title => "Edit"}
|
||||
.panel-body
|
||||
.row
|
||||
.col-md-4
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
.panel-heading
|
||||
%h3.panel-title
|
||||
= link_to "#{seed.owner.login_name}'s seed", seed.owner
|
||||
%a.pull-right{:href => edit_seed_path(seed), :role => "button"}
|
||||
%span.glyphicon.glyphicon-pencil{:title => "Edit"}
|
||||
- if can? :edit, seed
|
||||
%a.pull-right{:href => edit_seed_path(seed), :role => "button"}
|
||||
%span.glyphicon.glyphicon-pencil{:title => "Edit"}
|
||||
.panel-body
|
||||
.row
|
||||
.col-md-4
|
||||
|
||||
Reference in New Issue
Block a user