Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Removed unneeded variable |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | pending-review |
| Files: | files | file ages | folders |
| SHA1: |
2c5a5e82be8c30d768da35e2a5ad641b |
| User & Date: | baruch 2015-12-22 14:44:09.519 |
| Original Comment: | Removed uneeded variable |
Context
|
2015-12-23
| ||
| 01:36 | Improvements to activity reports. ... (check-in: c94dc804c4 user: drh tags: trunk) | |
|
2015-12-22
| ||
| 14:44 | Removed unneeded variable ... (Closed-Leaf check-in: 2c5a5e82be user: baruch tags: pending-review) | |
|
2015-12-21
| ||
| 20:17 | Fix so that when showing stats for single user, that user's name is selected in the box ... (check-in: f6844f3a0a user: baruch tags: pending-review) | |
Changes
Changes to src/statrep.c.
| ︙ | ︙ | |||
666 667 668 669 670 671 672 |
**
** view=byweek:
**
** y=YYYY The year to report (default is the server's
** current year).
*/
void stats_report_page(){
| < | 666 667 668 669 670 671 672 673 674 675 676 677 678 679 |
**
** view=byweek:
**
** y=YYYY The year to report (default is the server's
** current year).
*/
void stats_report_page(){
const char *zView = P("view"); /* Which view/report to show. */
int eType = RPT_NONE; /* Numeric code for view/report to show */
int i; /* Loop counter */
const char *zUserName; /* Name of user */
const char *azView[16]; /* Drop-down menu of view types */
static const struct {
const char *zName; /* Name of view= screen type */
|
| ︙ | ︙ | |||
708 709 710 711 712 713 714 |
}
for(i=0; i<ArraySize(aViewType); i++){
if( fossil_strcmp(zView, aViewType[i].zVal)==0 ){
eType = aViewType[i].eType;
break;
}
}
| < < | 707 708 709 710 711 712 713 714 715 716 717 718 719 720 |
}
for(i=0; i<ArraySize(aViewType); i++){
if( fossil_strcmp(zView, aViewType[i].zVal)==0 ){
eType = aViewType[i].eType;
break;
}
}
if( eType!=RPT_NONE ){
int nView = 0; /* Slots used in azView[] */
for(i=0; i<ArraySize(aViewType); i++){
azView[nView++] = aViewType[i].zVal;
azView[nView++] = aViewType[i].zName;
}
if( eType!=RPT_BYFILE ){
|
| ︙ | ︙ | |||
731 732 733 734 735 736 737 |
" SELECT DISTINCT trim(coalesce(euser,user)) AS x FROM event %s"
" ORDER BY 1 COLLATE nocase) WHERE x!=''",
eType==RPT_BYFILE ? "WHERE type='ci'" : ""
);
}
}
style_submenu_element("Stats", "Stats", "%R/stat");
| < | 728 729 730 731 732 733 734 735 736 737 738 739 740 741 |
" SELECT DISTINCT trim(coalesce(euser,user)) AS x FROM event %s"
" ORDER BY 1 COLLATE nocase) WHERE x!=''",
eType==RPT_BYFILE ? "WHERE type='ci'" : ""
);
}
}
style_submenu_element("Stats", "Stats", "%R/stat");
style_header("Activity Reports");
switch( eType ){
case RPT_BYYEAR:
stats_report_by_month_year(0, 0, zUserName);
break;
case RPT_BYMONTH:
stats_report_by_month_year(1, 0, zUserName);
|
| ︙ | ︙ |