From e0d4ef65ce79c0756b3ee9c8dfd6dbdb3de9f498 Mon Sep 17 00:00:00 2001 From: Bishal <69814108+CodeWithBishal@users.noreply.github.com> Date: Sat, 18 May 2024 00:55:37 +0530 Subject: [PATCH 1/7] initial commit --- website/templates/base.html | 2 +- website/templates/issue3.html | 366 +++++++++++++++++----------------- 2 files changed, 185 insertions(+), 183 deletions(-) diff --git a/website/templates/base.html b/website/templates/base.html index b90057b13..4e34c578c 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -95,7 +95,7 @@
{% block content %} {% endblock content %} -
+ {% comment %} {% endcomment %} {% comment %} block with no bootstrap wrappers {% endcomment %} {% block natural_content %} {% endblock natural_content %} diff --git a/website/templates/issue3.html b/website/templates/issue3.html index 2e01fddfc..d71aba189 100644 --- a/website/templates/issue3.html +++ b/website/templates/issue3.html @@ -49,7 +49,7 @@ {% include "includes/_bookmark2.html" %} {% endcomment %} {% include "includes/_like_dislike_share.html" %} -
+

{{ object.description |escapejs }}

@@ -61,210 +61,212 @@ rel="noopener noreferrer">{{ object.url }}


-
-
-
-
- User Profile Logo -
-
-
- {% if object.user.username %} - {{ object.user.username }} - {% else %} - Anonymous - {% endif %} -
-
- Total Points = {{ users_score }} -
-
-
- {% if not object.user.username %} - +
+
+
+
+
+ User Profile Logo +
+
+
+ {% if object.user.username %} + {{ object.user.username }} {% else %} - + Anonymous {% endif %}
+
+ Total Points = {{ users_score }} +
-
-
+
+ {% if not object.user.username %} + + {% else %} + + {% endif %}
-
-
-
-
Bug Type: {{ object.get_label_display }}
-
-
- Status: {{ object.status }} -
-
Added on: {{ object.created }}
- {% if object.cve_id is not None %} -
CVE ID: {{ object.cve_id }}
- {% endif %} - {% if object.cve_score is not None %} -
CVE Score: {{ object.cve_score }}
- {% endif %} -
- Submitted: - {% if object.hunt is None %} - Independently - {% else %} - {{ object.hunt.name }} - {% endif %} -
+
+
+
+
+
+
+
+
Bug Type: {{ object.get_label_display }}
+
+
+ Status: {{ object.status }}
-
- {% if request.user == object.user or request.is_staff or request.is_superuser %} -
- -
- {% endif %} - {% if request.user.is_superuser or request.user == object.user %} -
- -
+
Added on: {{ object.created }}
+ {% if object.cve_id is not None %} +
CVE ID: {{ object.cve_id }}
+ {% endif %} + {% if object.cve_score is not None %} +
CVE Score: {{ object.cve_score }}
+ {% endif %} +
+ Submitted: + {% if object.hunt is None %} + Independently + {% else %} + {{ object.hunt.name }} {% endif %}
-
-
-
-
-
-
-
-
- Domain Logo -
-
-
- Reported on {{ object.domain.name }} +
+ {% if request.user == object.user or request.is_staff or request.is_superuser %} +
+
-
- Issues Reported: {{ issue_count }} + {% endif %} + {% if request.user.is_superuser or request.user == object.user %} +
+
+ {% endif %} +
+
+
+
+
+
+
+
+
+
+ Domain Logo +
+
+ -
- +
+ Issues Reported: {{ issue_count }}
-
-
+
+
-
-
- {% if browser_family %} - {% with "img/browser-logos/"|add:browser_family|add:"/"|add:browser_family|add:"_64x64.png"|lower as image_static %} -
- Browser Image -
- {% endwith %} - {% endif %} -
-
- Browser Version: {{ browser_version }} -
-
- Operating System: {{ os_family }} +
+
+
+
+
+
+ {% if browser_family %} + {% with "img/browser-logos/"|add:browser_family|add:"/"|add:browser_family|add:"_64x64.png"|lower as image_static %} +
+ Browser Image
-
- OS Version: - {% if os_version %} - {{ os_version }} - {% else %} - Unknown - {% endif %} - + {% endwith %} + {% endif %} +
+
+ Browser Version: {{ browser_version }} +
+
+ Operating System: {{ os_family }}
+
+ OS Version: + {% if os_version %} + {{ os_version }} + {% else %} + Unknown + {% endif %} +
-
+
-
-
-
-

Screenshots:

- {% if object.screenshot %} - - issue screenshot - - {% else %} -
- {% for screenshot in screenshots %} - - issue screenshot - - {% endfor %} -
- {% endif %} -
-
- {% if object.markdown_description %} -

Issue Description

-

+
+
+
+
+

Screenshots:

+ {% if object.screenshot %} + + issue screenshot + + {% else %} +
+ {% for screenshot in screenshots %} + + issue screenshot + + {% endfor %} +
{% endif %}
+
+{% if object.markdown_description %} +

Issue Description

+

+{% endif %} +
+
From 35bd8a43e5b453caa77808d60c790529dc6abc09 Mon Sep 17 00:00:00 2001 From: Bishal <69814108+CodeWithBishal@users.noreply.github.com> Date: Sat, 18 May 2024 16:16:00 +0530 Subject: [PATCH 2/7] part - 1 complete --- website/templates/base.html | 2 +- website/templates/includes/_bookmark3.html | 54 ------- website/templates/includes/_dislikes3.html | 20 --- website/templates/includes/_flags3.html | 40 ----- .../includes/_like_dislike_share.html | 135 +++++++++++----- .../includes/_like_dislike_widget.html | 147 ++++++++++++++++++ website/templates/includes/_likes3.html | 21 --- website/templates/includes/_tooltip3.html | 4 + website/templates/issue3.html | 28 +++- 9 files changed, 269 insertions(+), 182 deletions(-) delete mode 100644 website/templates/includes/_bookmark3.html delete mode 100644 website/templates/includes/_dislikes3.html delete mode 100644 website/templates/includes/_flags3.html create mode 100644 website/templates/includes/_like_dislike_widget.html delete mode 100644 website/templates/includes/_likes3.html create mode 100644 website/templates/includes/_tooltip3.html diff --git a/website/templates/base.html b/website/templates/base.html index 4e34c578c..4c737047b 100644 --- a/website/templates/base.html +++ b/website/templates/base.html @@ -82,7 +82,7 @@ {% block style %} {% endblock style %} - +