From ba3cabeb2ef017d89291ccf6351976138013cfb7 Mon Sep 17 00:00:00 2001 From: SaidQT <165608911+SaidQT@users.noreply.github.com> Date: Tue, 28 May 2024 22:51:24 +0300 Subject: [PATCH 1/2] 1011110111 --- yelp/static/style.css | 4 +- yelp/templates/index2.html | 119 ++++--------------------------------- yelp/templates/wall.html | 1 + yelp/views.py | 6 +- 4 files changed, 20 insertions(+), 110 deletions(-) diff --git a/yelp/static/style.css b/yelp/static/style.css index 02a85fb..a53bce7 100644 --- a/yelp/static/style.css +++ b/yelp/static/style.css @@ -395,7 +395,9 @@ header a:hover { height: 130px; border-radius: 6px 6px 0 0; } - +.card-image img{ + width:120px; +} .card-image:hover { transform: scale(0.98); } diff --git a/yelp/templates/index2.html b/yelp/templates/index2.html index 8f9e10f..40da056 100644 --- a/yelp/templates/index2.html +++ b/yelp/templates/index2.html @@ -70,114 +70,19 @@
diff --git a/yelp/templates/wall.html b/yelp/templates/wall.html
index ff29ea3..db7b305 100644
--- a/yelp/templates/wall.html
+++ b/yelp/templates/wall.html
@@ -28,6 +28,7 @@
{% csrf_token %}
You are writing a review for {{ request.session.name }}
{{ review.content }}
diff --git a/yelp/views.py b/yelp/views.py
index 974f502..c316a24 100644
--- a/yelp/views.py
+++ b/yelp/views.py
@@ -6,7 +6,7 @@
def index(request):
context={
"categories": BusinessCategory.objects.all(),
- "reviews":Review.objects.all().order_by("-updated_at"),
+ "reviews":Review.objects.all().order_by("-created_at"),
}
return render(request, 'index2.html', context)