Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inherit parent page layout & view templates #1581

Merged
merged 3 commits into from
Apr 10, 2012
Merged

Inherit parent page layout & view templates #1581

merged 3 commits into from
Apr 10, 2012

Conversation

xyz
Copy link
Contributor

@xyz xyz commented Apr 10, 2012

Page layout_template & view_template should be inherited from parent (if any).

@ugisozols
Copy link
Member

It would be really nice if you could add some request specs for this.

@@ -36,7 +40,11 @@
<%= f.label :view_template, t('.view_template') %>
<%= refinery_help_tag t('.view_template_help') %>
</span>
<%= f.select(:view_template, @valid_view_templates.map{|t| [t.titleize, t]}) %>
<% if @page.parent_id? %>
<%= f.select(:view_template, @valid_view_templates.map{|t| [t.titleize, t]}, {:selected => @page.parent.view_template } %>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a missing ) at the end.

@xyz
Copy link
Contributor Author

xyz commented Apr 10, 2012

Sorry, specs are beyond my reach at the moment.

ugisozols added a commit that referenced this pull request Apr 10, 2012
Inherit parent page layout & view templates
@ugisozols ugisozols merged commit d5703c0 into refinery:master Apr 10, 2012
ugisozols added a commit that referenced this pull request Apr 10, 2012
ugisozols added a commit that referenced this pull request Apr 10, 2012
@ugisozols ugisozols mentioned this pull request Apr 10, 2012
@ugisozols
Copy link
Member

Thanks @xyz for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants