Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Slight optimization: Make two tables "static" that can be. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
4440dae21237f861f08a5026c52a2ca4 |
User & Date: | jan.nijtmans 2015-06-02 09:47:08.187 |
Context
2015-06-04
| ||
17:32 | Fix very minor typo in comment. ... (check-in: 76412c68 user: andygoth tags: trunk) | |
2015-06-03
| ||
14:21 | Using relative paths with external tools may be problematic and is technically a breaking change. Use relative paths in paths used by fossil gdiff, as suggested by Ron W: http://lists.fossil-scm.org:8080/pipermail/fossil-users/2015-April/021015.html ... (check-in: 3ffb6a3e user: jan.nijtmans tags: exec-rel-paths) | |
2015-06-02
| ||
09:47 | Slight optimization: Make two tables "static" that can be. ... (check-in: 4440dae2 user: jan.nijtmans tags: trunk) | |
08:17 | Fix crash in /reports page, when compiling with recent gcc. (this is NOT an -O2 optimization bug!) ... (check-in: 8184f39d user: jan.nijtmans tags: trunk) | |
Changes
Changes to src/statrep.c.
︙ | ︙ | |||
671 672 673 674 675 676 677 | void stats_report_page(){ HQuery url; /* URL for various branch links */ 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 */ | | | | | 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 | void stats_report_page(){ HQuery url; /* URL for various branch links */ 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 */ const char *zVal; /* Value of view= query parameter */ int eType; /* Corresponding RPT_* define */ } aViewType[] = { { "File Changes","byfile", RPT_BYFILE }, { "By Month", "bymonth", RPT_BYMONTH }, { "By User", "byuser", RPT_BYUSER }, { "By Week", "byweek", RPT_BYWEEK }, { "By Weekday", "byweekday", RPT_BYWEEKDAY }, { "By Year", "byyear", RPT_BYYEAR }, }; static const char *const azType[] = { "a", "All Changes", "ci", "Check-ins", "g", "Tags", "e", "Tech Notes", "t", "Tickets", "w", "Wiki" }; login_check_credentials(); if( !g.perm.Read ){ login_needed(g.anon.Read); return; } zUserName = P("user"); if( zUserName==0 ) zUserName = P("u"); if( zUserName && zUserName[0]==0 ) zUserName = 0; if( zView==0 ){ zView = "byuser"; |
︙ | ︙ | |||
733 734 735 736 737 738 739 | ); } } style_submenu_element("Stats", "Stats", "%R/stat"); url_reset(&url); style_header("Activity Reports"); switch( eType ){ | | | 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 | ); } } style_submenu_element("Stats", "Stats", "%R/stat"); url_reset(&url); 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); break; case RPT_BYWEEK: stats_report_year_weeks(zUserName); |
︙ | ︙ |