To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / projects / show.rhtml @ 443:350acce374a2

History | View | Annotate | Download (4.18 KB)

1 0:513646585e45 Chris
<div class="contextual">
2
        <% if User.current.allowed_to?(:add_subprojects, @project) %>
3 22:40f7cfd4df19 chris
                <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
4 0:513646585e45 Chris
        <% end %>
5
</div>
6
7 351:ebf53b46f3f3 chris
<% if @project.has_welcome_page %>
8 350:a1e6dc0e204b chris
<% page = @project.wiki.find_page("Overview") %>
9 351:ebf53b46f3f3 chris
<% end %>
10 350:a1e6dc0e204b chris
11
<% if page %>
12
13
<div class="contextual" style="clear: right">
14
<ul>
15
<% @users_by_role.keys.sort.each do |role| %>
16
<li><%=h role %>: <%= @users_by_role[role].sort.collect{|u| link_to_user u}.join(", ") %></li>
17
<% end %>
18
<% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
19
<% if @subprojects.any? %>
20
        <li><%=l(:label_subproject_plural)%>:
21
            <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
22
<% end %>
23
</ul>
24
</div>
25
26
<%= render(:partial => "wiki/content", :locals => {:content => page.content_for_version()}) %>
27
28
<% else %>
29
30 0:513646585e45 Chris
<h2><%=l(:label_overview)%></h2>
31
32
<div class="splitcontentleft">
33
        <div class="wiki">
34
                <%= textilizable @project.description %>
35
        </div>
36
        <ul>
37
        <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
38
  <% if @subprojects.any? %>
39
         <li><%=l(:label_subproject_plural)%>:
40
            <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ") %></li>
41
  <% end %>
42 37:94944d00e43c chris
        <% @project.visible_custom_field_values.each do |custom_value| %>
43 0:513646585e45 Chris
        <% if !custom_value.value.blank? %>
44
           <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li>
45
        <% end %>
46
        <% end %>
47
        </ul>
48
49 345:361602c5e6bb chris
  <% if User.current.allowed_to?(:view_issues, @project) and @open_issues_by_tracker.values.any? %>
50
51 0:513646585e45 Chris
  <div class="issues box">
52
    <h3><%=l(:label_issue_tracking)%></h3>
53
    <ul>
54
    <% for tracker in @trackers %>
55
      <li><%= link_to tracker.name, :controller => 'issues', :action => 'index', :project_id => @project,
56
                                                :set_filter => 1,
57
                                                "tracker_id" => tracker.id %>:
58
                                        <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
59
                                                                                                                                                                                                                :total => @total_issues_by_tracker[tracker].to_i) %>
60
                        </li>
61
    <% end %>
62
    </ul>
63
    <p>
64
            <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
65
            <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
66
                                | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
67
                        <% end %>
68
                        <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
69
                                | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
70
                        <% end %>
71
                </p>
72
  </div>
73 345:361602c5e6bb chris
74 0:513646585e45 Chris
  <% end %>
75 344:1a514b9347d4 chris
76 0:513646585e45 Chris
  <%= call_hook(:view_projects_show_left, :project => @project) %>
77
</div>
78
79
<div class="splitcontentright">
80 14:1d32c0a0efbf Chris
  <%= render :partial => 'members_box' %>
81 0:513646585e45 Chris
82
  <% if @news.any? && authorize_for('news', 'index') %>
83
  <div class="news box">
84
    <h3><%=l(:label_news_latest)%></h3>
85
    <%= render :partial => 'news/news', :collection => @news %>
86
    <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
87
  </div>
88
  <% end %>
89 344:1a514b9347d4 chris
90
  <%= render :partial => 'activities/recent' %>
91
92 0:513646585e45 Chris
  <%= call_hook(:view_projects_show_right, :project => @project) %>
93
</div>
94
95
<% content_for :sidebar do %>
96 441:cbce1fd3b1b7 Chris
    <% if @total_hours.present? %>
97 0:513646585e45 Chris
    <h3><%= l(:label_spent_time) %></h3>
98
    <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
99 37:94944d00e43c chris
    <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
100
    <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => @project}) %></p>
101 0:513646585e45 Chris
    <% end %>
102
    <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
103
<% end %>
104
105 350:a1e6dc0e204b chris
<% end %>
106
107 0:513646585e45 Chris
<% content_for :header_tags do %>
108 22:40f7cfd4df19 chris
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
109 0:513646585e45 Chris
<% end %>
110
111
<% html_title(l(:label_overview)) -%>