Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uffd
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luca (strifel)
uffd
Commits
c1ce5425
Verified
Commit
c1ce5425
authored
4 years ago
by
nd
Browse files
Options
Downloads
Patches
Plain Diff
set a footer link list via config and not raw html
parent
71e390e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
uffd/default_config.cfg
+1
-1
1 addition, 1 deletion
uffd/default_config.cfg
uffd/templates/base.html
+7
-1
7 additions, 1 deletion
uffd/templates/base.html
with
8 additions
and
2 deletions
uffd/default_config.cfg
+
1
−
1
View file @
c1ce5425
...
...
@@ -29,7 +29,7 @@ ROLES_BASEROLES=['base']
SQLALCHEMY_TRACK_MODIFICATIONS
=
False
FOOTER_
CONTENT
=
'<div class="container"><span class="text-muted">Place sticky footer content here.</span></div>'
FOOTER_
LINKS
=
[{"url": "https://example.com", "title": "example"}]
# do NOT set in production
...
...
This diff is collapsed.
Click to expand it.
uffd/templates/base.html
+
7
−
1
View file @
c1ce5425
...
...
@@ -97,7 +97,13 @@
<footer
class=
"footer"
>
{% block footer %}
{{ config["FOOTER_CONTENT"]|safe }}
<div
class=
"container"
>
<ul
class=
"list-inline"
>
{% for link in config["FOOTER_LINKS"]%}
<li
class=
"list-inline-item"
><a
href=
"{{ link.url }}"
>
{{ link.title }}
</a></li>
{% endfor %}
</ul>
</div>
{% endblock footer %}
</footer>
...
...
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