Skip to content

Commit

Permalink
Use content_for :body and content_for :side_body in extension generat…
Browse files Browse the repository at this point in the history
…ors.
  • Loading branch information
ugisozols committed May 18, 2012
1 parent 2655a49 commit e775063
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%% content_for :body_content_left do %>
<%% content_for :body do %>
<ul id="<%= plural_name %>">
<%% @<%= "all_" if plural_name == singular_name%><%= plural_name %>.each do |<%= singular_name %>| %>
<li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<%%= @<%= singular_name %><% if (title = attributes.detect { |a| a.type.to_s == "string" }).present? %>.<%= title.name %><% else %>.title<% end %> %>
<%% end %>

<%% content_for :body_content_left do %>
<%% content_for :body do %>
<% attributes.each do |attribute| -%>
<section>
<h1><%= attribute.name.titleize %></h1>
Expand All @@ -23,7 +23,7 @@
<% end -%>
<%% end %>

<%% content_for :body_content_right do %>
<%% content_for :side_body do %>
<aside>
<h2><%%= t('.other') %></h2>
<ul id="<%= plural_name %>">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%% content_for :body_content_left do %>
<%% content_for :body do %>
<div class='<%= plural_name %>'>
<%%=raw @page.content_for(Refinery::Pages.default_parts.first.to_sym) %>

Expand Down

0 comments on commit e775063

Please sign in to comment.