Thanks to visit codestin.com
Credit goes to github.com

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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

- Read more about [BLT](https://owasp.org/www-project-bug-logging-tool/)



- Watch this [Video](https://www.youtube.com/watch?v=jNp3J6HLpqc) to get detailed motives and features of project BLT.


# Development
Expand Down
3 changes: 3 additions & 0 deletions Setup.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Setting up Development server

- [Video on How to setup Project BLT](https://www.youtube.com/watch?v=IYBRVRfPCK8)


## Setting Up Development Server using Docker-compose (Recomended)

### Install [Docker](https://docs.docker.com/get-docker/)
Expand Down
8 changes: 7 additions & 1 deletion contributors.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
{
"id":1,
"img":"https://avatars.githubusercontent.com/u/7475382?v=4",
"name":"Fredfalcon",
"repository":"BLT",
Expand All @@ -12,6 +13,7 @@
"bch_addr":""
},
{
"id":2,
"img":"https://avatars.githubusercontent.com/u/76696648?v=4",
"name":"Aryan Ranjan",
"repository":"BLT Flutter",
Expand All @@ -25,6 +27,7 @@

},
{
"id":3,
"img":"https://avatars.githubusercontent.com/u/18749480?v=4",
"name":"Raghav Jajodia",
"repository":"BLT Core",
Expand All @@ -37,18 +40,20 @@
"bch_addr":""
},
{
"id":4,
"img":"https://avatars.githubusercontent.com/u/68425016?v=4",
"name":"Swapnil Shinde",
"repository":"BLT Core | BLT Bacon",
"short_description":"reincarnating",
"long_description":"",
"long_description":"Hey, Im a Python developer and have experience in backend and Api development with django , Automation and testing with selenium. love to talk about cyber security and IOT. Opensource Contributor OWASP.",
"location":"Maharashtra, India",
"twitter":"https://twitter.com/a_kraken_head",
"linkedin":"https://www.linkedin.com/in/swapnil-shinde-5ba45118b/",
"website":"https://swapnilshinde.com",
"bch_addr":"qq62zrxxeyqlvhunl2zeq7xqf2xu3pv39q6wyz7ckk"
},
{
"id":5,
"img":"https://avatars.githubusercontent.com/u/37345795?v=4",
"name":"Harshit Seksaria",
"repository":"BLT Flutter",
Expand All @@ -61,6 +66,7 @@
"bch_addr":""
},
{
"id":6,
"img":"https://avatars.githubusercontent.com/u/65587505?v=4",
"name":"Amrit Prakash",
"repository":"BLT Flutter",
Expand Down
1 change: 1 addition & 0 deletions website/templates/contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
></i>
</a>
</div>
<a href="/contributors/?contributor={{contributor.id}}" class="w-[150px] h-[40px] rounded-md shadow-md bg-red-500 text-white flex justify-center items-center mt-10 no-underline hover:text-white group-hover:bg-white group-hover:text-red-500 font-bold">More Info</a>
</div>
{% endfor %}

Expand Down
56 changes: 56 additions & 0 deletions website/templates/contributors_detail.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{% extends "base.html" %}

{% block natural_content %}
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css"
integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>

<a href="/contributors" class="flex top-[100px] left-10 fixed w-[30px] h-[30px] bg-red-500 justify-center item-center rounded-[50px] hover:bg-red-700 hover:shadow-md no-underline">
<i class="text-white scale-150 m-3 fa-sharp fa-solid fa-arrow-left cursor-pointer transition duration-200"></i>
</a>
<section class="text-gray-700 body-font overflow-hidden bg-white">
<div class="container px-5 py-24 mx-auto">
<div class="lg:w-4/5 mx-auto flex flex-wrap">

<img alt="ecommerce" class="lg:w-1/2 w-full object-cover object-center rounded border border-gray-200" src="{{contributor.img}}">

<div class="lg:w-1/2 w-full lg:pl-10 lg:py-6 mt-6 lg:mt-0">
<p class="text-6xl font-bold" >{{contributor.name}}</p>
<p class="text-4xl text-brown-800 mt-5 italic font-light">{{contributor.repository}}</p>
<div class="w-full h-1 bg-red-500"></div>
<p class="text-3xl font-bold mt-8">{{contributor.location}}</p>
{% if contributor.long_description == "" %}
<p class="mt-10 text-3xl font-medium">{{contributor.short_description}}</p>
{% else %}
<p class="mt-10 text-3xl font-medium">{{contributor.long_description}}</p>
{% endif %}
<div
class="flex gap-3 w-auto h-5 mt-10"
>
<a href="{{contributor.twitter}}" target="_blank">
<i
class="scale-150 m-3 fa-brands fa-twitter fa-lg cursor-pointer transition duration-100 hover:text-red-500"
></i>
</a>
<a href="{{contributor.linkedin}}" target="_blank">
<i
class="scale-150 m-3 fa-brands fa-linkedin fa-lg cursor-pointer transition duration-100 hover:text-red-500"
></i>
</a>
<a href="{{contributor.website}}" target="_blank">
<i
class="scale-150 m-3 fa-brands fa-dribbble fa-lg cursor-pointer transition duration-100 hover:text-red-500"
></i>
</a>
</div>
<button onclick="alert('Bitcoin Cash Addr: ' + '{{contributor.bch_addr}}')" class="w-[150px] h-[40px] rounded-md shadow-md bg-red-500 text-white flex justify-center items-center mt-20 no-underline font-bold">Donate Bitcoin</button>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
19 changes: 18 additions & 1 deletion website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from django.db.models import Sum, Count, Q
from django.db.models.functions import ExtractMonth
from django.dispatch import receiver
from django.http import Http404,JsonResponse,HttpResponseRedirect,HttpResponse
from django.http import Http404,JsonResponse,HttpResponseRedirect,HttpResponse,HttpResponseNotFound
from django.shortcuts import render, redirect, get_object_or_404
from django.template.loader import render_to_string
from django.utils.decorators import method_decorator
Expand Down Expand Up @@ -3041,13 +3041,30 @@ def handler500(request, exception=None):

def contributors_view(request,*args,**kwargs):



contributors_file_path = os.path.join(settings.BASE_DIR,"contributors.json")

with open(contributors_file_path,'r') as file:
content = file.read()

contributors = json.loads(content)

contributor_id = request.GET.get("contributor",None)

if contributor_id:

contributor=None
for i in contributors:
if str(i["id"])==contributor_id:
contributor = i

if contributor==None:
return HttpResponseNotFound("Contributor not found")

return render(request,"contributors_detail.html",context={"contributor":contributor})


context = {
"contributors":contributors
}
Expand Down