<% page = fetch(context) %>
<div class="sidebar">
<p><%= rw_link('index', :heading)%></p>
<p class="recentitem">Download</p>
<div class="recentsutitles">
<%= @proxy.fetch('download').body %>
</div>
<%
   prop = page.section_prop 
   if prop && prop[:heading]
%>
<p class="recentitem">Recent</p>
<div class="recentsutitles">
<ul>
<% 
   recent_changes(20).each do |pg| 
     prop = pg.section_prop
     next unless prop
     next if pg.name == 'top'
     summary = prop[:summary]
     next unless summary
%>
<li><%= rw_link(pg.name, prop[:first_heading]) %> <%=h prop[:summary]%></li>
<% end %>
</ul>
</div>
<% end %>
</div>
<div class="main">
 <%= babel_link(page.name) %>
 <div class="body"><%= page.body %></div>
</div>
<% if page.modified %><div class="footer"><%= page.modified.strftime("%Y-%m-%d") %></div><% end %>

