From b251522adf6e504a62a319d3e78fbd50e5f21e5d Mon Sep 17 00:00:00 2001 From: p0lygun Date: Mon, 17 Oct 2022 20:14:01 +0530 Subject: [PATCH 1/4] fix: redo like container --- .../templates/core/experiences_listing.html | 27 ++++++++++--------- bfportal/theme/static_src/src/styles.css | 6 +---- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/bfportal/core/templates/core/experiences_listing.html b/bfportal/core/templates/core/experiences_listing.html index f2ed4c6..5c7df7b 100644 --- a/bfportal/core/templates/core/experiences_listing.html +++ b/bfportal/core/templates/core/experiences_listing.html @@ -22,11 +22,11 @@ /> - {% with post.liked_by.all.count as like_count %} + {% with 9999 as like_count %} {% if post.bugged or post.broken or post.xp_farm %} -
+
-
+

{% if post.bugged %} @@ -39,21 +39,24 @@

{% endif %} -
-
- - {% if post|is_liked_by_user:request %} - non - {% else %} - non - {% endif %} +
+
+ +
+ + {% if post|is_liked_by_user:request %} + non + {% else %} + non + {% endif %} +
{% endwith %}
-
+
- {% with 9999 as like_count %} + {% with post.liked_by.all|length as like_count %} {% if post.bugged or post.broken or post.xp_farm %}
From 5739a49406b0c2df6ea6486de4f18a3c94f121f7 Mon Sep 17 00:00:00 2001 From: p0lygun Date: Mon, 17 Oct 2022 22:13:31 +0530 Subject: [PATCH 3/4] style: fix like contaier --- .../core/templates/core/experience_page.html | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/bfportal/core/templates/core/experience_page.html b/bfportal/core/templates/core/experience_page.html index fddff34..2f39478 100644 --- a/bfportal/core/templates/core/experience_page.html +++ b/bfportal/core/templates/core/experience_page.html @@ -18,20 +18,18 @@ /> {% with page.liked_by.all.count as like_count %}
-
- - + class="absolute bottom-0 bg-transparent right-0 w-min-14 text-white h-10" onclick="add_to_liked(this)"> +
+ +
+ + +
{% endwith %} From 01e1dfc1ac9acb0110c932282ce5dfac27a3c9c9 Mon Sep 17 00:00:00 2001 From: p0lygun Date: Mon, 17 Oct 2022 22:14:44 +0530 Subject: [PATCH 4/4] feat: change order of report type in template --- bfportal/core/templates/core/experiences_listing.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bfportal/core/templates/core/experiences_listing.html b/bfportal/core/templates/core/experiences_listing.html index c074984..b85e4fc 100644 --- a/bfportal/core/templates/core/experiences_listing.html +++ b/bfportal/core/templates/core/experiences_listing.html @@ -29,10 +29,10 @@

- {% if post.bugged %} - Experience Bugged - {% elif post.broken %} + {% if post.broken %} Experience Broken + {% elif post.bugged %} + Experience Bugged {% elif post.xp_farm %} XP Farm {% endif %}