Project overview page

This commit is contained in:
Stefan Schlott 2013-08-23 19:45:19 +02:00
parent 01b8494f18
commit 0e6b0d7e43
8 changed files with 80 additions and 1 deletions

21
layouts/project_intro.erb Normal file
View file

@ -0,0 +1,21 @@
-----
filter: erb
-----
<%
prjname = @project.identifier.split('/')[2]
%>
<article id="p_<%= prjname %>">
<header>
<h1><a href="/projects/<%= prjname %>"><%= @project[:title]%></a></h1>
<% if @project.attributes.has_key?(:subtitle) then %>
<h2><%= @project[:subtitle] %></h2>
<% end %>
<div class="clearfix"></div>
</header>
<section class="<%= @classes %>">
<% if @extended then %>
<%= article_summary(@project) %>
<% end %>
</section>
</article>