Skip to content
Snippets Groups Projects
Commit b3ee105e authored by Tim van Dijen's avatar Tim van Dijen
Browse files

reduce complexity

parent 3dfbb4b5
No related branches found
No related tags found
No related merge requests found
......@@ -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 }}">
......
......@@ -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' %}
......
......@@ -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' %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment