mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
added extra condition for view Create Conference link
This commit is contained in:
parent
37339dccc1
commit
f3996a9bff
1 changed files with 5 additions and 4 deletions
|
|
@ -24,11 +24,12 @@
|
|||
- if can? :access, Admin
|
||||
%li.divider
|
||||
%li
|
||||
= link_to(admin_conference_index_path()) do
|
||||
- if Conference.any?
|
||||
- if Conference.any?
|
||||
= link_to(admin_conference_index_path()) do
|
||||
%span.fa.fa-home
|
||||
Administration
|
||||
- else
|
||||
Administration
|
||||
- if can? :create, Conference
|
||||
=link_to(new_admin_conference_path) do
|
||||
%span.fa.fa-plus
|
||||
Create Conference
|
||||
-if @conference and @conference.id and can? :show, @conference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue