Edit detail for IssueBrowser1 revision 1 of 1

1
Editor: simon
Time: 2005/01/30 14:12:53 GMT+0
Note:

changed:
-
<!-- simple fixed-size category boxes --> 
<a name="categories" />
<dtml-let 
    items=issue_categories
    barearg="'bare' in QUERY_STRING and '&bare=%s'%REQUEST.get('bare') or ''"
    href="lambda x:'%s?category=%s&sort_on=status_index%s'%(URL,urlquote(x),barearg)"
    num="_.len(issue_categories)"
    cols="['user','admin','general','site','non-zwiki']"
    itemsbeginningwith="lambda x:[i for i in items if i.startswith(x)]"
    colvalues="[itemsbeginningwith(i) for i in cols]"
    longest="max([_.len(col) for col in colvalues])"
    >
<table width="100%" border=0>  
  <tr>
    <td colspan="<dtml-var "_.len(cols)">" align="center">
      <em>
issue categories sized and coloured according to open issues
(<dtml-if barearg>
<a href="&dtml-URL;">with skin</a>,
<dtml-else>
<a href="<dtml-var "URL+'?bare=1'">">bare</a>,
</dtml-if>
<a href="&dtml-trackerUrl;">issue tracker</a>,
<a href="&dtml-filterUrl;">filter issues</a>
<dtml-if "REQUEST.get('category','')">
</dtml-if>
)
      </em>
    </td>
  </tr>
  <dtml-in "_.range(longest)" prefix=row>
    <tr height="<dtml-var "'%s%%'%(100/(longest))">">
      <dtml-in "_.range(_.len(cols))" prefix=col>
        <dtml-let 
          row=row_sequence_item
          col=col_sequence_item
          >
          <dtml-if "row < _.len(colvalues[col])">
          <dtml-let
            item="colvalues[col][row]"
            open="pages(isIssue=1,category=item,status=['open','pending'])"
            all="pages(isIssue=1,category=item)"
            issues="open or all"
            highestseverity="min([999]+[i.severity_index for i in issues]) #XXX my severities are backwards"
            firsthighissue="([i for i in issues if i.severity_index==highestseverity]+[None])[0]"
            colour="firsthighissue and firsthighissue.issueColour or '#aaffaa'"
            bold="item == REQUEST.get('category','')"
            >
            <td bgcolor="&dtml-colour;">
              <dtml-var "bold and '<b>' or ''">
              <a href="<dtml-var "href(item)">"
              >&dtml-item;
              <dtml-var "_.len(open)">
            </a>
            <dtml-var "bold and '</b>' or ''">
            </td>
          </dtml-let>
          <dtml-else>
            <td>&nbsp;</td>
          </dtml-if>
        </dtml-let>
      </dtml-in>
    </tr>
  </dtml-in>
</table>
</dtml-let>


issue categories sized and coloured according to open issues (bare, issue tracker, filter issues )
user-browsing 30 admin-installing 0 general-i18n 21 site-zwiki.org 17  
user-editing 39 admin-configuring 8 general-plone 45 site-plone.zwiki.org 0  
user-editing-stx 18 admin-customizingskins 6 general-skins 10 site-zopewiki.org 0  
user-editing-rst 4 admin-defaultcontent 1 general-docs 4    
user-editing-moin 2   general 42    
user-editing-wwml 1        
user-editing-plaintext 0        
user-editing-html 2        
user-editing-epoz 6        
user-editing-extedit 1        
user-editing-stxlatex 0        
user-pagehierarchy 3        
user-rating 0        
user-mail 27        
user-issuetracking 21        
user-dtmlscripting 2        
user-fittests 0        
user-purplenumbers 0