Fossil

Check-in [bcee2d48ed]
Login

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

Overview
Comment:Add a field to the reports to directly type a user name. Hide this field on the user report.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | andygoth-user-reports
Files: files | file ages | folders
SHA1: bcee2d48ed0a5e87d361fc4294f66cb8b77daa7e
User & Date: andygoth 2015-05-18 02:42:36.241
Context
2015-05-18
03:04
Update changelog for adding user field. ... (check-in: ed60255709 user: andygoth tags: andygoth-user-reports)
02:42
Add a field to the reports to directly type a user name. Hide this field on the user report. ... (check-in: bcee2d48ed user: andygoth tags: andygoth-user-reports)
02:37
Make the (Remove User Flag) link work even if the "u" query parameter was used instead of "user". ... (check-in: a4655a1dab user: andygoth tags: andygoth-user-reports)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/statrep.c.
766
767
768
769
770
771
772


773
774
775
776

777
778
779
780
781
782
783
    zUserName = P("u");
    haveU = !!zUserName;
  }
  if(zUserName && !*zUserName){
    zUserName = NULL;
  }
  url_initialize(&url, "reports");


  if(zUserName){
    url_add_parameter(&url, haveU ? "u" : "user", zUserName);
    statrep_submenu(&url, "(Remove User Flag)", "view", zView,
                    haveU ? "u" : "user");

  }
  statrep_submenu(&url, "By Year", "view", "byyear", 0);
  statrep_submenu(&url, "By Month", "view", "bymonth", 0);
  statrep_submenu(&url, "By Week", "view", "byweek", 0);
  statrep_submenu(&url, "By Weekday", "view", "byweekday", 0);
  statrep_submenu(&url, "By User", "view", "byuser", "user");
  statrep_submenu(&url, "By File", "view", "byfile", "file");







>
>
|
|
|
|
>







766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
    zUserName = P("u");
    haveU = !!zUserName;
  }
  if(zUserName && !*zUserName){
    zUserName = NULL;
  }
  url_initialize(&url, "reports");
  if(0!=fossil_strcmp(zView,"byuser")){
    style_submenu_entry(haveU ? "u" : "user", "User:", 12, 0);
    if(zUserName){
      url_add_parameter(&url, haveU ? "u" : "user", zUserName);
      statrep_submenu(&url, "(Remove User Flag)", "view", zView,
                      haveU ? "u" : "user");
    }
  }
  statrep_submenu(&url, "By Year", "view", "byyear", 0);
  statrep_submenu(&url, "By Month", "view", "bymonth", 0);
  statrep_submenu(&url, "By Week", "view", "byweek", 0);
  statrep_submenu(&url, "By Weekday", "view", "byweekday", 0);
  statrep_submenu(&url, "By User", "view", "byuser", "user");
  statrep_submenu(&url, "By File", "view", "byfile", "file");