Project

General

Profile

RE: home page automatic redirect to the wiki page of a pr... » original_index.rhtml

Marko Stanojevic, 2009-10-14 11:28

 
1
<div class="contextual">
2
    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.admin? %>
3
    <%= link_to l(:label_issue_view_all), { :controller => 'issues' } %> |
4
    <%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>
5
</div>
6

    
7
<h2><%=l(:label_project_plural)%></h2>
8

    
9
<% @project_tree.keys.sort.each do |project| %>
10
<h1><%= link_to h(project.name), {:action => 'show', :id => project}, :class => (User.current.member_of?(project) ? "icon icon-fav" : "") %></h1>
11
<%= textilizable(project.short_description, :project => project) %>
12

    
13
<% if @project_tree[project].any? %>
14
    <p><%= l(:label_subproject_plural) %>:
15
    <%= @project_tree[project].sort.collect {|subproject| 
16
       link_to(h(subproject.name), {:action => 'show', :id => subproject}, :class => (User.current.member_of?(subproject) ? "icon icon-fav" : ""))}.join(', ') %></p>
17
<% end %>
18
<% end %>
19

    
20
<% if User.current.logged? %>
21
<p style="text-align:right;">
22
<span class="icon icon-fav"><%= l(:label_my_projects) %></span>
23
</p>
24
<% end %>
25

    
26
<p class="other-formats">
27
<%= l(:label_export_to) %>
28
<span><%= link_to 'Atom', {:format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span>
29
</p>
30

    
31
<% html_title(l(:label_project_plural)) -%>
(2-2/2)