Merge 7abfbc7587 into 25a1c116fd
This commit is contained in:
commit
b27a2b9a58
3 changed files with 23 additions and 16 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
= content_for :brand do
|
= content_for :brand do
|
||||||
= link_to @conference.title, conference_url(@conference.short_title), class: 'navbar-brand'
|
= link_to @conference.title, conference_url(@conference.short_title), class: 'navbar-brand'
|
||||||
|
= content_for :splash do
|
||||||
%div#program
|
%div#program
|
||||||
= render 'program'
|
= render 'program'
|
||||||
%div#registration
|
%div#registration
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,12 @@
|
||||||
-# Admin area
|
-# Admin area
|
||||||
- if controller.class.name.split("::").first=="Admin"
|
- if controller.class.name.split("::").first=="Admin"
|
||||||
= render 'layouts/admin'
|
= render 'layouts/admin'
|
||||||
|
-else
|
||||||
|
- if content_for :splash
|
||||||
|
%div#splash
|
||||||
|
#messages
|
||||||
|
= render 'layouts/messages'
|
||||||
|
= yield :splash
|
||||||
-else
|
-else
|
||||||
.container#messages
|
.container#messages
|
||||||
.row
|
.row
|
||||||
|
|
|
||||||
|
|
@ -11,16 +11,16 @@ describe 'conference/show.html.haml' do
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders program partial' do
|
it 'renders program partial' do
|
||||||
expect(render).to include("#{@conference.description}")
|
expect(view.content_for(:splash)).to include("#{@conference.description}")
|
||||||
expect(view).to render_template(partial: 'conference/_program')
|
expect(view.content_for(:splash)).to render_template(partial: 'conference/_program')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders registration partial' do
|
it 'renders registration partial' do
|
||||||
expect(rendered).to include("#{@conference.registration_description}")
|
expect(view.content_for(:splash)).to include("#{@conference.registration_description}")
|
||||||
expect(view).to render_template(partial: 'conference/_registration')
|
expect(view.content_for(:splash)).to render_template(partial: 'conference/_registration')
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders call_for_papers partial' do
|
it 'renders call_for_papers partial' do
|
||||||
expect(render).to include("#{@conference.call_for_papers.description}")
|
expect(view.content_for(:splash)).to include("#{@conference.call_for_papers.description}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue