Tracking: Add explanation text & links
This commit is contained in:
1 parent
d9c6cca370
commit
382f10557e
5 files changed
+38
-16
No files matched your search
@@ -178,9 +178,9 @@ class TrackingPlugin(octoprint.plugin.SettingsPlugin,
|
||||
else:
|
||||
pass
|
||||
|
||||
__plugin_name__ = "Usage Tracking"
|
||||
__plugin_name__ = "Anonymous Usage Tracking"
|
||||
__plugin_description__ = "Anonymous version and usage tracking, see homepage for details on what gets tracked"
|
||||
__plugin_homepage__ = "TODO"
|
||||
__plugin_homepage__ = "https://tracking.octoprint.org"
|
||||
__plugin_author__ = "Gina Häußge"
|
||||
|
||||
__plugin_implementation__ = TrackingPlugin()
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{% trans %}
|
||||
<p>
|
||||
Anonymous usage tracking provides valuable insights into how many instances running what versions of OctoPrint are out there,
|
||||
whether they are successfully completing print jobs and various other metrics.
|
||||
</p>
|
||||
<p>
|
||||
By enabling it you help to identify problems with new releases and release candidates early on, and to better
|
||||
tailor OctoPrint's future development to actual use.
|
||||
</p>
|
||||
{% endtrans %}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
<p>{% trans %}
|
||||
For details on what gets tracked, please refer to <a href="https://tracking.octoprint.org" target="_blank" rel="noopener noreferrer">tracking.octoprint.org</a>
|
||||
and also the <a href="https://tracking.octoprint.org/privacy" target="_blank" rel="noopener noreferrer">Privacy Policy at tracking.octoprint.org</a>.
|
||||
{% endtrans %}</p>
|
||||
@@ -1,7 +1,15 @@
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" data-bind="checked: settings.plugins.tracking.enabled"> {{ _('Enable anonymous usage tracking') }}
|
||||
</label>
|
||||
<h3>{{ _('Anonymous Usage Tracking') }}</h3>
|
||||
|
||||
{% include "snippets/plugins/tracking/trackingDescription.jinja2" %}
|
||||
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" data-bind="checked: settings.plugins.tracking.enabled"> {{ _('Enable anonymous usage tracking') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% include "snippets/plugins/tracking/trackingDetails.jinja2" %}
|
||||
@@ -1,19 +1,19 @@
|
||||
<h3>{{ _('Configure anonymous usage tracking') }}</h3>
|
||||
<h3>{{ _('Configure Anonymous Usage Tracking') }}</h3>
|
||||
|
||||
<p>{% trans %}
|
||||
TODO: Add explanation what this does and tracks
|
||||
{% endtrans %}</p>
|
||||
{% include "snippets/plugins/tracking/trackingDescription.jinja2" %}
|
||||
|
||||
{% include "snippets/plugins/tracking/trackingDetails.jinja2" %}
|
||||
|
||||
<div class="row-fluid">
|
||||
<a href="#" class="btn btn-danger span6" data-bind="click: function() { if(!setup()){disableTracking()}}, enable: !setup(), css: {disabled: setup()}">{{ _('Disable Usage Tracking') }}</a>
|
||||
<a href="#" class="btn btn-primary span6" data-bind="click: function() { if(!setup()){enableTracking()}}, enable: !setup(), css: {disabled: setup()}">{{ _('Enable Usage Tracking') }}</a>
|
||||
<a href="#" class="btn btn-danger span6" data-bind="click: function() { if(!setup()){disableTracking()}}, enable: !setup(), css: {disabled: setup()}">{{ _('Disable Anonymous Usage Tracking') }}</a>
|
||||
<a href="#" class="btn btn-primary span6" data-bind="click: function() { if(!setup()){enableTracking()}}, enable: !setup(), css: {disabled: setup()}">{{ _('Enable Anonymous Usage Tracking') }}</a>
|
||||
</div>
|
||||
|
||||
<div class="tracking_decision" style="display: none" data-bind="visible: setup()">
|
||||
<div class="text-center" style="display: none" data-bind="visible: decision()">{% trans %}
|
||||
Anonymous usage tracking is <strong class="text-success">enabled</strong>.
|
||||
Anonymous Usage Tracking is <strong class="text-success">enabled</strong>.
|
||||
{% endtrans %}</div>
|
||||
<div class="text-center" style="display: none" data-bind="visible: !decision()">{% trans %}
|
||||
Anonymous usage tracking is <strong class="text-danger">disabled</strong>.
|
||||
Anonymous Usage Tracking is <strong class="text-danger">disabled</strong>.
|
||||
{% endtrans %}</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user