annotate .svn/pristine/92/92b4f5732f182d4998155cf0aa9e5c1d67828523.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

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