mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
hide the dropdown if user has no permissions(technician) [fixes SCI-371]
This commit is contained in:
parent
ed1cd193ac
commit
f918746946
1 changed files with 15 additions and 15 deletions
|
@ -2,21 +2,21 @@
|
|||
<div class="panel panel-default experiment-panel"
|
||||
data-id="<%= experiment.id %>">
|
||||
<div class="panel-heading">
|
||||
|
||||
<div class="dropdown pull-right">
|
||||
<button class="btn btn-link dropdown-toggle"
|
||||
type="button"
|
||||
id="exActionsMenu-<%= experiment.id %>"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="true">
|
||||
<span class="visible-xs-inline"><i class="glyphicon glyphicon-sort"></i></span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<%= render partial: 'experiments/dropdown_actions.html.erb',
|
||||
locals: { project: @project, experiment: experiment } %>
|
||||
</div>
|
||||
|
||||
<% if is_user_or_higher_of_project @project %>
|
||||
<div class="dropdown pull-right">
|
||||
<button class="btn btn-link dropdown-toggle"
|
||||
type="button"
|
||||
id="exActionsMenu-<%= experiment.id %>"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="true">
|
||||
<span class="visible-xs-inline"><i class="glyphicon glyphicon-sort"></i></span>
|
||||
<span class="caret"></span>
|
||||
</button>
|
||||
<%= render partial: 'experiments/dropdown_actions.html.erb',
|
||||
locals: { project: @project, experiment: experiment } %>
|
||||
</div>
|
||||
<% end %>
|
||||
<h3 class="panel-title"><%= link_to experiment.name, canvas_experiment_path(experiment) %></h3>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue