diff --git a/piwik/indico_piwik/templates/statistics.html b/piwik/indico_piwik/templates/statistics.html new file mode 100644 index 0000000..09babfb --- /dev/null +++ b/piwik/indico_piwik/templates/statistics.html @@ -0,0 +1,238 @@ +<% + # We set these up here to pass to JS also + strModifQuery = _('Modify Query') + strHideQuery = _('Hide Modify Query') + strNoGraphData = _('No graph data was returned by the server, please alter the date range.') +%> + +
+ +
+
+ ${_('Selection Information')} (${report['startDate']} ${('to')} ${report['endDate']}) + + ${strModifQuery} + +
+
+
+ +
+
+ ${_('View statistics between these dates')}: + + ${_('to')} + + + +
+
+ % if report['contributions']: + ${_('Choose Conference / Contribution')}: + + % else: + + % endif +
+
+ +
+
+
+
+
+ +
+ + +
+
+ ${_('Visitor Hit Rates')} + + ${_('(Info)')} + +
+
+
+
+
+
+
+ +
+ + +
+
+ ${_('Overall Statistics')} +
+
+
+ ${_('Visitor Metrics')}: +
+ + + + + + + + + + + + + + + + + +
${_('Visitors')}:${report['metrics']['visits']}
${_('Unique Visitors')}:${report['metrics']['uniqueVisits']}
${_('Returning Visitors')}:${(report['metrics']['visits'] - report['metrics']['uniqueVisits'])}
${_('Avg. Duration')}:${report['metrics']['visitLength']}
+
+ ${_('Peak Statistics')}: +
+ + + + + + + + + +
${_('Peak Date')}:${report['metrics']['peakDate']['date']}
${_('Peak Users')}:${report['metrics']['peakDate']['users']}
+
+
+ + +
+
+ ${_('Visitors Geography')} +
+
+ ${_('Visitor Origins.')} +
+
+ +
+ +
+ + +
+
+ ${_('Top Referrers')} +
+
+
+ ${_('Traffic Inbound Top 10')}: +
+ + + + + + + + % for referrer in report['metrics']['referrers']: + + + + + + + % endfor +
${_('Referrer')}${_('Visits')}${_('Actions')}${_('Visit Length')}
${referrer['label']}${referrer['nb_visits']}${referrer['nb_actions']}${referrer['sum_visit_length']}
+
+
+ + +
+
+ ${_('User Systems')} +
+
+ ${_('Visitor Systems.')} +
+
+ +
+ +
+ + +
+
+ ${_('Material Downloads')} +
+
+
+
+
+ ${_('Downloads for')}: + + ${_('No Material Selected.')} + + (${_('Total: ')}0) +
+
+
+ ${_('No Material Selected.')} +
+
+
+
+
+ +
+ +
+ ${_('This report was generated at: %s') % formatDateTime(report['dateGenerated'], format='long')} +
+ +
+ ${_("Please note, statistics have only been collected since the plugin's " \ + "introduction. This means that there is no data present for the earlier " \ + "period of some events, this does not necessarily mean that there was no "\ + "activity in the event at that time.")} +
+
+ + +
+
+

+ ${_("The server did not respond in a timely manner, " \ + "it may be the case that the date-range is too large.")} +

+
+
+ +