
const CGI = api.cgi
//const R = CGI.request
//const F = CGI.getFossilInstance()
const out = api.io.output

const util = import(Fossil.file.dirPart(__FILE)+'reports-util.fossi1ish')
assert 'object' === typename util
util.generateSubmenu()

const reportLink = proc(name, label){
    $out "<li><a href='" CGI.cgiRoot name "'>" label {</a></li>}
}

$out {<div>Overviews of repository activity
    can be seen in following reports:
    <ul>}
reportLink({reports/by-month}, {By Month})
reportLink({reports/by-year}, {By Year})
reportLink({reports/by-week}, {By Calendar Week})
reportLink({reports/by-user}, {By User})
reportLink({timeline}, {Timeline})
$out {</ul></div>}
