2007-04-21 18:40:56 +02:00
|
|
|
<h2><%=l(:label_project_plural)%></h2>
|
2006-06-28 20:11:03 +02:00
|
|
|
|
2007-09-14 21:55:51 +02:00
|
|
|
<dl class="projects">
|
|
|
|
<% @project_tree.keys.sort.each do |project| %>
|
|
|
|
<dt><%= link_to project.name, {:action => 'show', :id => project}, :class => (User.current.member_of?(project) ? "icon icon-fav" : "") %>
|
|
|
|
<dd><%= textilizable(project.description, :project => project) %>
|
|
|
|
|
|
|
|
<% if @project_tree[project].any? %>
|
|
|
|
<%= l(:label_subproject_plural) %>:
|
|
|
|
<%= @project_tree[project].sort.collect {|subproject|
|
|
|
|
link_to(subproject.name, {:action => 'show', :id => subproject}, :class => (User.current.member_of?(subproject) ? "icon icon-fav" : ""))}.join(', ') %>
|
|
|
|
<% end %>
|
|
|
|
</dd></dt>
|
2006-06-28 20:11:03 +02:00
|
|
|
<% end %>
|
2007-09-14 21:55:51 +02:00
|
|
|
</dl>
|
2007-03-12 18:59:02 +01:00
|
|
|
|
2007-08-29 18:52:35 +02:00
|
|
|
<% if User.current.logged? %>
|
2007-04-21 18:40:56 +02:00
|
|
|
<div class="contextual">
|
|
|
|
<span class="icon icon-fav"><%= l(:label_my_projects) %></span>
|
|
|
|
</div>
|
|
|
|
<% end %>
|