From fccb1f97ea90c0fe64c4b71e7b93cbdf4d2ec70a Mon Sep 17 00:00:00 2001 From: Mohit Anand Date: Tue, 6 Jun 2017 02:49:19 +0530 Subject: [PATCH 1/3] Chaned profile.html with respect to Issue #196 --- profile.html | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 profile.html diff --git a/profile.html b/profile.html new file mode 100644 index 0000000000..bbcb796e26 --- /dev/null +++ b/profile.html @@ -0,0 +1,90 @@ +{% extends "base.html" %} +{% load gravatar %} +{% block content %} +
+

{{ user.username }}

+
+ {% if user.userprofile.avatar %} + + {% else %} + + {% endif %} +
+
+ {% if request.user == user %} + + +
+ {% csrf_token %} + + + +   + + +

+ +
+ + {% endif %} +
+
+

{{ my_score|default:0 }} Points

+
+ + + + + +
+
+
+
+
+
+
+ {{ user.username }}'s activity +
+
+
+ {% for activity in activities %} + {% include '_activity.html' %} + {% endfor %} +
+
+
+
+ +
+
+
+ {{ user.username }}'s top bug findings +
+
+
+ {% for website in websites %} +
+ + + + + {{ website.name }} + + + {{ website.total }} Bug {{ website.total|pluralize }} + +
+ {% endfor %} +
+
+
+
+ +
+ +{% endblock %} \ No newline at end of file From 5f66bb071af4b75d9e7b8feeaf6a33e6bf72f051 Mon Sep 17 00:00:00 2001 From: Mohit Anand Date: Tue, 6 Jun 2017 02:49:58 +0530 Subject: [PATCH 2/3] Delete profile.html --- profile.html | 90 ---------------------------------------------------- 1 file changed, 90 deletions(-) delete mode 100644 profile.html diff --git a/profile.html b/profile.html deleted file mode 100644 index bbcb796e26..0000000000 --- a/profile.html +++ /dev/null @@ -1,90 +0,0 @@ -{% extends "base.html" %} -{% load gravatar %} -{% block content %} -
-

{{ user.username }}

-
- {% if user.userprofile.avatar %} - - {% else %} - - {% endif %} -
-
- {% if request.user == user %} - - -
- {% csrf_token %} - - - -   - - -

- -
- - {% endif %} -
-
-

{{ my_score|default:0 }} Points

-
- - - - - -
-
-
-
-
-
-
- {{ user.username }}'s activity -
-
-
- {% for activity in activities %} - {% include '_activity.html' %} - {% endfor %} -
-
-
-
- -
-
-
- {{ user.username }}'s top bug findings -
-
-
- {% for website in websites %} -
- - - - - {{ website.name }} - - - {{ website.total }} Bug {{ website.total|pluralize }} - -
- {% endfor %} -
-
-
-
- -
- -{% endblock %} \ No newline at end of file From b21d7060f7e7629621b426435a637191ab50fcc9 Mon Sep 17 00:00:00 2001 From: Mohit Anand Date: Tue, 6 Jun 2017 02:51:05 +0530 Subject: [PATCH 3/3] Chaned profile.html with respect to #196 --- website/templates/profile.html | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/website/templates/profile.html b/website/templates/profile.html index 0c4fd1c1b9..bbcb796e26 100644 --- a/website/templates/profile.html +++ b/website/templates/profile.html @@ -12,15 +12,20 @@

{{ user.username }}

{% if request.user == user %} - - + {% endif %}