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