Skip to content
Snippets Groups Projects
Verified Commit e0794ec8 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Remove use of newtab

parent 712f2006
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,6 @@
{% endif %}
{% endmacro %}
{% macro newtab(string, force=False) %}
{% if ( string.startswith('http://') or
string.startswith('https://')) %}
target="_blank"
{% endif %}
{% endmacro %}
<!DOCTYPE html>
<html lang="{{ DEFAULT_LANG }}">
......@@ -60,12 +53,9 @@
<ul class="nav navbar-nav navbar-right" id="menuitem-list">
{% for title,url in MENUITEMS %}
{% if url is string %}
{% if title != 'Search' %}
<li {% if output_file == url %}class="active"{% endif %}>
<a href="{{ genurl( url ) }}" {{ newtab(url) }}>{{ title }}</a>
</li>
{% endif %}
<li {% if output_file == url %}class="active"{% endif %}>
<a href="{{ genurl( url ) }}" >{{ title }}</a>
</li>
{% elif url is iterable %}
<li class="btn-group
{%- for title,item_url in url -%}
......@@ -80,7 +70,7 @@
<ul class="dropdown-menu" role="menu">
{% for title,item_url in url %}
<li {% if item_url == output_url %}class="active"{% endif %}>
<a href="{{ genurl( item_url ) }}" {{ newtab(item_url) }}>{{ title }}</a>
<a href="{{ genurl( item_url ) }}">{{ title }}</a>
</li>
{% endfor %}
</ul>
......@@ -105,7 +95,7 @@
<!-- Template Content footer -->
{% block template_content_footer %}{% endblock %}
<!-- Sponsoren Footer -->
<!-- Sponsoren-Footer -->
<footer class="page-footer" id="sponsoren-footer">
<div class="container">
<div class="row">
......@@ -147,7 +137,6 @@
<script src="/{{ THEME_STATIC_DIR }}/js/jquery.min.js"></script>
<script src="/{{ THEME_STATIC_DIR }}/js/bootstrap.min.js"></script>
</body>
</html>
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