yay! the reporter spits out csv and excel now ... html tomorrow (with any luck)
[Evergreen.git] / Open-ILS / src / reporter / templates / dashboard.ttk
index e5a6f2b..8cbfc1d 100644 (file)
@@ -122,6 +122,7 @@ BLOCK show_reports;
                        INCLUDE html/cell content='Recurrence' nowrap='nowrap' col='lightgray' style='border:solid gray 1px;';
                END;
                FOR report = DBI.query(q);
+                       rid = report.id;
                        bg='lightblue';
                        IF loop.count % 2;
                                bg='white';
@@ -129,7 +130,7 @@ BLOCK show_reports;
                        WRAPPER html/row;
                                p = utils.JSON2perl( report.params );
                                INCLUDE html/cell content=(report.pub ? 'Y' : 'N') col=bg style='border:solid gray 1px;' align='center';
-                               INCLUDE html/cell content=p.reportname col=bg style='border:solid gray 1px;';
+                               INCLUDE html/cell content=link(content=p.reportname,href="stage3?id=$rid") col=bg style='border:solid gray 1px;';
                                INCLUDE html/cell content=report.create_date.chunk(10).0 col=bg style='border:solid gray 1px;';
                                INCLUDE html/cell content=report.runtime.chunk(10).0 col=bg style='border:solid gray 1px;';
                                INCLUDE html/cell content=report.recurrence col=bg style='border:solid gray 1px;';