Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Fachgruppenwebseite Metadaten
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fginfo
Fachgruppenwebseite Metadaten
Commits
a1672fbf
Verified
Commit
a1672fbf
authored
2 years ago
by
Jake
Browse files
Options
Downloads
Patches
Plain Diff
readded menu items
parent
dd62d159
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#312657
failed
2 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theme/templates/base.html
+10
-8
10 additions, 8 deletions
theme/templates/base.html
with
10 additions
and
8 deletions
theme/templates/base.html
+
10
−
8
View file @
a1672fbf
<!DOCTYPE html>
<!DOCTYPE html>
{%- import 'macros/getters.html' as get with context -%}
{#{%- import 'macros/cards.html' as cards with context -%}
{%- import 'macros/renderers.html' as render with context -%}#}
<html
lang=
"{%- block html_lang -%}{{ l }}{%- endblock html_lang -%}"
>
<html
lang=
"{%- block html_lang -%}{{ l }}{%- endblock html_lang -%}"
>
<head>
<head>
{% block head %}
{% block head %}
...
@@ -35,16 +40,14 @@
...
@@ -35,16 +40,14 @@
<nav>
<nav>
<ul>
<ul>
{% for item in config.menuitems -%}
{% for item in config.menuitems -%}
{{item}}
{#
{%- if item.tag is defined -%}
{%- if item.tag is defined -%}
{%- call(
nativetag, sccat, _
) get.tag_by_name(item.tag) -%}
{%- call(
tagtitle, tagcolor, tagurl, tagpage, tagpages
) get.tag_by_name(item.tag
, l
) -%}
<li
style=
"--category-color: {{
sccat.
color }}"
><a
href=
"{{ siteurl }}/{{
native
tag
.
url }}"
>
{{
sccat[lang]
|e }}
</a></li>
<li
style=
"--category-color: {{
tag
color }}"
><a
href=
"{{ siteurl }}/{{ tagurl }}"
>
{{
tagtitle
|e }}
</a></li>
{%- endcall -%}
{%- endcall -%}
{%- elif item.slug is defined -%}
{%- elif item.slug is defined -%}
{%- call(
aop, _) get.article_or_
page_by_slug(item.slug, l
ang
) -%}
{%- call(
page) get.
page_by_slug(item.slug, l) -%}
{%- call(
__, sccat, ___) get.category
_by_name(
aop
.category
.name, True
) -%}
{%- call(
tagtitle, tagcolor, tagurl, tagpage, tagpages) get.tag
_by_name(
page
.category
, l
) -%}
<li
style=
"--category-color: {{
sccat.
color }}"
><a
href=
"{{ siteurl }}/{{
aop
.url }}"
>
{{
aop
.title }}
</a></li>
<li
style=
"--category-color: {{
tag
color }}"
><a
href=
"{{ siteurl }}/{{
page
.url }}"
>
{{
page
.title
|e
}}
</a></li>
{%- endcall -%}
{%- endcall -%}
{%- endcall -%}
{%- endcall -%}
{%- else -%}
{%- else -%}
...
@@ -52,7 +55,6 @@
...
@@ -52,7 +55,6 @@
<strong>
ERROR: menuitems: Cannot parse item: {{ item|string|e }}
</strong><br
/>
<strong>
ERROR: menuitems: Cannot parse item: {{ item|string|e }}
</strong><br
/>
<br
/>
<br
/>
{%- endif -%}
{%- endif -%}
#}
{#- TODO add active class if this is the current site -#}
{#- TODO add active class if this is the current site -#}
{%- endfor %}
{%- endfor %}
</ul>
</ul>
...
...
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