Refactor abilities. Added ProjectUpdate context. Fixed few bugs with namespaces
This commit is contained in:
parent
a1ffc673b9
commit
eb1004f789
18 changed files with 127 additions and 53 deletions
|
@ -22,7 +22,7 @@
|
|||
- unless project.new_record?
|
||||
.clearfix
|
||||
= f.label :namespace_id
|
||||
.input= f.select :namespace_id, namespaces_options, {}, {class: 'chosen'}
|
||||
.input= f.select :namespace_id, namespaces_options(@project.namespace_id), {}, {class: 'chosen'}
|
||||
|
||||
.clearfix
|
||||
= f.label :owner_id
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%h1 403
|
||||
%h1.http_status_code 403
|
||||
%h3.page_title Access Denied
|
||||
%hr
|
||||
%p You are not allowed to access this page.
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
- if @events.any?
|
||||
.content_list= render @events
|
||||
- else
|
||||
%h4.nothing_here_message Projects activity will be displayed here
|
||||
%p.nothing_here_message Projects activity will be displayed here
|
||||
.loading.hide
|
||||
.side
|
||||
= render "projects", projects: @projects
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue