Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1293 dpurdie 1
[%# Screen for show a list of topics. #%]
2
 
3
[% PROCESS header.html.tmpl version = version displaymenu = 1 
4
                            closehead = 1 help = "x339.html" %]
5
 
6
[%# Display any "feedback" to the user if necessary. #%]
7
[% IF feedback != '' %]
8
    <span class="feedback">[% feedback %]</span>
9
    <p>
10
[% END %]
11
 
12
[%# Display the heading and create the table #%]
13
<FORM METHOD="post" ENCTYPE="multipart/form-data">
14
<input TYPE="hidden" NAME="action" VALUE="change_topics_state" />
15
 
16
[%# Store the search parameters as hidden variables #%]
17
<input TYPE="hidden" NAME="sauthor" VALUE="[% sauthor | html_entity %]" />
18
<input TYPE="hidden" NAME="sreviewer" VALUE="[% sreviewer | html_entity %]" />
19
<input TYPE="hidden" NAME="scc" VALUE="[% scc | html_entity %]" />
20
<input TYPE="hidden" NAME="sbugid" VALUE="[% sbugid %]" />
21
<input TYPE="hidden" NAME="stext" VALUE="[% stext | html_entity %]" />
22
<input TYPE="hidden" NAME="sstate" VALUE="[% sstate %]" />
23
<input TYPE="hidden" NAME="stitle" VALUE="[% stitle | html_entity %]" />
24
<input TYPE="hidden" NAME="sdescription" VALUE="[% sdescription | html_entity %]" />
25
<input TYPE="hidden" NAME="scomments" VALUE="[% scomments | html_entity %]" />
26
<input TYPE="hidden" NAME="sbody" VALUE="[% sbody | html_entity %]" />
27
<input TYPE="hidden" NAME="sfilename" VALUE="[% sfilename | html_entity %]" />
28
 
29
<H1>Topic list</H1>
30
 
31
<P>
32
 
33
<table width="100%">
34
 
35
    [%# Display the table header #%]
36
    [% SET number_columns = 7 %]
37
    <tr class="tlh">
38
        <th colspan="2"><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=title">Title</a></th>
39
        <th><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=author">Author</a></th>
40
        <th>Reviewer</th>
41
        <th>Cc</th>
42
        <th><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=created">Created</a></th>
43
        [% FOREACH commentmetric = commentmetrics %]
44
            [% SET number_columns = number_columns + 1 %]
45
            <th>[% commentmetric.value | html_entity %]</th>
46
        [% END %]
47
	[% IF bugdb_enabled != 0 %]
48
            <th>Bug IDs</th>
49
            [% SET number_columns = number_columns + 1 %]
50
	[% END %]
51
        <th><a href="[% list_sort_url | html_entity %]&amp;topic_sort_change=state">State</a></th>
52
    </tr>
53
 
54
    [%# Display each topic row, alternating the background colour #%]
55
    [% FOREACH topic = topics %]
56
    [% FLUSH IF loop.count() % 10 == 1 %]
57
 
58
    <tr class="[% loop.count() % 2 == 0 ? 'tl1' : 'tl2' %]">
59
        <td><input TYPE="checkbox" NAME="selected_topics" VALUE="[% topic.id %],[% topic.version %]" /></td>
60
        <td><a href="[% topic.view_topic_url | html_entity %]">[% topic.title | html_entity %]</a></td>
61
        <td>[% topic.author | html_entity %]</td>
62
        <td>[% topic.reviewer | html_entity %]</td>
63
        <td>[% IF topic.cc == "" %]&nbsp;[% ELSE %][% topic.cc | html_entity %][% END %]</td>
64
        <td>[% topic.created | html_entity %]</td>
65
        [% FOREACH commentmetric = topic.commentmetrics %]
66
            <td>[% commentmetric.count | html_entity %]</td>
67
        [% END %]
68
	[% IF bugdb_enabled != 0 %]
69
        <td>[% IF topic.bugids == "" %]&nbsp;[% ELSE %][% topic.bugids %][% END %]</td>
70
	[% END %]
71
        <td>[% topic.state %]</td>
72
    </tr>
73
 
74
    [% END %]
75
 
76
    <tr class="tlh">
77
        <td colspan="[% number_columns %]">&nbsp;</td>
78
    </tr>
79
</table>
80
 
81
[% SET obsoleted_state_present = 0 %]
82
<table>
83
<tr><td>[% topics.size %] topics found.</td></tr>
84
<tr><td>&nbsp;</td></tr>
85
<td>
86
Change state: &nbsp;
87
  <select name="topic_state">
88
     [% FOREACH state = states %]
89
 
90
     [%# Obsoleted and Deleted states aren't available for selection. #%]
91
     [% IF state != 'Obsoleted' && state != 'Deleted' %]
92
         [% IF state == default_state %]
93
         <option selected value="[% state %]">[% state %]</option>
94
         [% ELSE %]
95
         <option value="[% state %]">[% state %]</option>
96
         [% END %]
97
     [% END %]
98
 
99
     [% IF state == 'Obsoleted' %]
100
         [% SET obsoleted_state_present = 1 %]
101
     [% END %]
102
 
103
     [% END %]
104
  </select>
105
</td>
106
<td>
107
   <input type="submit" name="button" value="Update" />
108
</td>
109
</tr>
110
[% IF obsoleted_state_present == 1 %]
111
<tr>
112
<td>&nbsp;</td>
113
<td>
114
   <input type="submit" name="button" value="Obsolete Topic(s)" />
115
</td>
116
</tr>
117
[% END %]
118
</table>
119
 
120
   <table width="100%">
121
    <tr class="tlh"><td>&nbsp;</td></tr>
122
   </table>
123
 
124
</FORM>
125
 
126
<p>
127
[% IF projects_enabled != 0 %]
128
    <a href="[% list_projects_url | html_entity %]">Administer Projects</a> | 
129
[% END %]
130
 
131
    <a href="[% view_metrics_url | html_entity %]">Metrics Report</a>
132
 
133
[% IF rss_enabled %]
134
 
135
| <a href="[% list_sort_url_rss | html_entity %]">RSS</a>
136
  <link rel="alternate" type="application/rdf+xml" title="RSS" href="[% list_sort_url_rss | html_entity %]" />
137
[% END %]
138
 
139
</p>
140
 
141
 
142
[% PROCESS trailer.html.tmpl %]
143
 
144
</body>
145
</html>
146
 
147