Fossil SCM

Minor adjustments to drop-down menus on the /reports page.

drh 2015-05-19 10:20 UTC andygoth-user-reports
Commit 529492b9de7f70ac98a57a84747a21bea9d5853c
1 file changed +3 -3
+3 -3
--- src/statrep.c
+++ src/statrep.c
@@ -696,19 +696,19 @@
696696
const struct {
697697
const char *zName; /* Name of view= screen type */
698698
const char *zVal; /* Value of view= query parameter */
699699
int eType; /* Corresponding RPT_* define */
700700
} aViewType[] = {
701
- { "By File", "byfile", RPT_BYFILE },
701
+ { "File Changes","byfile", RPT_BYFILE },
702702
{ "By Month", "bymonth", RPT_BYMONTH },
703703
{ "By User", "byuser", RPT_BYUSER },
704704
{ "By Week", "byweek", RPT_BYWEEK },
705705
{ "By Weekday", "byweekday", RPT_BYWEEKDAY },
706706
{ "By Year", "byyear", RPT_BYYEAR },
707707
};
708708
const char *azType[] = {
709
- "a", "Any Type",
709
+ "a", "All Changes",
710710
"ci", "Check-ins",
711711
"g", "Tags",
712712
"e", "Tech Notes",
713713
"t", "Tickets",
714714
"w", "Wiki"
@@ -736,14 +736,14 @@
736736
const char *azView[16]; /* Drop-down menu of view types */
737737
for(i=0; i<ArraySize(aViewType); i++){
738738
azView[nView++] = aViewType[i].zVal;
739739
azView[nView++] = aViewType[i].zName;
740740
}
741
- style_submenu_multichoice("view", nView/2, azView, 0);
742741
if( eType!=RPT_BYFILE ){
743742
style_submenu_multichoice("type", ArraySize(azType)/2, azType, 0);
744743
}
744
+ style_submenu_multichoice("view", nView/2, azView, 0);
745745
if( eType!=RPT_BYUSER ){
746746
style_submenu_sql("u","User:",
747747
"SELECT '', 'All Users' UNION ALL "
748748
"SELECT x, x FROM ("
749749
" SELECT DISTINCT trim(coalesce(euser,user)) AS x FROM event %s"
750750
--- src/statrep.c
+++ src/statrep.c
@@ -696,19 +696,19 @@
696 const struct {
697 const char *zName; /* Name of view= screen type */
698 const char *zVal; /* Value of view= query parameter */
699 int eType; /* Corresponding RPT_* define */
700 } aViewType[] = {
701 { "By File", "byfile", RPT_BYFILE },
702 { "By Month", "bymonth", RPT_BYMONTH },
703 { "By User", "byuser", RPT_BYUSER },
704 { "By Week", "byweek", RPT_BYWEEK },
705 { "By Weekday", "byweekday", RPT_BYWEEKDAY },
706 { "By Year", "byyear", RPT_BYYEAR },
707 };
708 const char *azType[] = {
709 "a", "Any Type",
710 "ci", "Check-ins",
711 "g", "Tags",
712 "e", "Tech Notes",
713 "t", "Tickets",
714 "w", "Wiki"
@@ -736,14 +736,14 @@
736 const char *azView[16]; /* Drop-down menu of view types */
737 for(i=0; i<ArraySize(aViewType); i++){
738 azView[nView++] = aViewType[i].zVal;
739 azView[nView++] = aViewType[i].zName;
740 }
741 style_submenu_multichoice("view", nView/2, azView, 0);
742 if( eType!=RPT_BYFILE ){
743 style_submenu_multichoice("type", ArraySize(azType)/2, azType, 0);
744 }
 
745 if( eType!=RPT_BYUSER ){
746 style_submenu_sql("u","User:",
747 "SELECT '', 'All Users' UNION ALL "
748 "SELECT x, x FROM ("
749 " SELECT DISTINCT trim(coalesce(euser,user)) AS x FROM event %s"
750
--- src/statrep.c
+++ src/statrep.c
@@ -696,19 +696,19 @@
696 const struct {
697 const char *zName; /* Name of view= screen type */
698 const char *zVal; /* Value of view= query parameter */
699 int eType; /* Corresponding RPT_* define */
700 } aViewType[] = {
701 { "File Changes","byfile", RPT_BYFILE },
702 { "By Month", "bymonth", RPT_BYMONTH },
703 { "By User", "byuser", RPT_BYUSER },
704 { "By Week", "byweek", RPT_BYWEEK },
705 { "By Weekday", "byweekday", RPT_BYWEEKDAY },
706 { "By Year", "byyear", RPT_BYYEAR },
707 };
708 const char *azType[] = {
709 "a", "All Changes",
710 "ci", "Check-ins",
711 "g", "Tags",
712 "e", "Tech Notes",
713 "t", "Tickets",
714 "w", "Wiki"
@@ -736,14 +736,14 @@
736 const char *azView[16]; /* Drop-down menu of view types */
737 for(i=0; i<ArraySize(aViewType); i++){
738 azView[nView++] = aViewType[i].zVal;
739 azView[nView++] = aViewType[i].zName;
740 }
 
741 if( eType!=RPT_BYFILE ){
742 style_submenu_multichoice("type", ArraySize(azType)/2, azType, 0);
743 }
744 style_submenu_multichoice("view", nView/2, azView, 0);
745 if( eType!=RPT_BYUSER ){
746 style_submenu_sql("u","User:",
747 "SELECT '', 'All Users' UNION ALL "
748 "SELECT x, x FROM ("
749 " SELECT DISTINCT trim(coalesce(euser,user)) AS x FROM event %s"
750

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button