main
Laurent 8 months ago
parent 9ed7e126a5
commit 5f30ea43d2
  1. 6
      subscriptions/templates/subscriptions/base.html
  2. 4
      subscriptions/templates/subscriptions/monthly_summary.html
  3. 4
      subscriptions/templates/subscriptions/offer_detail.html
  4. 3
      subscriptions/urls.py

@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Poker Analytics{% endblock %}</title>
{% load static %}
<link rel="stylesheet" href="{% static 'tournaments/css/output.css' %}" />
<link rel="stylesheet" href="{% static 'tournaments/css/main.css' %}" />
<link rel="stylesheet" href="{% static 'subscriptions/css/output.css' %}" />
<link rel="stylesheet" href="{% static 'subscriptions/css/main.css' %}" />
</head>
<body class="bg-gray-100 min-h-screen">
@ -17,7 +17,7 @@
<a href="/" class="text-2xl font-bold">Poker Analytics</a>
<nav>
<ul class="flex space-x-6">
<li><a href="{% url 'subscriptions:monthly_summary' %}" class="hover:text-blue-200">Subscriptions</a></li>
<li><a href="{% url 'monthly_summary' %}" class="hover:text-blue-200">Subscriptions</a></li>
<!-- Add other navigation items here -->
</ul>
</nav>

@ -1,5 +1,5 @@
<!-- templates/subscriptions/monthly_summary.html -->
{% extends "base.html" %}
{% extends "subscriptions/base.html" %}
{% block title %}Monthly Offer Summary{% endblock %}
@ -17,7 +17,7 @@
<ul class="divide-y divide-gray-200">
{% for offer in month_data.offers %}
<li class="py-3 flex justify-between items-center">
<a href="{% url 'subscriptions:offer_detail' month_data.month|date:'Y' month_data.month|date:'m' offer.offerIdentifier %}"
<a href="{% url 'offer_detail' month_data.month|date:'Y' month_data.month|date:'m' offer.offerIdentifier %}"
class="text-blue-600 hover:text-blue-800 hover:underline">
{{ offer.offerIdentifier }}
</a>

@ -1,5 +1,5 @@
<!-- templates/subscriptions/offer_detail.html -->
{% extends "base.html" %}
{% extends "subscriptions/base.html" %}
{% block title %}Offer Detail: {{ offer_id }} - {{ month_name }}{% endblock %}
@ -8,7 +8,7 @@
<div class="flex justify-between items-center mb-6">
<h1 class="text-3xl font-bold text-gray-800">{{ offer_id }} - {{ month_name }}</h1>
<a href="{% url 'subscriptions:monthly_summary' %}"
<a href="{% url 'monthly_summary' %}"
class="bg-gray-500 hover:bg-gray-600 text-white font-medium py-2 px-4 rounded inline-flex items-center">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" viewBox="0 0 20 20" fill="currentColor">
<path fill-rule="evenodd" d="M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z" clip-rule="evenodd" />

@ -1,4 +1,5 @@
from django.urls import path
from .views import MonthlyOfferSummaryView, OfferDetailView
from . import views
@ -7,4 +8,6 @@ urlpatterns = [
path('app-store-webhook/', views.app_store_webhook, name='app_store_webhook'),
# path('app-store-webhook-prod/', views.app_store_webhook_prod, name='app_store_webhook_prod'),
path('test/', views.test, name='test'),
path('monthly-summary/', MonthlyOfferSummaryView.as_view(), name='monthly_summary'),
path('offer-detail/<int:year>/<int:month>/<str:offer_id>/', OfferDetailView.as_view(), name='offer_detail'),
]

Loading…
Cancel
Save