Code

cleanups to classic templates
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 24 Sep 2002 02:00:39 +0000 (02:00 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Tue, 24 Sep 2002 02:00:39 +0000 (02:00 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1221 57a73879-2fb5-44c3-a270-3262357dd7e2

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

index d64492ab8417377b5e77e523b621444a2367fe3d..03fe21bbaf55ffadab473eb2a04d541a8cddf08f 100644 (file)
@@ -6,6 +6,6 @@
 -->
 <span tal:replace="structure python:db.issue.renderWith('index',
     sort=('-', 'activity'), group=('+', 'priority'), filter=['status'],
-    columns=['id','activity','topic','title','creator','assignedto', 'status'],
+    columns=['id','activity','title','creator','assignedto', 'status'],
     filterspec={'status':['-1','1','2','3','4','5','6','7']})" />
 
index d6cce5335b39410f7ea68ab68fb3abca7e09007f..dda9b9f78125274f34861fb29a28bdffd2d5af1d 100644 (file)
@@ -25,7 +25,7 @@ You are not allowed to view this page.
   <tr tal:attributes="class python:['normal', 'alt'][repeat['i'].even()]">
    <td tal:condition="request/show/priority" tal:content="i/priority"></td>
    <td tal:condition="request/show/id" tal:content="i/id"></td>
-   <td tal:condition="request/show/activity"
+   <td nowrap tal:condition="request/show/activity"
        tal:content="i/activity/reldate"></td>
    <td tal:condition="request/show/topic" tal:content="i/topic"></td>
    <td tal:condition="request/show/title">
index ddf1fb917e1115581df2e192988902fd9dee723a..1838c2923db100fca556daeed14f514301408faf 100644 (file)
@@ -7,7 +7,7 @@ You are not allowed to view this page.
       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
 
 <input type="hidden" name=":template" value="item">
-<input type="hidden" name=":required" value="title">
+<input type="hidden" name=":required" value="title,priority">
 
 <table class="form">
 <tr>
index e5c0f34bf1372e0c76cf03b1b72e794fdfe9c365..9ce95e2734f928097613151197d672f5d1128a72 100644 (file)
@@ -33,9 +33,9 @@
        tal:condition="python:request.user.hasPermission('View', 'issue')">
    <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,topic,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,topic,title,creator,assignedto,status&status=-1,1,2,3,4,5,6,7">All Issues</a><br>
+      href="issue?:template=item">Create New<br></a>
+   <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>
+   <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>
    <a href="issue?:template=search">Search Issues</a>
   </p>
 
@@ -66,7 +66,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,topic,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: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('',
        {':action':'logout'})">Logout</a>
index 9b1dc12f6d4f0648cb357037f368d1a19005a8d0..ad8fa1d3df15163ea3b3892e3f5917289fd9f34c 100644 (file)
@@ -3,10 +3,22 @@ body.body {
   font-family: sans-serif, Arial, Helvetica;
   color: #333333;
 }
-a:hover { text-decoration: underline; }
-a:link { text-decoration: none; }
-a { text-decoration: none; }
 
+/* generic hyperlink style */
+a[href]:hover {
+ text-decoration: underline;
+ color: blue;
+}
+a[href]:link {
+ text-decoration: none;
+ color: blue;
+}
+a[href] {
+ text-decoration: none;
+ color: blue;
+}
+
+/* main page body container */
 table.body {
   border: 0;
   padding: 0;
@@ -49,6 +61,7 @@ td.content {
   padding: 1px;
 }
 
+/* feedback - ok and error messages */
 p.ok-message {
   background-color: #22bb22;
   padding: 5 5 5 5;