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 the create topic form. #%]
2
 
3
[% PROCESS header.html.tmpl version = version displaymenu = 1 
4
                            closehead = 1 help = "x394.html" %]
5
 
6
[%# Display any "feedback" to the user if necessary. #%]
7
[% IF feedback != '' %]
8
    <span class="feedback">[% feedback %]</span>
9
[% END %]
10
 
11
<P>
12
 
13
<H1>Create new topic</H1>
14
 
15
<P>
16
 
17
[%# Show any topics that this topic will obsolete #%]
18
[% IF obsoleted_topics.size > 0 %]
19
<span style="obsolete-header">Topics to obsolete:</span>
20
[% FOREACH topic = obsoleted_topics %]
21
<a href="[% topic.view_url %]">[% topic.title | html_entity %]</a>[% IF ! loop.last() %],[% END %]
22
 
23
[% END %]
24
<p>
25
[% END %]
26
 
27
<FORM METHOD="post" ENCTYPE="multipart/form-data" ACCEPT-CHARSET="UTF-8">
28
<INPUT TYPE="hidden" NAME="action" VALUE="submit_new_topic" />
29
<INPUT TYPE="hidden" NAME="obsoletes" VALUE="[% obsoletes %]" />
30
 
31
[%# The topic title input field #%]
32
Topic title:
33
<FONT SIZE="-2"><a href="javascript:void(0);"
34
onmouseover="return create_window('The topic title should be a concise but \
35
informative summary of the code to be reviewed.  The title is used in the \
36
subject of sent emails, and in the topic list screen.');">(?)</a></FONT>
37
<BR/>
38
<INPUT TYPE="text" NAME="topic_title" VALUE="[% topic_title | html_entity %]" SIZE=70 MAXLENGTH=70 />
39
<P>
40
 
41
[%# The topic description input field #%]
42
Topic description:
43
<FONT SIZE="-2"><a href="javascript:void(0);"
44
onmouseover="return create_window('\
45
The topic description should contain enough information \
46
for a reviewer to understand broadly what the code change \
47
achieves. This information is sent with the new topic \
48
notification email to all reviewers.')">(?)</a></FONT>
49
<BR/>
50
<TEXTAREA NAME="topic_description" ROWS=12 COLS=70 WRAP="soft">[% topic_description | html_entity %]</TEXTAREA>
51
<P>
52
 
53
<TABLE>
54
[% IF maximum_topic_size_lines != 0 || suggested_topic_size_lines != 0 %]
55
  <TR><TD COLSPAN="3">
56
  [% IF maximum_topic_size_lines != 0 %]
57
    <EM>Topics cannot be larger than [% maximum_topic_size_lines %] lines.</EM>
58
  [% END %]
59
  [% IF suggested_topic_size_lines != 0 %]
60
    <EM>The suggested topic size limit is [% suggested_topic_size_lines %] lines.</EM>
61
  [% END %]
62
  </TD></TR>
63
[% END %]
64
[%# The topic text upload button #%]
65
<TR>
66
 <TD>Topic text upload:
67
<FONT SIZE="-2"><a href="javascript:void(0);"
68
onmouseover="return create_window('\
69
The uploaded file contains the actual text of the review. \
70
Typically, the text is the output of a command such as: \
71
<p> \
72
cvs diff -uN &gt; output.txt \
73
<p> or <p> \
74
svn diff -uN &gt; output.txt \
75
<p> or <p> \
76
diff -urN ../old-version/ . &gt; output.txt \
77
<p> \
78
Non-unidiff files, or ordinary text files can be uploaded, \
79
but will be treated simply as \'new files\'. \
80
<p> \
81
This should be left blank if you are reviewing files \
82
directly from a repository.')">(?)</a></FONT>
83
</TD>
84
 <TD COLSPAN="3"><INPUT TYPE="file" NAME="topic_file" VALUE="[% topic_file | html_entity %]" SIZE=40 MAXLENGTH=200 /></TD>
85
</TR>
86
 
87
[% IF allow_repositories != 0 %]
88
[%# The diff fetcher #%]
89
<TR>
90
 <TD>
91
Start tag:
92
<FONT SIZE="-2"><a href="javascript:void(0);"
93
onmouseover="return create_window('\
94
Rather than uploading the topic text, if the repository \
95
supports it, the text can be fetched by querying the \
96
repository, given start and/or end tags, and a module name. \
97
The start tag, end tag, and module fields are ignored if text \
98
is uploaded.<p> \
99
If only one tag value is specified, the full contents of all \
100
files in the specified module corresponding to the entered tag \
101
will be downloaded.')">(?)</a></FONT>
102
</TD>
103
<TD>
104
<INPUT TYPE="text" NAME="start_tag" VALUE="[% start_tag | html_entity %]" SIZE=20 MAXLENGTH=150 />
105
</TD>
106
<TD>End tag: <FONT SIZE="-2"><a href="javascript:void(0);"
107
onmouseover="return create_window('\
108
Rather than uploading the topic text, if the repository \
109
supports it, the text can be fetched by querying the \
110
repository, given start and/or end tags, and a module name. \
111
The start tag, end tag, and module fields are ignored if text \
112
is uploaded. <p> \
113
If only one tag value is specified, the full contents of all \
114
files in the specified module corresponding to the entered tag \
115
will be downloaded.')">(?)</A></FONT></TD>
116
<TD>
117
<INPUT TYPE="text" NAME="end_tag" VALUE="[% end_tag  | html_entity %]" SIZE=20 MAXLENGTH=150 />
118
</TD>
119
</TR>
120
<TR>
121
<TD>&nbsp;</TD><TD>&nbsp;</TD>
122
<TD>
123
Module:
124
<FONT SIZE="-2"><A HREF="javascript:void(0);"
125
onmouseover="return create_window('\
126
This is the path to the file or module relative to the repository \
127
root that should be inspected. It is ignored if text is uploaded.')">(?)</a></FONT>
128
</TD>
129
<TD>
130
<INPUT TYPE="text" NAME="module" VALUE="[% module | html_entity %]" SIZE=20 MAXLENGTH=150 />
131
</TD>
132
</TR>
133
 
134
<TR>
135
 <TD>&nbsp;</TD><TD>&nbsp;</TD>
136
[%# The default_to_head input field #%]
137
 <TD>Default to HEAD:
138
<FONT SIZE="-2"><a href="javascript:void(0);"
139
onmouseover="return create_window('\
140
Fall back to HEAD revision if a file does not exist on either tag. \
141
This will allow diffs between a branch and the HEAD revision, without \
142
showing files not on the branch as deleted. \
143
This option affects only CVS topics currently.')">(?)</A></FONT>
144
</TD>
145
 <TD COLSPAN="3"><INPUT TYPE="checkbox" NAME="default_to_head" [% IF default_to_head %]CHECKED[% END %] /></TD>
146
</TR>
147
[% END %]
148
 
149
[%# The repository the review is made against #%]
150
[%# Only display the repository select if there is more than one #%]
151
[% IF repositories.size > 1 %]
152
<TR>
153
 <TD>Repository:
154
<FONT SIZE="-2"><A HREF="javascript:void(0);"
155
onmouseover="return create_window('\
156
The SCM system (eg CVS, Subversion, ClearCase) \
157
which the topic text was prepared against.  If \
158
this is correctly set, this provides the \
159
ability to view the entire contents of a file \
160
with and/or without a proposed change, which \
161
an aid in the reviewing process.')">(?)</a></FONT>
162
</TD>
163
 <TD COLSPAN="3"><SELECT NAME="repository">
164
       [% FOREACH entry = repositories %]
165
          [% IF entry == default_repository %]
166
	      <OPTION SELECTED VALUE="[% entry %]">[% entry %]</OPTION>
167
	  [% ELSE %]
168
	      <OPTION VALUE="[% entry %]">[% entry %]</OPTION>
169
	  [% END %]
170
       [% END %]
171
      </SELECT>
172
 </TD>
173
</TR>
174
[% END %]
175
 
176
[% IF projects_enabled != 0 %]
177
 
178
[%# The project the review belongs to #%]
179
<TR>
180
 <TD>Project:
181
<FONT SIZE="-2"><a href="javascript:void(0);"
182
onmouseover="return create_window('\
183
Topics are associated with a specific project, which can be \
184
used as filtering criteria in the search screen.')">(?)</a></FONT>
185
</TD>
186
 <TD COLSPAN="3"><SELECT NAME="projectid">
187
       [% FOREACH project = projects %]
188
          [% IF project.id == default_projectid %]
189
	      <OPTION SELECTED VALUE="[% project.id %]">[% project.name | html_entity %]</OPTION>
190
	  [% ELSE %]
191
	      <OPTION VALUE="[% project.id %]">[% project.name | html_entity %]</OPTION>
192
	  [% END %]
193
       [% END %]
194
      </SELECT>
195
 </TD>
196
</TR>
197
 
198
[% END %]
199
 
200
[%# The bug ids input field #%]
201
[% IF bugdb_enabled != 0 %]
202
<TR>
203
 <TD>Bug IDs:
204
<FONT SIZE="-2"><a href="javascript:void(0)"
205
onmouseover="return create_window('\
206
Indicates what bug identifiers are addressed by this code change. \
207
These are space or comma separated identifiers, such as: \
208
<p> \
209
1634 \
210
<p> \
211
or \
212
<p> \
213
1534, 4625, 1243 \
214
<p> \
215
The appropriate links to the bug-tracking system will be made \
216
when the topic is viewed, for the reviewer\'s reference. \
217
<p> \
218
In addition, if integrating with Bugzilla, when the topic state \
219
is changed, a comment will be inserted automatically to the \
220
associated bugs for cross referencing.  When a bug is viewed, \
221
it can be easily determined what code fixes have been applied \
222
to it.')">(?)</a></FONT>
223
</TD>
224
 <TD COLSPAN="3"><INPUT TYPE="text" NAME="bug_ids" VALUE="[% bug_ids | html_entity %]" SIZE=30 MAXLENGTH=50 /></TD>
225
</TR>
226
[% END %]
227
 
228
[%# The email input field #%]
229
<TR>
230
 <TD>Your (Author's) email address:
231
<FONT SIZE="-2"><A HREF="javascript:void(0);"
232
onmouseover="return create_window('\
233
This is the Author\'s email address.  All comments made against a topic \
234
will be sent to this address.  The new topic notification email \
235
will also be sent to this address.')">(?)</a></FONT>
236
</TD>
237
 <TD COLSPAN="3"><INPUT TYPE="text" NAME="email" VALUE="[% email | html_entity %]" SIZE=50 MAXLENGTH=80 /></TD>
238
</TR>
239
 
240
[%# The reviewers input field #%]
241
<TR>
242
 <TD>Reviewers:
243
<FONT SIZE="-2"><a href="javascript:void(0);"
244
onmouseover="return create_window('\
245
This is a comma separated list of email addresses, which are the \
246
people who need to review this code.  When the topic is created, \
247
the new topic notification  email will be sent to these addresses.')">(?)</a></FONT>
248
</TD>
249
 <TD COLSPAN="3"><INPUT TYPE="text" NAME="reviewers" VALUE="[% reviewers | html_entity %]" SIZE=50 MAXLENGTH=1024 /></TD>
250
</TR>
251
 
252
[%# The Cc input field #%]
253
<TR>
254
 <TD>Cc: 
255
<FONT SIZE="-2"><a href="javascript:void(0);"
256
onmouseover="return create_window('\
257
This is a comma separated list of email addresses, which are \
258
not intended to be reviewers, but typically a mailing list \
259
to notify a number of people about the creation of a new topic.')">(?)</a></FONT>
260
</TD>
261
 <TD COLSPAN="3"><INPUT TYPE="text" NAME="cc" VALUE="[% cc | html_entity %]" SIZE=50 MAXLENGTH=1024 /></TD>
262
</TR>
263
</TABLE>
264
 
265
<P>
266
<INPUT TYPE="submit" NAME=".submit" VALUE="Create Topic" />
267
 
268
</FORM>
269
 
270
[% PROCESS trailer.html.tmpl %]
271
 
272
</BODY>
273
</HTML>