Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added root url route generator for pages
* Overrode page_path to use root page urls * Added page callbacks for route reloading
- Loading branch information
1 parent
1ce24a3
commit b0a8dbb
Showing
10 changed files
with
63 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<% | ||
subpages ||= page.pages.published.display_in_menu.in_order | ||
%> | ||
<%= content_tag :div, :class => "section", :id => "page-menu" do %> | ||
<h2 class="title"> | ||
<%= link_to_page page %> | ||
</h2> | ||
<div class="menu"> | ||
<%= content_for :side do %> | ||
<%= content_tag :div, :class => "menu", :id => "page-menu" do %> | ||
<h2 class="title"> | ||
<%= link_to_page page %> | ||
</h2> | ||
<%= content_tag :ul, :class => :menu do %> | ||
<% for subpage in subpages %> | ||
<%= content_tag(:li, link_to_page(subpage)) %> | ||
<%#= descend_page(subpage) %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<% end unless subpages.empty? %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters