##// END OF EJS Templates
Rails3: view: html_safe for auto_link of project homepage...
Toshi MARUYAMA -
r8836:34d14500c957
parent child
Show More
@@ -1,80 +1,82
1 1 <div class="contextual">
2 2 <% if User.current.allowed_to?(:add_subprojects, @project) %>
3 3 <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
4 4 <% end %>
5 5 </div>
6 6
7 7 <h2><%=l(:label_overview)%></h2>
8 8
9 9 <div class="splitcontentleft">
10 10 <div class="wiki">
11 11 <%= textilizable @project.description %>
12 12 </div>
13 13 <ul>
14 <% unless @project.homepage.blank? %><li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)) %></li><% end %>
14 <% unless @project.homepage.blank? %>
15 <li><%=l(:field_homepage)%>: <%= auto_link(h(@project.homepage)).html_safe %></li>
16 <% end %>
15 17 <% if @subprojects.any? %>
16 <li><%=l(:label_subproject_plural)%>:
18 <li><%=l(:label_subproject_plural)%>:
17 19 <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %></li>
18 20 <% end %>
19 21 <% @project.visible_custom_field_values.each do |custom_value| %>
20 22 <% if !custom_value.value.blank? %>
21 23 <li><%=h custom_value.custom_field.name %>: <%=h show_value(custom_value) %></li>
22 24 <% end %>
23 25 <% end %>
24 26 </ul>
25 27
26 28 <% if User.current.allowed_to?(:view_issues, @project) %>
27 29 <div class="issues box">
28 30 <h3><%=l(:label_issue_tracking)%></h3>
29 31 <ul>
30 32 <% for tracker in @trackers %>
31 33 <li><%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project,
32 34 :set_filter => 1,
33 35 "tracker_id" => tracker.id %>:
34 36 <%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
35 37 :total => @total_issues_by_tracker[tracker].to_i) %>
36 38 </li>
37 39 <% end %>
38 40 </ul>
39 41 <p>
40 42 <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
41 43 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
42 44 | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
43 45 <% end %>
44 46 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
45 47 | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
46 48 <% end %>
47 49 </p>
48 50 </div>
49 51 <% end %>
50 52 <%= call_hook(:view_projects_show_left, :project => @project) %>
51 53 </div>
52 54
53 55 <div class="splitcontentright">
54 56 <%= render :partial => 'members_box' %>
55 57
56 58 <% if @news.any? && authorize_for('news', 'index') %>
57 59 <div class="news box">
58 60 <h3><%=l(:label_news_latest)%></h3>
59 61 <%= render :partial => 'news/news', :collection => @news %>
60 62 <p><%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %></p>
61 63 </div>
62 64 <% end %>
63 65 <%= call_hook(:view_projects_show_right, :project => @project) %>
64 66 </div>
65 67
66 68 <% content_for :sidebar do %>
67 69 <% if @total_hours.present? %>
68 70 <h3><%= l(:label_spent_time) %></h3>
69 71 <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
70 72 <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
71 73 <%= link_to(l(:label_report), {:controller => 'timelog', :action => 'report', :project_id => @project}) %></p>
72 74 <% end %>
73 75 <%= call_hook(:view_projects_show_sidebar_bottom, :project => @project) %>
74 76 <% end %>
75 77
76 78 <% content_for :header_tags do %>
77 79 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %>
78 80 <% end %>
79 81
80 82 <% html_title(l(:label_overview)) -%>
General Comments 0
You need to be logged in to leave comments. Login now