diff --git a/modules/discopower/templates/disco.twig b/modules/discopower/templates/disco.twig
index e9c892d3fd9e7298e62881b2e7abd95ec657dac8..8e7082304c16f598e75ada0fc0fb0274ef95ee15 100644
--- a/modules/discopower/templates/disco.twig
+++ b/modules/discopower/templates/disco.twig
@@ -2,11 +2,11 @@
 {% extends "base.twig" %}
 
 {% block preload %}
-    <link href="{{ baseurlpath }}assets/css/style.css" rel="stylesheet" type="text/css" media="screen">
+    <link href="{{ baseurlpath }}style.css" rel="stylesheet" type="text/css" media="screen" />
 {% endblock %}
 {% block postload %}
-    <script type="text/javascript" src="{{ baseurlpath }}assets/js/jquery.livesearch.js"></script>
-    <script type="text/javascript" src="{{ baseurlpath }}assets/js/{{ score }}.js"></script>
+    <script type="text/javascript" src="{{ baseurlpath }}js/jquery.livesearch.js"></script>
+    <script type="text/javascript" src="{{ baseurlpath }}js/{{ score }}.js"></script>
     {{ search|raw }}
 {% endblock %}
 
@@ -15,43 +15,31 @@
     <div class="favourite">{{ '{disco:previous_auth}'|trans }}
         <strong>{{ faventry.translated|escape('html') }}</strong>
         <form id="idpselectform" method="get" action="{{ urlpattern }}">
-            <input type="hidden" name="entityID" value="{{ entityID|escape('html') }}">
-            <input type="hidden" name="return" value="{{ return|escape('html') }}">
-            <input type="hidden" name="returnIDParam" value="{{ returnIDParam|escape('html') }}">
-            <input type="hidden" name="idpentityid" value="{{ faventry.entityid|escape('html') }}">
-            <input type="submit" name="formsubmit" id="favouritesubmit" value="{{ '{disco:login_at}'|trans }} {{ faventry.translated|escape('html') }}" autofocus> 
+            <input type="hidden" name="entityID" value="{{ entityID|escape('html') }}" />
+            <input type="hidden" name="return" value="{{ return|escape('html') }}" />
+            <input type="hidden" name="returnIDParam" value="{{ returnIDParam|escape('html') }}" />
+            <input type="hidden" name="idpentityid" value="{{ faventry.entityid|escape('html') }}" />
+            <input type="submit" name="formsubmit" id="favouritesubmit" value="{{ '{disco:login_at}'|trans }} {{ faventry.translated|escape('html') }}" /> 
 	</form>
     </div>
     {% endif %}
 
     <div id="tabdiv">
         <ul class="tabset_tabs">
-        {% set i = 1 %}
         {% for tab, idps in idplist %}
             {% if idps is not empty %}
-            {% if i == 1 %}
-            <li class="tab-link current" data-tab="{{ tab }}"><a href="#{{ tab }}"><span>{{ tabNames[tab]|trans }}</span></a></li>
-            {% set i = 2 %}
-            {% else %}
-            <li class="tab-link" data-tab="{{ tab }}"><a href="#{{ tab }}"><span>{{ tabNames[tab]|trans }}</span></a></li>
-            {% endif %}
+            <li class="tab-link{% if loop.first %}current{% endif %}" data-tab="{{ tab }}"><a href="#{{ tab }}"><span>{{ tabNames[tab]|trans }}</span></a></li>
             {% endif %}
         {% endfor %}
         </ul>
 
-        {% set i = 1 %}
         {% for tab, idps in idplist %}
         {% if idps is not empty %}
-          {% if i == 1 %}
-          <div id="{{ tab }}" class="tabset_content current">
-          {% set i = 2 %}
-          {% else %}
-          <div id="{{ tab }}" class="tabset_content">
-          {% endif %}
+          <div id="{{ tab }}" class="tabset_content{% if loop.first %} current{% endif %}">
           <div class="inlinesearch">
               <p>Incremental search...</p>
               <form id="idpselectform" method="get">
-                  <input class="inlinesearch" type="text" value="" name="query_{{ tab }}" id="query_{{ tab }}">
+                  <input class="inlinesearch" type="text" value="" name="query_{{ tab }}" id="query_{{ tab }}" />
               </form>
           </div>
           <div class="metalist" id="list_{{ tab }}">
diff --git a/modules/oauth/templates/registry.list.twig b/modules/oauth/templates/registry.list.twig
index c479cc2022143e43b027897b6113b5d12507f863..86bc5a6792a26489a6d52ec13b65538ab764ca82 100644
--- a/modules/oauth/templates/registry.list.twig
+++ b/modules/oauth/templates/registry.list.twig
@@ -12,7 +12,7 @@
 
     <table class="metalist" style="width: 100%;">
     {% for key, entryc in entries.mine %}
-        {% if loop.index0  % 2 == 0 %}
+        {% if loop.index0 is even %}
             {% set class = 'even' %}
         {% else %}
             {% set class = 'odd' %}
@@ -36,7 +36,7 @@
 
     <table class="metalist" style="width: 100%">
     {% for key, entryc in entries.others %}
-        {% if loop.index0  % 2 == 0 %}
+        {% if loop.index0 is even %}
             {% set class = 'even' %}
         {% else %}
             {% set class = 'odd' %}
diff --git a/modules/statistics/templates/statistics.twig b/modules/statistics/templates/statistics.twig
index 822e587e7691a4801ee179334a40cbab47677b60..796e45310166cad01fc116f179c8665987da229a 100644
--- a/modules/statistics/templates/statistics.twig
+++ b/modules/statistics/templates/statistics.twig
@@ -154,7 +154,7 @@
                     <th class="category">Data range</th>
                 </tr>
                 {% for key, value in summaryDataset %}
-                {% if loop.index0  % 2 == 0 %}
+                {% if loop.index0 is even %}
                     {% set class = 'even' %}
                 {% else %}
                     {% set class = 'odd' %}
@@ -195,7 +195,7 @@
                 </tr>
                 {% for slot, dd in debugdata %}
 
-                {% if loop.index0 % 2 == 0 %}
+                {% if loop.index0 is even %}
                     {% set class = 'even' %}
                 {% else %}
                     {% set class = 'odd' %}