diff --git a/pyproject.toml b/pyproject.toml
index 1b47864..ba8e44e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -17,6 +17,7 @@ dependencies = [
"platformdirs>=4.3.8",
"python-dotenv>=1.1.1",
"psycopg[binary]>=3.2.3",
+ "pygments>=2.19.2",
]
[dependency-groups]
diff --git a/templates/accounts/login.html b/templates/accounts/login.html
index adace53..624e581 100644
--- a/templates/accounts/login.html
+++ b/templates/accounts/login.html
@@ -3,15 +3,15 @@
Login
{% endblock title %}
{% block content %}
-
Login
+ Login
{% if form.errors %}
-
+
{% for field, errors in form.errors.items %}
{% for error in errors %}- {{ error }}
{% endfor %}
{% endfor %}
{% endif %}
-
- Don't have an account? Sign up here
+ Don't have an account? Sign up here
@@ -47,17 +73,7 @@
Campaigns |
Games |
Organizations |
- RSS Docs |
-
- |
+ RSS |
{% if user.is_authenticated %}
Debug |
{% if user.is_staff %}
@@ -68,6 +84,16 @@
Login |
Sign Up
{% endif %}
+ |
+
{% if messages %}
{% for message in messages %}
diff --git a/templates/twitch/campaign_detail.html b/templates/twitch/campaign_detail.html
index e34918c..e4e3646 100644
--- a/templates/twitch/campaign_detail.html
+++ b/templates/twitch/campaign_detail.html
@@ -4,96 +4,136 @@
{{ campaign.clean_name }}
{% endblock title %}
{% block content %}
-
- {% if campaign.owner %}
-
- {{ campaign.owner.name }}
-
+
+ {% if campaign.game %}
+
{% else %}
- Organization Unknown
+ {{ campaign.clean_name }}
{% endif %}
+ {% if owner %}
+
+ {{ owner.name }}
+
+ {% endif %}
+
{% if campaign.image_url %}
-
{% endif %}
- {{ campaign.description|linebreaksbr }}
-
- Start:
- {{ campaign.start_at }}
-
-
- End:
- {{ campaign.end_at }}
-
+
+ {{ campaign.description|linebreaksbr }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
{% if campaign.details_url %}
{# TODO: Archive this URL automatically #}
- Official Details
+ Official Details
{% endif %}
+
{% if campaign.account_link_url %}
{# TODO: Archive this URL automatically #}
- Connect Account
+ Connect Account
{% endif %}
Campaign Info
- {% if user.is_staff %}
-
- {% if campaign.is_account_connected %}
- Connected
- {% else %}
- Not Connected
- {% endif %}
-
- {% endif %}
{% if drops %}
-
-
- | Image |
- Name |
- Requirements |
- Availability |
-
- {% for drop in drops %}
+
{% else %}
No drops available for this campaign.
{% endif %}
- {{ campaign_data }}
+
+ {{ campaign_data|safe }}
{% endblock content %}
diff --git a/templates/twitch/campaign_list.html b/templates/twitch/campaign_list.html
index ffb1144..7f16295 100644
--- a/templates/twitch/campaign_list.html
+++ b/templates/twitch/campaign_list.html
@@ -6,10 +6,11 @@
{% block content %}
-
{% if campaigns %}
{% regroup campaigns by game as campaigns_by_game %}
{% for game_group in campaigns_by_game %}
-
+
{% if game_group.grouper.box_art_base_url %}
@@ -76,13 +78,15 @@
{% comment %} Find this header section in your template {% endcomment %}