Code

tweaks, and include status on default index pages
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 2 Sep 2002 06:20:51 +0000 (06:20 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 2 Sep 2002 06:20:51 +0000 (06:20 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1023 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/templates/classic/html/home
roundup/templates/classic/html/issue.item
roundup/templates/classic/html/page
roundup/templates/classic/html/style.css

index 1d5d38c61136bb260013667a696644f2762e7f0f..8dc99f76ac03a1bfe3cde08843f988bc5716021f 100644 (file)
@@ -7,6 +7,6 @@
 <span tal:replace="structure python:db.issue.renderWith('index',
     sort=('-', 'activity'), group=('+', 'priority'), filter=['status'],
     columns={'id':1,'activity':1,'title':1,'creator':1,'assignedto':1,
-             'priority':1},
+             'status':1},
     filterspec={'status':['-1','1','2','3','4','5','6','7']})" />
 
index 750f35cd44eb4bcef153e54c0d0cc2ddbaf49a62..a967c09584bb07774d24f751821f4107aa87af28 100644 (file)
@@ -7,13 +7,6 @@
  <td colspan=3 class="form-text" tal:content="structure python:issue.title.field(size=60)">title</td>
 </tr>
 
-<tr class="form">
- <th nowrap>Created</th>
- <td class="form-text" tal:content="string:${issue/creation} (${issue/creator/username})">creation (creator)</td>
- <th nowrap>Last activity</th>
- <td class="form-text" tal:content="issue/activity">activity</td>
-</tr>
-
 <tr class="form">
  <th nowrap>Priority</th>
  <td class="form-text" tal:content="structure issue/priority/menu">priority</td>
@@ -24,7 +17,7 @@
 <tr class="form">
  <th nowrap>Superseder</th>
  <td>
-  <span tal:replace="structure python:issue.superseder.field(showid=1)" />
+  <span tal:replace="structure python:issue.superseder.field(showid=1, size=20)" />
   <span tal:replace="structure python:db.issue.classhelp('id,title', label='list', width=500)" />
   <span tal:condition="issue/superseder">
    <br>View: <span tal:replace="structure python:issue.superseder.link(showid=1)" />
@@ -56,7 +49,7 @@
 <tr class="form">
  <th nowrap>File</th>
  <td colspan=3 class="form-text">
-  <input type="file" name="__file" size="60">
+  <input type="file" name="__file" size="40">
  </td>
 </tr>
 
@@ -68,6 +61,8 @@
 </tr>
 </table>
 
+<span tal:content="structure string:Created on <b>${issue/creation}</b> by <b>${issue/creator/username}</b>, last changed <b>${issue/activity}</b>.">activity info</span>
+
 <tal:block tal:condition="exists:item">
  <table class="messages" tal:condition="issue/messages">
   <tr><th colspan=2 class="header">Messages</th></tr>
index 75d63d3e60a3dfb28a38cec5731f4a152579cd46..c69172b6ad1548e19d940328065f1e42cf395d22 100644 (file)
@@ -26,8 +26,8 @@
    <b>Issues</b><br>
    <a tal:condition="python:request.user.hasPermission('Edit', 'issue')"
       href="issue?:template=item">New Issue<br></a>
-   <a href="issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,priority&status=-1,1,2,3,4,5,6,7&assignedto=-1">Unassigned Issues</a><br>
-   <a href="issue?:sort=-activity&:group=priority&:filter=status&:columns=id,activity,title,creator,assignedto,priority&status=-1,1,2,3,4,5,6,7">All Issues</a><br>
+   <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">Unassigned Issues</a><br>
+   <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">All Issues</a><br>
    <a href="issue?:template=search">Search Issues</a>
   </p>
 
@@ -51,7 +51,7 @@
    
   <p class="userblock" tal:condition="python:request.user.username != 'anonymous'">
    <b>Hello,</b><br><b tal:content="request/user/username">username</b><br>
-   <a tal:attributes="href string:issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,priority&status=-1,1,2,3,4,5,6,7&assignedto=${request/user/id}">My Issues</a><br>
+   <a tal:attributes="href string:issue?:sort=-activity&:group=priority&:filter=status,assignedto&:columns=id,activity,title,creator,status&status=-1,1,2,3,4,5,6,7&assignedto=${request/user/id}">My Issues</a><br>
    <a tal:attributes="href string:user${request/user/id}">My Details</a><br>
    <a tal:attributes="href python:request.indexargs_href(request.url,
        {':action':'logout'})">Logout</a>
index a3004278cdaf120b106fd657d6e2ae5b6b8e307f..1191bbb117a1f78a98d1571ac3d31de78823b7f0 100644 (file)
@@ -66,6 +66,7 @@ table.form {
   font-weight: bold;
   color: #333388;
   text-align: right;
+  vertical-align: top;
 }
 
 .form-header th {
@@ -101,12 +102,14 @@ table.list th {
   color: #404070;
   background-color: #eeeeff;
   border-right: 1px solid #404070;
+  border-top: 1px solid #404070;
   vertical-align: top;
 }
 table.list th a:hover { color: #404070 }
 table.list th a:link { color: #404070 }
 table.list th a { color: #404070 }
 table.list th.group {
+  background-color: #f4f4ff;
   text-align: center;
 }