diff --git a/timer/models.py b/timer/models.py index e65e786..9a3a91a 100644 --- a/timer/models.py +++ b/timer/models.py @@ -24,4 +24,4 @@ class OfficeHours(models.Model): @property def get_ends_at_str(self): - return localtime(self.ends_at).strftime('%Y-%m-%d %H:%M') + return localtime(self.ends_at).strftime('%H:%M') diff --git a/timer/templates/base.html b/timer/templates/base.html new file mode 100644 index 0000000..6079024 --- /dev/null +++ b/timer/templates/base.html @@ -0,0 +1,7 @@ +
+ + + + {% block content %} + {% endblock %} + diff --git a/timer/templates/index.html b/timer/templates/index.html index 514b8f1..0fcdec9 100644 --- a/timer/templates/index.html +++ b/timer/templates/index.html @@ -1,9 +1,20 @@ - - - -