Skip to content

Commit

Permalink
💄 Add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
essembeh committed Feb 8, 2024
1 parent e497572 commit 8a4e1da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions yourss/templates/view.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,14 @@ <h5 class="card-title h5">
</div>
</main>

<div class="container-fluid">
<footer class="py-3 mt-4 border-top text-center">
<a href="https://github.com/essembeh/YouRSS" target="_blank" class="text-body"><i class="bi bi-github" width="24" height="24"></i></a>
<span class="fw-bold">YouRSS</span>
<span class="text-secondary">v{{ version }}</span>
</footer>
</div>

<script src="/static/yourss.js"></script>
</body>

Expand Down
2 changes: 2 additions & 0 deletions yourss/webapp/www.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ async def get_user(
"request": request,
"title": f"/u/{user}",
"feeds": feeds,
"version": yourss.__version__,
},
)

Expand All @@ -86,5 +87,6 @@ async def view_channels(
"request": request,
"title": ", ".join(sorted(map(lambda f: f.title, feeds))),
"feeds": feeds,
"version": yourss.__version__,
},
)

0 comments on commit 8a4e1da

Please sign in to comment.