Handle goal pages for unset years

This commit is contained in:
Mouse Reeve
2021-08-04 12:05:24 -07:00
parent 97b643ac72
commit 535ff5e6d8
2 changed files with 7 additions and 2 deletions

View File

@ -17,9 +17,9 @@
{% block panel %}
<section class="block">
{% if user == request.user %}
{% now 'Y' as current_year %}
{% if user == request.user and year == current_year %}
<div class="block">
{% now 'Y' as year %}
<section class="card {% if goal %}is-hidden{% endif %}" id="show-edit-goal">
<header class="card-header">
<h2 class="card-header-title has-background-primary has-text-white" tabindex="0" id="edit-form-header">