diff --git a/mwmbl/templates/base.html b/mwmbl/templates/base.html index b397195..ff08539 100644 --- a/mwmbl/templates/base.html +++ b/mwmbl/templates/base.html @@ -1,22 +1,95 @@ +{% load django_vite %} - - - {% block title %}Simple is Better Than Complex{% endblock %} - - -
-

My Site

- {% if user.is_authenticated %} - logout + + + + + + + + {% include "title.html" %} + + + + + + + + + + + + + + + + + + + + + + + + + + + {% vite_hmr_client %} + + + + +
+ + mwmbl logo + Mwmbl + + +
+ {% if user.is_authenticated %} + + Log out {% else %} - login / signup + Login + Sign up {% endif %} -
-
- {% block content %} - {% endblock %} -
- + {% block content %} + {% endblock %} + +{% vite_asset 'index.js' %} +{% vite_legacy_polyfills %} +{% vite_legacy_asset 'index-legacy.js' %} + + diff --git a/mwmbl/templates/history.html b/mwmbl/templates/history.html new file mode 100644 index 0000000..6754a9b --- /dev/null +++ b/mwmbl/templates/history.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} +{% load humanize %} + +{% block content %} +
+

Curations for {{ query }}

+ {% for user_curation in curations %} +

{{ user_curation.user.username }} {{ user_curation.curation_type }} {{ user_curation.timestamp | naturaltime}}

+ {% endfor %} +
+{% endblock %} diff --git a/mwmbl/templates/home.html b/mwmbl/templates/home.html index 3620c94..42719c8 100644 --- a/mwmbl/templates/home.html +++ b/mwmbl/templates/home.html @@ -3,6 +3,7 @@
{% if query %} +{# View history#} {% if results %}