Skip to content

Commit c65ffbb

Browse files
author
Richard Jones
committed
added a form to show a specific issue
fixed layout issues with forms in sidebar
1 parent 9891622 commit c65ffbb

File tree

3 files changed

+31
-14
lines changed

3 files changed

+31
-14
lines changed

CHANGES.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ This file contains the changes to the Roundup system over time. The entries
22
are given with the most recent entry first.
33

44
2003-??-?? 0.6.0
5-
- better hyperlinking in web message texts (handle ambiguous cases)
5+
- better hyperlinking in web message texts (sf bug 669777)
66
- support setting of properties on message and file through web and
77
email interface (thanks John Rouillard)
88
- allow additional control over the roundupdb email sending (explicit
@@ -25,6 +25,8 @@ are given with the most recent entry first.
2525
for helping chase it down and Luke Opperman for confirming fix)
2626
- added ability to display localized dates in web interface. User input is
2727
convered to GMT (see doc/upgrading.txt).
28+
- added a form to show a specific issue
29+
- fixed layout issues with forms in sidebar
2830

2931

3032
2003-??-?? 0.5.5

roundup/cgi/client.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.74 2003-01-27 16:32:48 kedder Exp $
1+
# $Id: client.py,v 1.75 2003-02-03 00:01:44 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -396,6 +396,7 @@ def renderContext(self):
396396
('logout', 'logout_action'),
397397
('search', 'searchAction'),
398398
('retire', 'retireAction'),
399+
('show', 'showAction'),
399400
)
400401
def handle_action(self):
401402
''' Determine whether there should be an _action called.
@@ -1023,6 +1024,15 @@ def retirePermission(self):
10231024
return 1
10241025

10251026

1027+
def showAction(self):
1028+
''' Show a node
1029+
'''
1030+
t = self.form[':type'].value
1031+
n = self.form[':number'].value
1032+
url = '%s%s%s'%(self.db.config.TRACKER_WEB, t, n)
1033+
raise Redirect, url
1034+
1035+
10261036
#
10271037
# Utility methods for editing
10281038
#

roundup/templates/classic/html/page

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,20 @@
2828
</tal:block>
2929
</p>
3030

31-
<p class="classblock"
31+
<form method="POST">
32+
<p class="classblock"
3233
tal:condition="python:request.user.hasPermission('View', 'issue')">
33-
<b>Issues</b><br>
34-
<a tal:condition="python:request.user.hasPermission('Edit', 'issue')"
34+
<b>Issues</b><br>
35+
<a tal:condition="python:request.user.hasPermission('Edit', 'issue')"
3536
href="issue?:template=item">Create New<br></a>
36-
<a href="issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,status&status=-1,1,2,3,4,5,6,7&assignedto=-1">Show Unassigned</a><br>
37-
<a href="issue?:sort=-activity&:group=priority&:filter=status&:columns=id,activity,title,creator,assignedto,status&status=-1,1,2,3,4,5,6,7">Show All</a><br>
38-
<a href="issue?:template=search">Search</a>
39-
</p>
37+
<a href="issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,status&status=-1,1,2,3,4,5,6,7&assignedto=-1">Show Unassigned</a><br>
38+
<a href="issue?:sort=-activity&:group=priority&:filter=status&:columns=id,activity,title,creator,assignedto,status&status=-1,1,2,3,4,5,6,7">Show All</a><br>
39+
<a href="issue?:template=search">Search</a><br>
40+
<input type="submit" value="Show issue no."><input size="4" type="text" name=":number">
41+
<input type="hidden" name=":type" value="issue">
42+
<input type="hidden" name=":action" value="show">
43+
</p>
44+
</form>
4045

4146
<p class="classblock"
4247
tal:condition="python:request.user.hasPermission('View', 'keyword')">
@@ -60,15 +65,15 @@
6065
href="user?:template=item">Add User</a>
6166
</p>
6267

63-
<p class="userblock" tal:condition="python:request.user.username=='anonymous'">
64-
<form method="POST" action="">
68+
<form method="POST" action="">
69+
<p class="userblock" tal:condition="python:request.user.username=='anonymous'">
6570
<input size="10" name="__login_name"><br>
6671
<input size="10" type="password" name="__login_password"><br>
6772
<input type="submit" name=":action" value="login">
6873
<span tal:replace="structure request/indexargs_form" />
69-
</form>
70-
<a href="user?:template=register">Register</a>
71-
</p>
74+
<a href="user?:template=register">Register</a>
75+
</p>
76+
</form>
7277

7378
<p class="userblock" tal:condition="python:request.user.username != 'anonymous'">
7479
<b>Hello,</b><br><b tal:content="request/user/username">username</b><br>

0 commit comments

Comments
 (0)