mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 13:46:11 +10:00
write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
9 lines
400 B
Plaintext
9 lines
400 B
Plaintext
%span.pull-right
|
|
- if (@page && @page.persisted?)
|
|
= link_to history_namespace_project_wiki_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
|
|
Page History
|
|
- if can?(current_user, :create_wiki, @project)
|
|
= link_to edit_namespace_project_wiki_path(@project.namespace, @project, @page), class: "btn btn-grouped" do
|
|
%i.fa.fa-pencil-square-o
|
|
Edit
|