mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Indicate if spalshpage is marked as public or not.
This commit is contained in:
parent
7127834263
commit
d3ce401cba
3 changed files with 10 additions and 0 deletions
|
|
@ -174,3 +174,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#publicorprivate {
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,10 @@
|
|||
- if can? :destroy, @splashpage
|
||||
= link_to 'Delete', admin_conference_splashpage_path,
|
||||
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
|
||||
.row
|
||||
.col-md-12.text-right
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@ feature Splashpage do
|
|||
|
||||
expect(flash).to eq('Splashpage successfully created.')
|
||||
expect(current_path).to eq(admin_conference_splashpage_path(conference.short_title))
|
||||
expect(page.has_text?('Private')).to be true
|
||||
end
|
||||
|
||||
context 'splashpage already created' do
|
||||
|
|
@ -34,6 +35,7 @@ feature Splashpage do
|
|||
|
||||
expect(flash).to eq('Splashpage successfully updated.')
|
||||
expect(current_path).to eq(admin_conference_splashpage_path(conference.short_title))
|
||||
expect(page.has_text?('Public')).to be true
|
||||
|
||||
click_link 'Edit'
|
||||
expect(page.has_checked_field?('Make splash page public?')).to be true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue