|
@@ -120,6 +120,23 @@ ${ commonheader(_('Quick Start'), "quick_start", user, "100px") | n,unicode }
|
|
|
<a href="${ url('useradmin.views.list_users') }" target="_blank">${ _('User Admin') } <img src="/useradmin/static/art/icon_useradmin_24.png"></a>
|
|
<a href="${ url('useradmin.views.list_users') }" target="_blank">${ _('User Admin') } <img src="/useradmin/static/art/icon_useradmin_24.png"></a>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+ <br/>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="widget-box">
|
|
|
|
|
+ <div class="widget-title">
|
|
|
|
|
+ <span class="icon">
|
|
|
|
|
+ <i class="icon-th-list"></i>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <h5>${ _('Anonymous usage analytics') }</h5>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="widget-content" style="padding-left: 14px">
|
|
|
|
|
+ <label class="checkbox">
|
|
|
|
|
+ <input id="analyticsBtn" type="checkbox" name="analytics" style="margin-right: 10px" title="${ ('Check to enable usage analytics') }">
|
|
|
|
|
+ ${ ('Help improve Hue with anonymous usage analytics.') } <a href="javascript:void(0)" style="display: inline" data-trigger="hover" data-toggle="popover" data-placement="right" rel="popover" title="${_('How does it work?') }" data-content="${ ('We are using Google Analytics to track how many times an application or specific section of an application is used, nothing more.') }" ><i class="icon-question-sign"></i></a>
|
|
|
|
|
+ </label>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div id="step4" class="stepDetails hide">
|
|
<div id="step4" class="stepDetails hide">
|
|
@@ -162,6 +179,8 @@ ${ commonheader(_('Quick Start'), "quick_start", user, "100px") | n,unicode }
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
$(document).ready(function(){
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
+ $("[rel='popover']").popover();
|
|
|
|
|
+
|
|
|
$(".installBtn").click(function() {
|
|
$(".installBtn").click(function() {
|
|
|
var button = $(this);
|
|
var button = $(this);
|
|
|
$(button).button('loading');
|
|
$(button).button('loading');
|
|
@@ -226,6 +245,12 @@ $(document).ready(function(){
|
|
|
routie("step" + nextStep);
|
|
routie("step" + nextStep);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ $("#analyticsBtn").click(function () {
|
|
|
|
|
+ $.post("${ url('about:collect_usage') }", function(data) {
|
|
|
|
|
+ $.jHueNotify.info(data);
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|
|
|
% endif
|
|
% endif
|