Merge 7abfbc7587 into 25a1c116fd
This commit is contained in:
commit
b27a2b9a58
3 changed files with 23 additions and 16 deletions
|
|
@ -1,9 +1,10 @@
|
||||||
= 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'
|
||||||
%div#program
|
= content_for :splash do
|
||||||
= render 'program'
|
%div#program
|
||||||
%div#registration
|
= render 'program'
|
||||||
= render 'registration'
|
%div#registration
|
||||||
%div#callforpapers
|
= render 'registration'
|
||||||
= render 'call_for_papers'
|
%div#callforpapers
|
||||||
|
= render 'call_for_papers'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,12 +21,18 @@
|
||||||
- if controller.class.name.split("::").first=="Admin"
|
- if controller.class.name.split("::").first=="Admin"
|
||||||
= render 'layouts/admin'
|
= render 'layouts/admin'
|
||||||
-else
|
-else
|
||||||
.container#messages
|
- if content_for :splash
|
||||||
.row
|
%div#splash
|
||||||
.col-md-12
|
#messages
|
||||||
= render 'layouts/messages'
|
= render 'layouts/messages'
|
||||||
.container#content
|
= yield :splash
|
||||||
= yield
|
-else
|
||||||
|
.container#messages
|
||||||
|
.row
|
||||||
|
.col-md-12
|
||||||
|
= render 'layouts/messages'
|
||||||
|
.container#content
|
||||||
|
= yield
|
||||||
|
|
||||||
#footer
|
#footer
|
||||||
.container
|
.container
|
||||||
|
|
|
||||||
|
|
@ -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