Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .gitignore
Binary file not shown.
183 changes: 183 additions & 0 deletions home/static/img/hacktober2025.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 14 additions & 15 deletions home/templates/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,22 +174,21 @@

<!-- Content -->
<div class="container">
<div class="row justify-content-center text-white">
<div
style="width: 40%; max-width: 100%; height: auto; position: relative; transform: translateY(25%); margin-top: 25px">
<img src="{% static 'img/hacktober11.svg' %}" alt="Github" class="img-thumbnail img-responsive img-circle mb-16 bg-transparent border-0 border-transparent">
</div>
</div>
<!-- <div class="row justify-content-center text-white" >
<h1 style="font-size:100px;">Github</h1>
</div> -->
<div class="row justify-content-center text-white" style="margin-bottom: 40px">
<h2><br><br><br>Presents</h2>
<div class="row justify-content-center text-white">
<div style="width: 60% !important; max-width: 100% !important; height: auto !important; margin: 25px auto 0 auto !important; text-align: center !important; display: block !important;">
<img src="{% static 'img/hacktober2025.svg' %}" alt="Github" class="img-thumbnail img-responsive img-circle mb-16 bg-transparent border-0 border-transparent" style="display: block !important; margin-left: auto !important; margin-right: auto !important; width: 100% !important; height: auto !important;">
</div>
<div class="row justify-content-center text-white">
<h1 style="font-size:100px; font-family: Cormorant Infant">ContriHUB</h1>
</div>
</div>
</div>
<!-- <div class="row justify-content-center text-white" >
<h1 style="font-size:100px;">Github</h1>
</div> -->
<div class="row justify-content-center text-white" style="margin-bottom: 40px">
<h2><br><br><br>Presents</h2>
</div>
<div class="row justify-content-center text-white">
<h1 style="font-size:100px; font-family: Cormorant Infant">ContriHUB</h1>
</div>
</div>
<!-- Content -->
</div>

Expand Down
Empty file.
7 changes: 3 additions & 4 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def home(request):

@complete_profile_required
def dashboard(request):
global issues_qs, domain, subdomain
project_qs = Project.objects.all()
issues_qs = Issue.objects.all()
domains_qs = Domain.objects.all()
Expand All @@ -47,7 +46,6 @@ def dashboard(request):

@complete_profile_required
def filter_by_domain(request, domain_pk):
global issues_qs, domain, subdomain
subdomain = 'All'
domain = Domain.objects.get(pk=domain_pk)
project_qs = Project.objects.all()
Expand All @@ -67,11 +65,12 @@ def filter_by_domain(request, domain_pk):

@complete_profile_required
def filter_by_subdomain(request, subdomain_pk):
global issues_qs, domain, subdomain
subdomain = SubDomain.objects.get(pk=subdomain_pk)
domain = 'All'
project_qs = Project.objects.all()
issues_qs = Issue.objects.all()
if domain != 'All':
issues_qs = Issue.objects.filter(project__domain=domain)
issues_qs = issues_qs.filter(project__domain=domain)
issues_qs = issues_qs.filter(project__subdomain=subdomain)
domains_qs = Domain.objects.all()
subdomains_qs = SubDomain.objects.all()
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ idna==3.3
mccabe==0.7.0
mysqlclient==2.2.0
oauthlib==3.2.0
psycopg2==2.9.3
psycopg2-binary==2.9.3

pycodestyle==2.9.1
pycparser==2.21
pyflakes==2.5.0
Expand Down