annotate .svn/pristine/fb/fb9d18ab27c8a24a4ea968203d6a7cfafe3bd575.svn-base @ 1327:287f201c2802 redmine-2.2-integration

Add italic
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jun 2013 20:56:22 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 <%= render :partial => 'action_menu' %>
Chris@909 2
Chris@909 3 <h2><%= issue_heading(@issue) %></h2>
Chris@909 4
Chris@909 5 <div class="<%= @issue.css_classes %> details">
Chris@909 6 <%= avatar(@issue.author, :size => "50") %>
Chris@909 7
Chris@909 8 <div class="subject">
Chris@909 9 <%= render_issue_subject_with_tree(@issue) %>
Chris@909 10 </div>
Chris@909 11 <p class="author">
Chris@909 12 <%= authoring @issue.created_on, @issue.author %>.
Chris@909 13 <% if @issue.created_on != @issue.updated_on %>
Chris@909 14 <%= l(:label_updated_time, time_tag(@issue.updated_on)) %>.
Chris@909 15 <% end %>
Chris@909 16 </p>
Chris@909 17
Chris@909 18 <table class="attributes">
Chris@909 19 <tr>
Chris@909 20 <th class="status"><%=l(:field_status)%>:</th><td class="status"><%= h(@issue.status.name) %></td>
Chris@909 21 <th class="start-date"><%=l(:field_start_date)%>:</th><td class="start-date"><%= format_date(@issue.start_date) %></td>
Chris@909 22 </tr>
Chris@909 23 <tr>
Chris@909 24 <th class="priority"><%=l(:field_priority)%>:</th><td class="priority"><%= h(@issue.priority.name) %></td>
Chris@909 25 <th class="due-date"><%=l(:field_due_date)%>:</th><td class="due-date"><%= format_date(@issue.due_date) %></td>
Chris@909 26 </tr>
Chris@909 27 <tr>
Chris@909 28 <th class="assigned-to"><%=l(:field_assigned_to)%>:</th><td class="assigned-to"><%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %></td>
Chris@909 29 <th class="progress"><%=l(:field_done_ratio)%>:</th><td class="progress"><%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %></td>
Chris@909 30 </tr>
Chris@909 31 <tr>
Chris@909 32 <th class="category"><%=l(:field_category)%>:</th><td class="category"><%=h(@issue.category ? @issue.category.name : "-") %></td>
Chris@909 33 <% if User.current.allowed_to?(:view_time_entries, @project) %>
Chris@909 34 <th class="spent-time"><%=l(:label_spent_time)%>:</th>
Chris@909 35 <td class="spent-time"><%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'index', :project_id => @project, :issue_id => @issue}) : "-" %></td>
Chris@909 36 <% end %>
Chris@909 37 </tr>
Chris@909 38 <tr>
Chris@909 39 <th class="fixed-version"><%=l(:field_fixed_version)%>:</th><td class="fixed-version"><%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %></td>
Chris@909 40 <% if @issue.estimated_hours %>
Chris@909 41 <th class="estimated-hours"><%=l(:field_estimated_hours)%>:</th><td class="estimated-hours"><%= l_hours(@issue.estimated_hours) %></td>
Chris@909 42 <% end %>
Chris@909 43 </tr>
Chris@909 44 <%= render_custom_fields_rows(@issue) %>
Chris@909 45 <%= call_hook(:view_issues_show_details_bottom, :issue => @issue) %>
Chris@909 46 </table>
Chris@909 47
Chris@909 48 <% if @issue.description? || @issue.attachments.any? -%>
Chris@909 49 <hr />
Chris@909 50 <% if @issue.description? %>
Chris@909 51 <div class="contextual">
Chris@909 52 <%= link_to_remote_if_authorized(l(:button_quote), { :url => {:controller => 'journals', :action => 'new', :id => @issue} }, :class => 'icon icon-comment') %>
Chris@909 53 </div>
Chris@909 54
Chris@909 55 <p><strong><%=l(:field_description)%></strong></p>
Chris@909 56 <div class="wiki">
Chris@909 57 <%= textilizable @issue, :description, :attachments => @issue.attachments %>
Chris@909 58 </div>
Chris@909 59 <% end %>
Chris@909 60 <%= link_to_attachments @issue %>
Chris@909 61 <% end -%>
Chris@909 62
Chris@909 63 <%= call_hook(:view_issues_show_description_bottom, :issue => @issue) %>
Chris@909 64
Chris@909 65 <% if !@issue.leaf? || User.current.allowed_to?(:manage_subtasks, @project) %>
Chris@909 66 <hr />
Chris@909 67 <div id="issue_tree">
Chris@909 68 <div class="contextual">
Chris@909 69 <%= link_to(l(:button_add), {:controller => 'issues', :action => 'new', :project_id => @project, :issue => {:parent_issue_id => @issue}}) if User.current.allowed_to?(:manage_subtasks, @project) %>
Chris@909 70 </div>
Chris@909 71 <p><strong><%=l(:label_subtask_plural)%></strong></p>
Chris@909 72 <%= render_descendants_tree(@issue) unless @issue.leaf? %>
Chris@909 73 </div>
Chris@909 74 <% end %>
Chris@909 75
Chris@909 76 <% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
Chris@909 77 <hr />
Chris@909 78 <div id="relations">
Chris@909 79 <%= render :partial => 'relations' %>
Chris@909 80 </div>
Chris@909 81 <% end %>
Chris@909 82
Chris@909 83 </div>
Chris@909 84
Chris@909 85 <% if @changesets.present? %>
Chris@909 86 <div id="issue-changesets">
Chris@909 87 <h3><%=l(:label_associated_revisions)%></h3>
Chris@909 88 <%= render :partial => 'changesets', :locals => { :changesets => @changesets} %>
Chris@909 89 </div>
Chris@909 90 <% end %>
Chris@909 91
Chris@909 92 <% if @journals.present? %>
Chris@909 93 <div id="history">
Chris@909 94 <h3><%=l(:label_history)%></h3>
Chris@909 95 <%= render :partial => 'history', :locals => { :issue => @issue, :journals => @journals } %>
Chris@909 96 </div>
Chris@909 97 <% end %>
Chris@909 98
Chris@909 99
Chris@909 100 <div style="clear: both;"></div>
Chris@909 101 <%= render :partial => 'action_menu' %>
Chris@909 102
Chris@909 103 <div style="clear: both;"></div>
Chris@909 104 <% if authorize_for('issues', 'edit') %>
Chris@909 105 <div id="update" style="display:none;">
Chris@909 106 <h3><%= l(:button_update) %></h3>
Chris@909 107 <%= render :partial => 'edit' %>
Chris@909 108 </div>
Chris@909 109 <% end %>
Chris@909 110
Chris@909 111 <% other_formats_links do |f| %>
Chris@909 112 <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
Chris@909 113 <%= f.link_to 'PDF' %>
Chris@909 114 <% end %>
Chris@909 115
Chris@909 116 <% html_title "#{@issue.tracker.name} ##{@issue.id}: #{@issue.subject}" %>
Chris@909 117
Chris@909 118 <% content_for :sidebar do %>
Chris@909 119 <%= render :partial => 'issues/sidebar' %>
Chris@909 120
Chris@909 121 <% if User.current.allowed_to?(:add_issue_watchers, @project) ||
Chris@909 122 (@issue.watchers.present? && User.current.allowed_to?(:view_issue_watchers, @project)) %>
Chris@909 123 <div id="watchers">
Chris@909 124 <%= render :partial => 'watchers/watchers', :locals => {:watched => @issue} %>
Chris@909 125 </div>
Chris@909 126 <% end %>
Chris@909 127 <% end %>
Chris@909 128
Chris@909 129 <% content_for :header_tags do %>
Chris@909 130 <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@issue.project} - #{@issue.tracker} ##{@issue.id}: #{@issue.subject}") %>
Chris@909 131 <%= stylesheet_link_tag 'scm' %>
Chris@909 132 <%= javascript_include_tag 'context_menu' %>
Chris@909 133 <%= stylesheet_link_tag 'context_menu' %>
Chris@909 134 <%= stylesheet_link_tag 'context_menu_rtl' if l(:direction) == 'rtl' %>
Chris@909 135 <% end %>
Chris@909 136 <div id="context-menu" style="display: none;"></div>
Chris@909 137 <%= javascript_tag "new ContextMenu('#{issues_context_menu_path}')" %>