annotate app/views/projects/index.rhtml @ 68:60c0a4e08e09
luisf
Feature #35: The projects page now is separated in "My Projects" and "Other Projects".
author |
luisf |
date |
Mon, 06 Dec 2010 17:50:43 +0000 |
parents |
40f7cfd4df19 |
children |
dc22c3eb3c81 |
rev |
line source |
Chris@0
|
1 <% content_for :header_tags do %>
|
Chris@0
|
2 <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
|
Chris@0
|
3 <% end %>
|
Chris@0
|
4
|
Chris@0
|
5 <div class="contextual">
|
chris@22
|
6 <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
|
Chris@0
|
7 <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
|
Chris@0
|
8 <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
|
chris@22
|
9 <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
|
Chris@0
|
10 </div>
|
Chris@0
|
11
|
luisf@68
|
12 <h2><%=l(:label_my_project_plural)%></h2>
|
luisf@68
|
13 <%= render_my_project_hierarchy(@projects)%>
|
Chris@0
|
14
|
luisf@68
|
15
|
luisf@68
|
16 <h2><%=l(:label_other_project_plural)%></h2>
|
luisf@68
|
17 <%= render_other_project_hierarchy(@projects)%>
|
Chris@0
|
18
|
Chris@0
|
19 <% if User.current.logged? %>
|
Chris@0
|
20 <p style="text-align:right;">
|
Chris@0
|
21 <span class="my-project"><%= l(:label_my_projects) %></span>
|
Chris@0
|
22 </p>
|
Chris@0
|
23 <% end %>
|
Chris@0
|
24
|
luisf@68
|
25
|
luisf@68
|
26
|
luisf@68
|
27
|
luisf@68
|
28
|
luisf@68
|
29
|
luisf@68
|
30
|
luisf@68
|
31
|
Chris@0
|
32 <% other_formats_links do |f| %>
|
Chris@0
|
33 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
|
Chris@0
|
34 <% end %>
|
Chris@0
|
35
|
Chris@0
|
36 <% html_title(l(:label_project_plural)) -%>
|