Skip to content

Commit

Permalink
Auto increment footer year (#294)
Browse files Browse the repository at this point in the history
* auto increment footer year

* comment
  • Loading branch information
diegocepedaw authored and jrgp committed Jan 20, 2020
1 parent c416d91 commit 23c3fcc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
12 changes: 6 additions & 6 deletions configs/config.docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ supported_timezones:
- 'UTC'

index_content_setting:
footer: |
<ul>
<li>Oncall © LinkedIn 2017</li>
<li>Feedback</li>
<li><a href="http://oncall.tools" target="_blank">About</a></li>
</ul>
#footer: |
# <ul>
# <li>Oncall © LinkedIn 2020</li>
# <li>Feedback</li>
# <li><a href="http://oncall.tools" target="_blank">About</a></li>
# </ul>
missing_number_note: 'No number'

notifications:
Expand Down
12 changes: 6 additions & 6 deletions configs/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,12 @@ supported_timezones:

index_content_setting:
# Page footer contents
footer: |
<ul>
<li>Oncall © LinkedIn 2017</li>
<li>Feedback</li>
<li><a href="http://oncall.tools" target="_blank">About</a></li>
</ul>
#footer: |
# <ul>
# <li>Oncall © LinkedIn 2020</li>
# <li>Feedback</li>
# <li><a href="http://oncall.tools" target="_blank">About</a></li>
# </ul>
# Note displayed when a user has no phone number
missing_number_note: 'No number'
header_color: '#3a3a3a'
Expand Down
3 changes: 2 additions & 1 deletion src/oncall/ui/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from ..constants import SUPPORTED_TIMEZONES
from os import path, environ
from falcon import HTTPNotFound
from datetime import date
from jinja2 import FileSystemLoader
from jinja2.environment import Environment as Jinja2Environment
from webassets import Environment as AssetsEnvironment, Bundle
Expand Down Expand Up @@ -62,7 +63,7 @@

INDEX_CONTENT_SETTING = {
'user_setting_note': '',
'footer': '<ul><li>Oncall © LinkedIn 2017</li></ul>',
'footer': '<ul><li>Oncall © LinkedIn %s</li><li><a href="http://oncall.tools" target="_blank">About</a></li></ul>' % date.today().year,
}

SLACK_INSTANCE = None
Expand Down

0 comments on commit 23c3fcc

Please sign in to comment.