Skip to content

Commit

Permalink
fix basic structure of dec template to match new styling
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpiano committed Oct 29, 2011
1 parent 7f6a3ff commit f12bf0a
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions layouts/dex.html
@@ -1,28 +1,30 @@
<%= render 'header' %>

<!-- body -->
<div id="body" class="clearfix">

<% if @item[:title] %>
<h2 class="title"><%= @item[:title] %></h2>
<% end %>

<div class="col2-1">
<%= yield %>
<% myFolder = @item[:filename].split('/')[1] %>
<% folderItems = @items.group_by {|item| item[:filename].split('/')[1] } %>
<ul>
<% folderItems[ myFolder ].sort_by {|item| item[:title] || "" }. each do |item| %>
<% if item[:title] %>
<li><a href="<%= item.path %>"><%= item[:title] %></a></li>
<% end %>
<div id="body" class="clearfix sidebar-right">

<div class="inner">

<% if @item[:title] %>
<h2 class="title"><%= @item[:title] %></h2>
<% end %>
</ul>
</div>

<%= render 'sidebar' %>
<%= yield %>

</div>
<% myFolder = @item[:filename].split('/')[1] %>
<% folderItems = @items.group_by {|item| item[:filename].split('/')[1] } %>
<ul>
<% folderItems[ myFolder ].sort_by {|item| item[:title] || "" }. each do |item| %>
<% if item[:title] %>
<li><a href="<%= item.path %>"><%= item[:title] %></a></li>
<% end %>
<% end %>
</ul>
</div>

<%= render 'sidebar' %>

</div>
<!-- /body -->

<%= render 'footer' %>

0 comments on commit f12bf0a

Please sign in to comment.