File: issue.rhtml

package info (click to toggle)
ditz 0.5-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 356 kB
  • ctags: 489
  • sloc: ruby: 3,664; sh: 15; makefile: 12
file content (119 lines) | stat: -rw-r--r-- 3,126 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><%= issue.title %></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body>

<div class="main">

<h1><%= link_issue_names project, issue.title %></h1>
<div class="backptr"><%= link_to "index", "&laquo; #{project.name} project page" %></div>

<% if issue.desc && !issue.desc.empty? %>
  <div class="description">
  <%= link_issue_names project, p(issue.desc) %>
  </div>
<% end %>

<h2>Details</h2>
<table>
  <tbody>
    <tr>
      <td class="attrname">Id:</td>
      <td class="attrval"><span class="id"><%= issue.id %></span></td>
    </tr>

    <tr>
      <td class="attrname">Type:</td>
      <td class="attrval"><%= issue.type %></td>
    </tr>

    <tr>
      <td class="attrname">Creation time:</td>
      <td class="attrval"><%=t issue.creation_time %></td>
    </tr>

    <tr>
      <td class="attrname">Creator:</td>
      <td class="attrval"><span class="person"><%=obscured_email issue.reporter %></span></td>
    </tr>

    <% unless issue.references.empty? %>
    <tr>
      <td class="attrname">References:</td>
      <td class="attrval">
        <% issue.references.each_with_index do |r, i| %>
          [<%= i + 1 %>] <%= link_to r, r %><br/>
        <% end %>
      </td>
    </tr>

    <% end %>

    <tr>
      <td class="attrname">Release:</td>
      <td class="attrval">
        <% if release %>
          <%= link_to release, release.name %>
          <% if release.released? %>
            (released <%= release.release_time.pretty_date %>)
          <% else %>
            (unreleased)
          <% end %>
        <% else %>
          <%= link_to "unassigned", "unassigned" %>
        <% end %>
      </td>
    </tr>

    <tr>
      <td class="attrname">Component:</td>
      <td class="attrval"><%= link_to component, component.name %></td>
    </tr>

    <tr>
      <td class="attrname">Status:</td>
      <td class="attrval">
        <%= issue.status_string %><% if issue.closed? %>: <%= issue.disposition_string %><% end %>
        <%= issue_status_img_for issue, :class => "inline-status-image" %>
      </td>
    </tr>

    <%= extra_summary_html %>
  </tbody>
</table>

<%= extra_details_html %>

<h2>Issue log</h2>

<table class="log">
  <tbody>
  <% issue.log_events.reverse.each_with_index do |(time, who, what, comment), i| %>
    <tr class="<%= i % 2 == 0 ? "even-row" : "odd-row" %>">
      <td class="date"><%=t time %></td>
      <td class="person"><%=obscured_email who %></td>
      <td class="message"><%=h what %></td>
    </tr>
    <% unless comment.empty? %>
      <tr><td colspan="3" class="logcomment">
      <%= link_issue_names project, comment %>
      </td></tr>
    <% end %>
    <tr><td></td></tr>
  <% end %>
  </tbody>
</table>

</div>
<div class="footer">Generated by <a href="http://ditz.rubyforge.org/">ditz</a>.</div>

</body>
</html>