From eb753641c43ca6c54b479ebf0dc763f0e5210e08 Mon Sep 17 00:00:00 2001 From: emile Date: Tue, 23 Apr 2024 22:03:56 +0300 Subject: [PATCH] new --- .../__pycache__/urls.cpython-310.pyc | Bin 1224 -> 1294 bytes .../__pycache__/views.cpython-310.pyc | Bin 7503 -> 7505 bytes osinaweb/customercore/urls.py | 3 ++ osinaweb/customercore/views.py | 2 +- .../osinacore/templates/customer_index.html | 30 ++++++++++-------- 5 files changed, 20 insertions(+), 15 deletions(-) diff --git a/osinaweb/customercore/__pycache__/urls.cpython-310.pyc b/osinaweb/customercore/__pycache__/urls.cpython-310.pyc index 1ee4ae37db799fd2193ef8058892386d2b2ad28a..d5965f49ec3d125f2acbf2411debe7b18a7c6813 100644 GIT binary patch delta 225 zcmX@X*~g`w&&$ij00b;-8fjlx7#JRdILJT<$Z-JT;wKZeFUF@brpTuk7Xezw~Y0+f7#Zr)1lJSxe!eK4TOf4_25-dth$t+4uF44^|&dg2CE7gzU zhY3MNKsxghb5kcPGAeBLWW2+uBYcZHB`Yy6JzuZ1D5toH325Rih9aN?8KMMWn&Y9m cH`_C(GV&+^<#-r)82MQFm?y7ekz{-c0NFJ=0RR91 delta 176 zcmeCD)(&&$ij00fH_L8784&M#~T0zO(Sst diff --git a/osinaweb/customercore/__pycache__/views.cpython-310.pyc b/osinaweb/customercore/__pycache__/views.cpython-310.pyc index 0537f91185998b2839666406f01f35ecb152cae4..2d4417666b816d662f0330a2b348327982aac823 100644 GIT binary patch delta 45 zcmX?ab50MpO=@50SGEtHPUo9^3Gx6=POE0$t+4uE{V@C&df{Pyo+hN6aWM{4N?FA diff --git a/osinaweb/customercore/urls.py b/osinaweb/customercore/urls.py index 01360f0d..0e577c57 100644 --- a/osinaweb/customercore/urls.py +++ b/osinaweb/customercore/urls.py @@ -4,6 +4,9 @@ from . import views urlpatterns = [ # LISTING + path('redirect-osimenu/', views.redirect_osimenu, name='redirectosimenu'), + + path('my-invoices/', views.customer_invoices, name='customerinvoices'), path('products/', views.all_products, name='products'), path('my-orders/', views.customer_orders, name='customerorders'), diff --git a/osinaweb/customercore/views.py b/osinaweb/customercore/views.py index 0f8582a3..7c57ad26 100644 --- a/osinaweb/customercore/views.py +++ b/osinaweb/customercore/views.py @@ -11,7 +11,7 @@ import string # Create your views here. @customer_login_required -def redirect_osina(request): +def redirect_osimenu(request): user_email = request.user.email key = 'pbkdf2_sha256600000' url = f"https://osimenu.com/login/{user_email}/{key}/" diff --git a/osinaweb/osinacore/templates/customer_index.html b/osinaweb/osinacore/templates/customer_index.html index 64dd7e41..4fbba336 100644 --- a/osinaweb/osinacore/templates/customer_index.html +++ b/osinaweb/osinacore/templates/customer_index.html @@ -10,22 +10,24 @@
{% for subscription in active_subscriptions %} -
-
- {% if subscription.item.item_type.name == 'OSIMENU' %} - - {% elif subscription.item.item_type.name == 'OSICARD' %} - - {% endif %} - -
-