From cd01eb433a23465c88b53b80ce144f87cd539098 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Mon, 27 Feb 2017 22:16:16 +0100 Subject: [PATCH] Use hyperlinks instead of onclick-events to link to positions. Disabled color-change and text-decoration to keep a clean and consisten look. --- tsstats/templates/index.jinja2 | 10 +++++++++- tsstats/templates/stats.jinja2 | 6 +++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tsstats/templates/index.jinja2 b/tsstats/templates/index.jinja2 index fee98c4..f98bbdf 100644 --- a/tsstats/templates/index.jinja2 +++ b/tsstats/templates/index.jinja2 @@ -11,6 +11,12 @@ body { padding-top: 50px; } + a { + color: inherit; + } + a:hover { + text-decoration: none; + } @media screen and (max-width: 767px) { .hint--medium--xs:after { white-space: normal; @@ -36,7 +42,9 @@ {% endif %} {% for server in servers %} -

Server {{ server.sid }}

+

+ Server {{ server.sid }} +

{% include 'stats.jinja2' %} {% endfor %} Generated by TeamspeakStats at {{ creation_time|frmttime }} diff --git a/tsstats/templates/stats.jinja2 b/tsstats/templates/stats.jinja2 index c64091f..cb1a470 100644 --- a/tsstats/templates/stats.jinja2 +++ b/tsstats/templates/stats.jinja2 @@ -8,12 +8,12 @@ ] %} {% if clients|length > 0 %} {% set headline_id = [server.sid, headline|lower|replace(' ', '_')]|join('.') %} -

{{ headline }}

+

{{ headline }}