summaryrefslogtreecommitdiff
path: root/per-service
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-10-18 12:28:31 -0500
committerAndy Doan <andy.doan@linaro.org>2016-10-18 12:28:31 -0500
commitd9d2e7f77a5b209412da6f2f18cc561b7943fec6 (patch)
tree3aceea511bc5e5e6c5d0c1b376080471d1de0bd7 /per-service
parent25dbdcf24109674d863acda040a82047905a452d (diff)
downloadansible-playbooks-d9d2e7f77a5b209412da6f2f18cc561b7943fec6.tar.gz
cgit: minor header changes
Ensure we only show arrows for reposections and also include google analytics Change-Id: Ic4a964b43777e2b920363d12e696ef80dac6bff0
Diffstat (limited to 'per-service')
-rw-r--r--per-service/git-servers/roles/cgit/templates/header.html17
1 files changed, 14 insertions, 3 deletions
diff --git a/per-service/git-servers/roles/cgit/templates/header.html b/per-service/git-servers/roles/cgit/templates/header.html
index 2eb88fb..9ba8762 100644
--- a/per-service/git-servers/roles/cgit/templates/header.html
+++ b/per-service/git-servers/roles/cgit/templates/header.html
@@ -1,11 +1,11 @@
<style>
-tr.nohover {
+tr.reposection {
cursor: pointer;
}
-tr.nohover td:before {
+tr.reposection td:before {
content: "▼ ";
}
-tr.nohover.collapsed td:before {
+tr.reposection.collapsed td:before {
content: "▶ ";
}
</style>
@@ -34,8 +34,19 @@ document.addEventListener('DOMContentLoaded', function(event) {
toggle(this);
});
}
+
{% for section in collapsible_sections %}
toggle(document.getElementById("{{section}}"));
{% endfor %}
+
+{% if google_analytics %}
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-16756069-16', 'auto');
+ ga('send', 'pageview');
+{% endif %}
});
</script>