Add public or private status to other splashpage options.
This commit is contained in:
parent
1333641a5f
commit
6987c34e12
1 changed files with 7 additions and 5 deletions
|
|
@ -41,7 +41,13 @@
|
||||||
%li
|
%li
|
||||||
%i{ class: "fa-li #{icon_for_todo @splashpage.include_social_media?}" }
|
%i{ class: "fa-li #{icon_for_todo @splashpage.include_social_media?}" }
|
||||||
Display social media links
|
Display social media links
|
||||||
|
%li
|
||||||
|
- if @conference.splashpage && @conference.splashpage.public
|
||||||
|
%i{ class: "fa-li #{icon_for_todo @splashpage.public?}" }
|
||||||
|
%text-muted.publicorprivate Public
|
||||||
|
- else
|
||||||
|
%i{ class: "fa-li #{icon_for_todo !@splashpage.public?}" }
|
||||||
|
%text-muted.publicorprivate Private
|
||||||
.row
|
.row
|
||||||
.col-md-12
|
.col-md-12
|
||||||
- if can? :update, @splashpage
|
- if can? :update, @splashpage
|
||||||
|
|
@ -49,10 +55,6 @@
|
||||||
- if can? :destroy, @splashpage
|
- if can? :destroy, @splashpage
|
||||||
= link_to 'Delete', admin_conference_splashpage_path,
|
= link_to 'Delete', admin_conference_splashpage_path,
|
||||||
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger'
|
||||||
- if @conference.splashpage && @conference.splashpage.public
|
|
||||||
%p.text-muted.publicorprivate Public
|
|
||||||
- else
|
|
||||||
%p.text-muted.publicorprivate Private
|
|
||||||
- else
|
- else
|
||||||
.row
|
.row
|
||||||
.col-md-12.text-right
|
.col-md-12.text-right
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue