Skip to content

Commit

Permalink
Merge pull request #430 from Turbo87/env-var
Browse files Browse the repository at this point in the history
Make `CURRENT_TIME` env var optional
  • Loading branch information
ibraheemdev committed Mar 4, 2024
2 parents 2db39fa + 96106f1 commit 26e3654
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,12 @@
</div>
</div>
<p class="last-updated">
Last updated {{ get_env(name="CURRENT_TIME") }} - <a href="https://github.com/rust-net-web/arewewebyet/#license">CC-BY-4.0</a>
{% set build_time = get_env(name="CURRENT_TIME", default=false) %}
{% if build_time %}
Last updated {{ build_time }} -
{% endif %}

<a href="https://github.com/rust-net-web/arewewebyet/#license">CC-BY-4.0</a>
</p>
</footer>
</body>
Expand Down

0 comments on commit 26e3654

Please sign in to comment.