Project overview page
This commit is contained in:
parent
01b8494f18
commit
0e6b0d7e43
8 changed files with 80 additions and 1 deletions
|
|
@ -24,7 +24,7 @@
|
|||
<li><a class="active" href="/about/">Wir über uns</a>
|
||||
<li><a href="#">Veranstaltungen</a>
|
||||
<li><a href="#">Aktivitäten</a>
|
||||
<li><a href="#">Projekte</a>
|
||||
<li><a href="/projects/">Projekte</a>
|
||||
<li><a href="/members/">Members</a>
|
||||
<li><a href="/planet-cccs/">Planet CCCS</a>
|
||||
<li><a href="#">Archiv</a>
|
||||
|
|
|
|||
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>
|
||||
|
||||
3
layouts/project_list.erb
Normal file
3
layouts/project_list.erb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<% @projects.each do |prj| %>
|
||||
<%= render 'project_intro', :project => prj, :classes => "hyphenate", :extended => @extended %>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue