whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch master updated: Output sum of hits per app header
Date Mon, 06 May 2019 00:24:40 GMT
This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
     new 6f207ce  Output sum of hits per app header
6f207ce is described below

commit 6f207ce18cfe5536fdff9ee6812a26985636aca0
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Sun May 5 20:24:32 2019 -0400

    Output sum of hits per app header
 www/members/logs.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/members/logs.cgi b/www/members/logs.cgi
index 3771407..aa5768d 100755
--- a/www/members/logs.cgi
+++ b/www/members/logs.cgi
@@ -60,7 +60,6 @@ end
 # Emit table of interesting access logs (optional, with ?access)
 def display_access()
   apps, misses = LogParser.get_access_reports()
   _p do
     _ 'This only includes a subset of possibly interesting access log entries from the current
day, roughly categorized by major application (board, roster, etc.)'
     _a 'See the full server logs directory.', href: '/members/log'
@@ -70,6 +69,7 @@ def display_access()
   _div.panel_group id: listid, role: 'tablist', aria_multiselectable: 'true' do
     apps.each_with_index do |(name, data), n|
       itemtitle = LogParser::WHIMSY_APPS[name] ? LogParser::WHIMSY_APPS[name] : 'All Other
+      itemtitle << " (#{data['remote_user'].sum{|k,v| v}})" if data['remote_user']
       _whimsy_accordion_item(listid: listid, itemid: name, itemtitle: "#{itemtitle}", n:
n, itemclass: 'panel-info') do
         _table.table.table_hover.table_striped do
           _thead_ do

View raw message