Update of /cvsroot/wtf-tracker/wtf/templates/pages/reports
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14612/templates/pages/reports
Modified Files:
activity.tmpl
Log Message:
Fixed a bug that would happen if there's no Activity Summary data at all to display
Index: activity.tmpl
===================================================================
RCS file: /cvsroot/wtf-tracker/wtf/templates/pages/reports/activity.tmpl,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** activity.tmpl 28 Nov 2006 18:50:13 -0000 1.2
--- activity.tmpl 3 Dec 2006 00:06:29 -0000 1.3
***************
*** 3,17 ****
<h2><tmpl_var name="title"></h2>
! <form method="get" action="<tmpl_var name="root_url">/view/reports/activity">
! <p>
! Month of: <select name="month" onchange="this.form.submit()">
! <tmpl_loop name="activity_months">
! <option
! <tmpl_if name="selected">selected="selected"</tmpl_if>
! value="<tmpl_var name="datestamp">"><tmpl_var name="name"></option>
! </tmpl_loop>
! </select>
! </p>
! </form>
<tmpl_if name="activities">
--- 3,19 ----
<h2><tmpl_var name="title"></h2>
! <tmpl_if name="activity_months">
! <form method="get" action="<tmpl_var name="root_url">/view/reports/activity">
! <p>
! Month of: <select name="month" onchange="this.form.submit()">
! <tmpl_loop name="activity_months">
! <option
! <tmpl_if name="selected">selected="selected"</tmpl_if>
! value="<tmpl_var name="datestamp">"><tmpl_var name="name"></option>
! </tmpl_loop>
! </select>
! </p>
! </form>
! </tmpl_if>
<tmpl_if name="activities">
***************
*** 50,53 ****
--- 52,57 ----
</tmpl_loop>
</table>
+ <tmpl_else>
+ <p>There is no activity summary data available.</p>
</tmpl_if>
|