Skip to content

Commit

Permalink
commented private issue (#1990)
Browse files Browse the repository at this point in the history
  • Loading branch information
HanilJain authored Mar 10, 2024
1 parent 95fe116 commit d0efe7a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion website/templates/contributor_stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{% for username, prs in user_stats %}
<tr class="bg-white border-b dark:bg-[#f7f7f7] dark:border-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600">
<th scope="row"
class="py-4 px-6 font-semibold text-gray-900 whitespace-nowrap dark:text-white">
class="py-4 px-6 font-semibold text-white whitespace-nowrap dark:text-gray-900">
{{ username }}
</th>
<td class="py-4 px-6">
Expand Down
11 changes: 4 additions & 7 deletions website/templates/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -331,17 +331,14 @@ <h2 class="text-2xl font-semibold leading-7 text-gray-900">{% trans "ADD TEAM ME
</div>
<div class="w-full mt-6 flex flex-col md:flex-row items-center justify-between gap-x-6 ">
<div class="flex h-full justify-between items-center flex-col my-16 md:flex-row md:mt-0">
<!--
<label class="w-full ml-5 flex items-center text-2xl border-2 border-gray-200 rounded px-10">
<input id="default-checkbox"
type="checkbox"
name="private"
value="true"
class="w-7 h-7 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
<label for="default-checkbox"
class="w-full text-center ml-4 mt-6 text-3xl font-medium text-gray-900">
<input id="default-checkbox" type="checkbox" name="private" value="true" class="w-7 h-7 text-blue-600 bg-gray-100 border-gray-300 rounded focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600">
<label for="default-checkbox" class="w-full text-center ml-4 mt-6 text-3xl font-medium text-gray-900">
{% trans "Report Privately" %}
</label>
</label>
-->
<div class="captcha-form flex ml-10 flex-col w-full md:flex-row items-center">{{ captcha_form.captcha }}</div>
</div>
<div class="w-full flex justify-evenly md:justify-end">
Expand Down
2 changes: 1 addition & 1 deletion website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def create_issue(self, form):
obj.hunt = hunt

obj.domain = domain
obj.is_hidden = bool(self.request.POST.get("private", False))
# obj.is_hidden = bool(self.request.POST.get("private", False))
obj.save()

if not domain_exists and (self.request.user.is_authenticated or tokenauth):
Expand Down

0 comments on commit d0efe7a

Please sign in to comment.