Fossil

Check-in [f1a66a6c26]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added a "remove user flag" option to /stats_report for reports which accept (but do not require) the user flag. e.g. switch from by-month-for-user to by-month with 1 click.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: f1a66a6c26a3be87f92dd7220252956123caf935
User & Date: stephan 2013-05-06 20:30:23.680
Context
2013-05-06
20:44
/stats_report byuser now uses %h instead of %s to render the user name. ... (check-in: 71d3756977 user: stephan tags: trunk)
20:30
Added a "remove user flag" option to /stats_report for reports which accept (but do not require) the user flag. e.g. switch from by-month-for-user to by-month with 1 click. ... (check-in: f1a66a6c26 user: stephan tags: trunk)
13:24
Wrap over-length lines in the www/settings.wiki documentation page. ... (check-in: abe1030ca8 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/timeline.c.
2012
2013
2014
2015
2016
2017
2018

2019
2020
2021
2022
2023
2024
2025

2026
2027
2028
2029
2030
2031
2032
**   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);

  }
  timeline_submenu(&url, "By Year", "view", "byyear", 0);
  timeline_submenu(&url, "By Month", "view", "bymonth", 0);
  timeline_submenu(&url, "By User", "view", "byuser", "user");
  url_reset(&url);
  style_header("Activity Reports");
  if(0==fossil_strcmp(zView,"byyear")){







>

|
<
<
<


>







2012
2013
2014
2015
2016
2017
2018
2019
2020
2021



2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
**   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");
  char const * zRemoveUser = 0;
  url_initialize(&url, "stats_report");




  if(zUserName && *zUserName){
    url_add_parameter(&url,"user", zUserName);
    timeline_submenu(&url, "(Remove User Flag)", "view", zView, "user");
  }
  timeline_submenu(&url, "By Year", "view", "byyear", 0);
  timeline_submenu(&url, "By Month", "view", "bymonth", 0);
  timeline_submenu(&url, "By User", "view", "byuser", "user");
  url_reset(&url);
  style_header("Activity Reports");
  if(0==fossil_strcmp(zView,"byyear")){