annotate .svn/pristine/8a/8a05b804750ee53856f1e8f5e5e7e5ae89d25941.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 dffacf8a6908
children
rev   line source
Chris@1517 1 <%= render :partial => 'action_menu' %>
Chris@1517 2
Chris@1517 3 <h2><%= issue_heading(@issue) %></h2>
Chris@1517 4
Chris@1517 5 <div class="<%= @issue.css_classes %> details">
Chris@1517 6 <% if @prev_issue_id || @next_issue_id %>
Chris@1517 7 <div class="next-prev-links contextual">
Chris@1517 8 <%= link_to_if @prev_issue_id,
Chris@1517 9 "\xc2\xab #{l(:label_previous)}",
Chris@1517 10 (@prev_issue_id ? issue_path(@prev_issue_id) : nil),
Chris@1517 11 :title => "##{@prev_issue_id}" %> |
Chris@1517 12 <% if @issue_position && @issue_count %>
Chris@1517 13 <span class="position"><%= l(:label_item_position, :position => @issue_position, :count => @issue_count) %></span> |
Chris@1517 14 <% end %>
Chris@1517 15 <%= link_to_if @next_issue_id,
Chris@1517 16 "#{l(:label_next)} \xc2\xbb",
Chris@1517 17 (@next_issue_id ? issue_path(@next_issue_id) : nil),
Chris@1517 18 :title => "##{@next_issue_id}" %>
Chris@1517 19 </div>
Chris@1517 20 <% end %>
Chris@1517 21
Chris@1517 22 <%= avatar(@issue.author, :size => "50") %>
Chris@1517 23
Chris@1517 24 <div class="subject">
Chris@1517 25 <%= render_issue_subject_with_tree(@issue) %>
Chris@1517 26 </div>
Chris@1517 27 <p class="author">
Chris@1517 28 <%= authoring @issue.created_on, @issue.author %>.
Chris@1517 29 <% if @issue.created_on != @issue.updated_on %>
Chris@1517 30 <%= l(:label_updated_time, time_tag(@issue.updated_on)).html_safe %>.
Chris@1517 31 <% end %>
Chris@1517 32 </p>
Chris@1517 33
Chris@1517 34 <table class="attributes">
Chris@1517 35 <%= issue_fields_rows do |rows|
Chris@1517 36 rows.left l(:field_status), h(@issue.status.name), :class => 'status'
Chris@1517 37 rows.left l(:field_priority), h(@issue.priority.name), :class => 'priority'
Chris@1517 38
Chris@1517 39 unless @issue.disabled_core_fields.include?('assigned_to_id')
Chris@1517 40 rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
Chris@1517 41 end
Chris@1517 42 unless @issue.disabled_core_fields.include?('category_id')
Chris@1517 43 rows.left l(:field_category), h(@issue.category ? @issue.category.name : "-"), :class => 'category'
Chris@1517 44 end
Chris@1517 45 unless @issue.disabled_core_fields.include?('fixed_version_id')
Chris@1517 46 rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
Chris@1517 47 end
Chris@1517 48
Chris@1517 49 unless @issue.disabled_core_fields.include?('start_date')
Chris@1517 50 rows.right l(:field_start_date), format_date(@issue.start_date), :class => 'start-date'
Chris@1517 51 end
Chris@1517 52 unless @issue.disabled_core_fields.include?('due_date')
Chris@1517 53 rows.right l(:field_due_date), format_date(@issue.due_date), :class => 'due-date'
Chris@1517 54 end
Chris@1517 55 unless @issue.disabled_core_fields.include?('done_ratio')
Chris@1517 56 rows.right l(:field_done_ratio), progress_bar(@issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%"), :class => 'progress'
Chris@1517 57 end
Chris@1517 58 unless @issue.disabled_core_fields.include?('estimated_hours')
Chris@1517 59 unless @issue.estimated_hours.nil?
Chris@1517 60 rows.right l(:field_estimated_hours), l_hours(@issue.estimated_hours), :class => 'estimated-hours'
Chris@1517 61 end
Chris@1517 62 end
Chris@1517 63 if User.current.allowed_to?(:view_time_entries, @project)
Chris@1517 64 rows.right l(:label_spent_time), (@issue.total_spent_hours > 0 ? link_to(l_hours(@issue.total_spent_hours), project_issue_time_entries_path(@project, @issue)) : "-"), :class => 'spent-time'
Chris@1517 65 end
Chris@1517 66 end %>
Chris@1517 67 <%= render_custom_fields_rows(@issue) %>
Chris@1517 68 <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
Chris@1517 69 </table>
Chris@1517 70
Chris@1517 71 <% if @issue.description? || @issue.attachments.any? -%>
Chris@1517 72 <hr />
Chris@1517 73 <% if @issue.description? %>
Chris@1517 74 <div class="description">
Chris@1517 75 <div class="contextual">
Chris@1517 76 <%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
Chris@1517 77 </div>
Chris@1517 78
Chris@1517 79 <p><strong><%=l(:field_description)%></strong></p>
Chris@1517 80 <div class="wiki">
Chris@1517 81 <%= textilizable @issue, :description, :attachments => @issue.attachments %>
Chris@1517 82 </div>
Chris@1517 83 </div>
Chris@1517 84 <% end %>
Chris@1517 85 <%= link_to_attachments @issue, :thumbnails => true %>
Chris@1517 86 <% end -%>
Chris@1517 87
Chris@1517 88 <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
Chris@1517 89
Chris@1517 90 <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
Chris@1517 91 <hr />
Chris@1517 92 <div id="issue_tree">
Chris@1517 93 <div class="contextual">
Chris@1517 94 <%= link_to_new_subtask(@issue) if User.current.allowed_to?(:manage_subtasks, @project) %>
Chris@1517 95 </div>
Chris@1517 96 <p><strong><%=l(:label_subtask_plural)%></strong></p>
Chris@1517 97 <%= render_descendants_tree(@issue) unless @issue.leaf? %>
Chris@1517 98 </div>
Chris@1517 99 <% end %>
Chris@1517 100
Chris@1517 101 <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
Chris@1517 102 <hr />
Chris@1517 103 <div id="relations">
Chris@1517 104 <%= render :partial => 'relations' %>
Chris@1517 105 </div>
Chris@1517 106 <% end %>
Chris@1517 107
Chris@1517 108 </div>
Chris@1517 109
Chris@1517 110 <% if @changesets.present? %>
Chris@1517 111 <div id="issue-changesets">
Chris@1517 112 <h3><%=l(:label_associated_revisions)%></h3>
Chris@1517 113 <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
Chris@1517 114 </div>
Chris@1517 115 <% end %>
Chris@1517 116
Chris@1517 117 <% if @journals.present? %>
Chris@1517 118 <div id="history">
Chris@1517 119 <h3><%=l(:label_history)%></h3>
Chris@1517 120 <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
Chris@1517 121 </div>
Chris@1517 122 <% end %>
Chris@1517 123
Chris@1517 124
Chris@1517 125 <div style="clear: both;"></div>
Chris@1517 126 <%= render :partial => 'action_menu' %>
Chris@1517 127
Chris@1517 128 <div style="clear: both;"></div>
Chris@1517 129 <% if @issue.editable? %>
Chris@1517 130 <div id="update" style="display:none;">
Chris@1517 131 <h3><%= l(:button_edit) %></h3>
Chris@1517 132 <%= render :partial => 'edit' %>
Chris@1517 133 </div>
Chris@1517 134 <% end %>
Chris@1517 135
Chris@1517 136 <% other_formats_links do |f| %>
Chris@1517 137 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@1517 138 <%= f.link_to 'PDF' %>
Chris@1517 139 <% end %>
Chris@1517 140
Chris@1517 141 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
Chris@1517 142
Chris@1517 143 <% content_for :sidebar do %>
Chris@1517 144 <%= render :partial => 'issues/sidebar' %>
Chris@1517 145
Chris@1517 146 <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
Chris@1517 147 (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
Chris@1517 148 <div id="watchers">
Chris@1517 149 <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
Chris@1517 150 </div>
Chris@1517 151 <% end %>
Chris@1517 152 <% end %>
Chris@1517 153
Chris@1517 154 <% content_for :header_tags do %>
Chris@1517 155 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
Chris@1517 156 <% end %>
Chris@1517 157
Chris@1517 158 <%= context_menu issues_context_menu_path %>