add "Export to JSON" to app statistics (bug 755476)
This commit is contained in:
Родитель
aa82f5a90b
Коммит
ef1f3b71d8
|
@ -1,6 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{ _('Add-on Statistics') }}<a id="export_data" href="">
|
||||
{{ _('Export as CSV') }}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Add-on Statistics') %}
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{% extends 'stats/stats.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>
|
||||
{{ title }}
|
||||
<a id="export_data_csv" href="">{{ _('Export as CSV') }}</a>
|
||||
<a id="export_data_json" href="">{{ _('Export as JSON') }}</a>
|
||||
</h2>
|
||||
{% endblock %}
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Add-ons Created by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Add-ons Created by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Add-ons Downloaded by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Add-ons Downloaded by Date') %}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Add-ons in Use by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Add-ons in Use by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Add-ons in Use by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Add-ons Updated by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Add-ons Updated by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Application usage by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Application usage by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Collections Created by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Collections Created by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Contributions by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Contributions by Date') %}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Downloads by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Downloaded by Date') %}
|
||||
|
||||
{% block stats_note_link %}
|
||||
<a href="#" id="stats-note-link">{{ _('How are downloads counted?') }}</a>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('User languages by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('User languages by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Platform usage by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Platform usage by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Ratings by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Ratings by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Reviews Created by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Reviews Created by Date') %}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Download sources by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Download sources by Date') %}
|
||||
|
||||
{% block stats_note_link %}
|
||||
<a href="#" id="stats-note-link">{{ _('About tracking external sources...') }}</a>
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Add-on Status by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Add-on Status by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Subscribers by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Subscribers by Date') %}
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Daily Users by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Daily Users by Date') %}
|
||||
|
||||
{% block stats_note_link %}
|
||||
<a href="#" id="stats-note-link">{{ _('What are daily users?') }}</a>
|
||||
|
@ -18,4 +16,4 @@
|
|||
and locale.
|
||||
</p>
|
||||
{% endtrans %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('User Signups by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('User Signups by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "stats/stats.html" %}
|
||||
{% extends 'stats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Application versions by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Application versions by Date') %}
|
||||
|
|
|
@ -300,7 +300,7 @@ aside.highlight {
|
|||
}
|
||||
}
|
||||
|
||||
#export_data {
|
||||
#export_data_csv, #export_data_json {
|
||||
font: 13px "helvetica neue",arial,helvetica,sans-serif;
|
||||
margin-left:1em;
|
||||
}
|
||||
|
|
|
@ -188,7 +188,7 @@ aside.highlight {
|
|||
}
|
||||
}
|
||||
|
||||
#export_data {
|
||||
#export_data_csv, #export_data_json {
|
||||
font: 13px "helvetica neue",arial,helvetica,sans-serif;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
|
|
@ -66,8 +66,9 @@
|
|||
_.extend(view, newView);
|
||||
var metric = view.metric,
|
||||
range = normalizeRange(view.range),
|
||||
url = baseURL + ([metric,'day',range.start.pretty(''),range.end.pretty('')]).join('-') + '.csv';
|
||||
$('#export_data').attr('href', url);
|
||||
url = baseURL + ([metric,'day',range.start.pretty(''),range.end.pretty('')]).join('-');
|
||||
$('#export_data_csv').attr('href', url + '.csv');
|
||||
$('#export_data_json').attr('href', url + '.json');
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
|
@ -66,8 +66,9 @@
|
|||
_.extend(view, newView);
|
||||
var metric = view.metric,
|
||||
range = normalizeRange(view.range),
|
||||
url = baseURL + ([metric,'day',range.start.pretty(''),range.end.pretty('')]).join('-') + '.csv';
|
||||
$('#export_data').attr('href', url);
|
||||
url = baseURL + ([metric,'day',range.start.pretty(''),range.end.pretty('')]).join('-');
|
||||
$('#export_data_csv').attr('href', url + '.csv');
|
||||
$('#export_data_json').attr('href', url + '.json');
|
||||
});
|
||||
})();
|
||||
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{% extends 'appstats/stats.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>
|
||||
{{ title }}
|
||||
<a id="export_data_csv" href="">{{ _('Export as CSV') }}</a>
|
||||
<a id="export_data_json" href="">{{ _('Export as JSON') }}</a>
|
||||
</h2>
|
||||
{% endblock %}
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "appstats/stats.html" %}
|
||||
{% extends 'appstats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Installs by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Installs by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "appstats/reports/sales.html" %}
|
||||
{% extends 'appstats/reports/sales.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Refunds by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Refunds by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "appstats/reports/sales.html" %}
|
||||
{% extends 'appstats/reports/sales.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Revenue by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Revenue by Date') %}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends "appstats/stats.html" %}
|
||||
{% extends 'appstats/report.html' %}
|
||||
|
||||
{% block sales_select %}
|
||||
class="selected"
|
||||
|
@ -22,6 +22,4 @@
|
|||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Sales by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Sales by Date') %}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
{% extends "appstats/stats.html" %}
|
||||
{% extends 'appstats/report.html' %}
|
||||
|
||||
{% block csvtitle %}
|
||||
<h2>{{_('Usage by Date')}}<a id="export_data" href=''>{{_('Export as CSV')}}</a></h2>
|
||||
{% endblock %}
|
||||
{% set title = _('Usage by Date') %}
|
||||
|
|
Загрузка…
Ссылка в новой задаче