Project overview page
This commit is contained in:
parent
01b8494f18
commit
0e6b0d7e43
8 changed files with 80 additions and 1 deletions
21
layouts/project_intro.erb
Normal file
21
layouts/project_intro.erb
Normal 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>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue