Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | /stats_report now shows report list by default. Removed an unused variable. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
6e42254616a36491a7dbf8f7075af380 |
| User & Date: | stephan 2013-05-05 13:26:18.271 |
Context
|
2013-05-05
| ||
| 17:39 | Fix a mal-formed printf format in the vdiff page that was causing a segfault. ... (check-in: 0bdc61b4df user: drh tags: trunk) | |
| 13:26 | /stats_report now shows report list by default. Removed an unused variable. ... (check-in: 6e42254616 user: stephan tags: trunk) | |
| 13:19 | Added view=byuser param to /stats_report. ... (check-in: 08b9b5b0d9 user: stephan tags: trunk) | |
Changes
Changes to src/timeline.c.
| ︙ | ︙ | |||
2004 2005 2006 2007 2008 2009 2010 |
** Query Parameters:
**
** view=REPORT_NAME Valid values: bymonth, byyear, byuser
** user=NAME Restricts statistics to the given user
*/
void stats_report_page(){
HQuery url; /* URL for various branch links */
| | < | 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 |
** Query Parameters:
**
** view=REPORT_NAME Valid values: bymonth, byyear, byuser
** user=NAME Restricts statistics to the given user
*/
void stats_report_page(){
HQuery url; /* URL for various branch links */
char const * zView = P("view"); /* Which view/report to show. */
char const *zUserName = P("user");
url_initialize(&url, "stats_report");
/* We have to figure out which report to run before continuing so
that we can add (or not) the user= param to the buttons in a sane
manner.
*/
if(zUserName && *zUserName){
url_add_parameter(&url,"user", zUserName);
|
| ︙ | ︙ | |||
2029 2030 2031 2032 2033 2034 2035 |
}else if(0==fossil_strcmp(zView,"bymonth")){
stats_report_by_month_year(1, zUserName);
}else if(0==fossil_strcmp(zView,"byweek")){
@ TODO: by-week report.
}else if(0==fossil_strcmp(zView,"byuser")){
stats_report_by_user();
}else{
| | > > > > > | 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 |
}else if(0==fossil_strcmp(zView,"bymonth")){
stats_report_by_month_year(1, zUserName);
}else if(0==fossil_strcmp(zView,"byweek")){
@ TODO: by-week report.
}else if(0==fossil_strcmp(zView,"byuser")){
stats_report_by_user();
}else{
@ <h1>Select a report to show:</h1>
@ <ul>
@ <li><a href='?view=byyear'>Events by year</a></li>
@ <li><a href='?view=bymonth'>Events by month</a></li>
@ <li><a href='?view=byuser'>Events by user</a></li>
@ </ul>
}
style_footer();
}
|