Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pelican-theme-teckids
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Teckids
Team PR
pelican-theme-teckids
Commits
e0794ec8
Verified
Commit
e0794ec8
authored
4 years ago
by
Nik | Klampfradler
Browse files
Options
Downloads
Patches
Plain Diff
Remove use of newtab
parent
712f2006
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/base.html
+5
-16
5 additions, 16 deletions
templates/base.html
with
5 additions
and
16 deletions
templates/base.html
+
5
−
16
View file @
e0794ec8
...
@@ -8,13 +8,6 @@
...
@@ -8,13 +8,6 @@
{% endif %}
{% endif %}
{% endmacro %}
{% endmacro %}
{% macro newtab(string, force=False) %}
{% if ( string.startswith('http://') or
string.startswith('https://')) %}
target="_blank"
{% endif %}
{% endmacro %}
<!DOCTYPE html>
<!DOCTYPE html>
<html
lang=
"{{ DEFAULT_LANG }}"
>
<html
lang=
"{{ DEFAULT_LANG }}"
>
...
@@ -60,12 +53,9 @@
...
@@ -60,12 +53,9 @@
<ul
class=
"nav navbar-nav navbar-right"
id=
"menuitem-list"
>
<ul
class=
"nav navbar-nav navbar-right"
id=
"menuitem-list"
>
{% for title,url in MENUITEMS %}
{% for title,url in MENUITEMS %}
{% if url is string %}
{% if url is string %}
{% if title != 'Search' %}
<li
{%
if
output_file =
=
url
%}
class=
"active"
{%
endif
%}
>
<li
{%
if
output_file =
=
url
%}
class=
"active"
{%
endif
%}
>
<a
href=
"{{ genurl( url ) }}"
>
{{ title }}
</a>
<a
href=
"{{ genurl( url ) }}"
{{
newtab
(
url
)
}}
>
{{ title }}
</a>
</li>
</li>
{% endif %}
{% elif url is iterable %}
{% elif url is iterable %}
<li
class=
"btn-group
<li
class=
"btn-group
{%- for title,item_url in url -%}
{%- for title,item_url in url -%}
...
@@ -80,7 +70,7 @@
...
@@ -80,7 +70,7 @@
<ul
class=
"dropdown-menu"
role=
"menu"
>
<ul
class=
"dropdown-menu"
role=
"menu"
>
{% for title,item_url in url %}
{% for title,item_url in url %}
<li
{%
if
item_url =
=
output_url
%}
class=
"active"
{%
endif
%}
>
<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>
</li>
{% endfor %}
{% endfor %}
</ul>
</ul>
...
@@ -105,7 +95,7 @@
...
@@ -105,7 +95,7 @@
<!-- Template Content footer -->
<!-- Template Content footer -->
{% block template_content_footer %}{% endblock %}
{% block template_content_footer %}{% endblock %}
<!-- Sponsoren
Footer -->
<!-- Sponsoren
-
Footer -->
<footer
class=
"page-footer"
id=
"sponsoren-footer"
>
<footer
class=
"page-footer"
id=
"sponsoren-footer"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"row"
>
...
@@ -147,7 +137,6 @@
...
@@ -147,7 +137,6 @@
<script
src=
"/{{ THEME_STATIC_DIR }}/js/jquery.min.js"
></script>
<script
src=
"/{{ THEME_STATIC_DIR }}/js/jquery.min.js"
></script>
<script
src=
"/{{ THEME_STATIC_DIR }}/js/bootstrap.min.js"
></script>
<script
src=
"/{{ THEME_STATIC_DIR }}/js/bootstrap.min.js"
></script>
</body>
</body>
</html>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment