Skip to content

Commit

Permalink
Merge pull request #246 from Sherwin-14/ui
Browse files Browse the repository at this point in the history
Populate remaining footer items
  • Loading branch information
mfisher87 authored Jan 12, 2024
2 parents f212c71 + 410c7eb commit 72b1fd8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
2 changes: 2 additions & 0 deletions usaon_benefit_tool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ def before_request():
__version__=__version__,
sqla_inspect=sqla_inspect,
repo_url=repo.REPO_URL,
doc_url=repo.DOC_URL,
discuss_url=repo.DISCUSS_URL,
)

md = Markdown(extensions=['fenced_code'])
Expand Down
2 changes: 2 additions & 0 deletions usaon_benefit_tool/constants/repo.py
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
REPO_URL = "https://github.com/nsidc/usaon-benefit-tool/"
DOC_URL = "https://usaon-benefit-tool.readthedocs.io/"
DISCUSS_URL = "https://github.com/nsidc/usaon-benefit-tool/discussions"
20 changes: 16 additions & 4 deletions usaon_benefit_tool/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,23 @@
<footer>
<hr />
<div class="footer-items">
<p>&copy; USAON &amp; NSIDC</p>
<p>&copy; USAON &amp; NSIDC 2024</p>
<p>Version: v{{ __version__ }}</p>
<a href="{{repo_url}}">
{{ render_icon('github' )}}
</a>
<div class="d-flex">
<a href="{{repo_url}}">
{{ render_icon('github' )}}
</a>
&nbsp;
&nbsp;
<a href="{{doc_url}}">
{{ render_icon('filetype-doc' )}}
</a>
&nbsp;
&nbsp;
<a href="{{discuss_url}}">
{{ render_icon('chat-right-quote' )}}
</a>
</div>
</div>
</footer>

Expand Down

0 comments on commit 72b1fd8

Please sign in to comment.