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 / .svn / pristine / 73 / 739ef0925b98594bbd1e537e9b5096bdd12d62a3.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (4.17 KB)

1 1296:038ba2d95de8 Chris
<div class="contextual">
2
  <% if User.current.allowed_to?(:add_subprojects, @project) %>
3
    <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
4
  <% end %>
5
  <% if User.current.allowed_to?(:close_project, @project) %>
6
    <% if @project.active? %>
7
      <%= link_to l(:button_close), close_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-lock' %>
8
    <% else %>
9
      <%= link_to l(:button_reopen), reopen_project_path(@project), :data => {:confirm => l(:text_are_you_sure)}, :method => :post, :class => 'icon icon-unlock' %>
10
    <% end %>
11
  <% end %>
12
</div>
13
14
<h2><%=l(:label_overview)%></h2>
15
16
<% unless @project.active? %>
17
  <p class="warning"><span class="icon icon-lock"><%= l(:text_project_closed) %></span></p>
18
<% end %>
19
20
<div class="splitcontentleft">
21
  <% if @project.description.present? %>
22
  <div class="wiki">
23
    <%= textilizable @project.description %>
24
  </div>
25
  <% end %>
26
  <ul>
27
  <% unless @project.homepage.blank? %>
28
    <li><%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %></li>
29
  <% end %>
30
  <% if @subprojects.any? %>
31
    <li><%=l(:label_subproject_plural)%>:
32
      <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li>
33
  <% end %>
34
  <% @project.visible_custom_field_values.each do |custom_value| %>
35
  <% if !custom_value.value.blank? %>
36
     <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
37
  <% end %>
38
  <% end %>
39
  </ul>
40
41
  <% if User.current.allowed_to?(:view_issues, @project) %>
42
  <div class="issues box">
43
    <h3><%=l(:label_issue_tracking)%></h3>
44
    <ul>
45
    <% for tracker in @trackers %>
46
      <li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project,
47
                                                :set_filter => 1,
48
                                                "tracker_id" => tracker.id %>:
49
          <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
50
                                                    :total => @total_issues_by_tracker[tracker].to_i) %>
51
      </li>
52
    <% end %>
53
    </ul>
54
    <p>
55
      <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
56
      <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
57
        | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
58
      <% end %>
59
      <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
60
        | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
61
      <% end %>
62
    </p>
63
  </div>
64
  <% end %>
65
  <%= call_hook(:view_projects_show_left, :project => @project) %>
66
</div>
67
68
<div class="splitcontentright">
69
  <%= render :partial => 'members_box' %>
70
71
  <% if @news.any? && authorize_for('news', 'index') %>
72
  <div class="news box">
73
    <h3><%=l(:label_news_latest)%></h3>
74
    <%= render :partial => 'news/news', :collection => @news %>
75
    <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
76
  </div>
77
  <% end %>
78
  <%= call_hook(:view_projects_show_right, :project => @project) %>
79
</div>
80
81
<% content_for :sidebar do %>
82
    <% if @total_hours.present? %>
83
    <h3><%= l(:label_spent_time) %></h3>
84
    <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
85
    <p>
86
    <% if User.current.allowed_to?(:log_time, @project) %>
87
      <%= link_to l(:button_log_time), new_project_time_entry_path(@project) %> |
88
    <% end %>
89
    <%= link_to(l(:label_details), project_time_entries_path(@project)) %> |
90
    <%= link_to(l(:label_report), report_project_time_entries_path(@project)) %></p>
91
    <% end %>
92
    <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
93
<% end %>
94
95
<% content_for :header_tags do %>
96
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
97
<% end %>
98
99
<% html_title(l(:label_overview)) -%>