Skip to content

Commit 3f266cc

Browse files
authored
Merge branch 'main' into suggestion-bot
2 parents 6e005c9 + 5d54897 commit 3f266cc

File tree

8 files changed

+991
-8
lines changed

8 files changed

+991
-8
lines changed

blt/urls.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
ProjectListView,
182182
ProjectsDetailView,
183183
ProjectView,
184+
RepoDetailView,
184185
blt_tomato,
185186
create_project,
186187
distribute_bacon,
@@ -591,6 +592,7 @@
591592
re_path(r"^api/v1/contributors/$", contributors, name="api_contributor"),
592593
path("project/<slug:slug>/", ProjectDetailView.as_view(), name="project_view"),
593594
path("projects/<slug:slug>/badge/", ProjectBadgeView.as_view(), name="project-badge"),
595+
path("repository/<slug:slug>/", RepoDetailView.as_view(), name="repo_detail"),
594596
re_path(r"^report-ip/$", ReportIpView.as_view(), name="report_ip"),
595597
re_path(r"^reported-ips/$", ReportedIpListView.as_view(), name="reported_ips_list"),
596598
re_path(r"^feed/$", feed, name="feed"),

website/templates/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ <h2 class="text-3xl font-bold mb-6">Get Involved</h2>
7777
class="bg-green-500 text-white font-semibold py-3 px-6 rounded-full">
7878
<i class="fas fa-users"></i> Join the Community
7979
</a>
80-
<a href="{% url 'project_list' %}"
80+
<a href="{% url 'project_view' %}"
8181
class="bg-blue-500 text-white font-semibold py-3 px-6 rounded-full">
8282
<i class="fas fa-project-diagram"></i> Explore Projects
8383
</a>

website/templates/includes/sidenav.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
<div class="my-4 border-t border-gray-300"></div>
139139
<!-- Projects Header Link -->
140140
<li class="mb-2 {% if request.path == '/projects/' %}bg-gray-200{% endif %}">
141-
<a href="{% url 'project_list' %}"
141+
<a href="{% url 'project_view' %}"
142142
class="flex items-center w-full no-underline p-2 {% if '/projects/' in request.path %} text-black {% else %} hover:text-red-500 text-black {% endif %}">
143143
<div class="icon text-orange-500">
144144
<i class="fas fa-box fa-lg"></i>

website/templates/projects/project_detail.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{% extends "base.html" %}
22
{% load humanize %}
33
{% load static %}
4-
{% block title %}{{ project.name }} - Project Details{% endblock %}
4+
{% block title %}
5+
{{ project.name }} - Project Details
6+
{% endblock title %}
57
{% block content %}
68
{% include "includes/sidenav.html" %}
79
<div class="container mx-auto px-4 py-8 max-w-7xl">
@@ -164,14 +166,15 @@ <h2 class="text-2xl font-bold text-gray-900">Associated Repositories</h2>
164166
{% for repo in repositories %}
165167
<div class="bg-white rounded-xl border-2 border-gray-200 hover:border-red-500 transition-all duration-200 hover:shadow-lg">
166168
<div class="p-6">
167-
<div class="flex items-center justify-between mb-4">
169+
<a href="{% url 'repo_detail' repo.slug %}"
170+
class="flex items-center justify-between mb-4">
168171
<h3 class="text-xl font-bold text-gray-800">{{ repo.name }}</h3>
169172
{% if repo.is_main %}
170173
<span class="px-3 py-1 bg-green-100 text-green-800 rounded-full text-sm font-medium">Main</span>
171174
{% elif repo.is_wiki %}
172175
<span class="px-3 py-1 bg-blue-100 text-blue-800 rounded-full text-sm font-medium">Wiki</span>
173176
{% endif %}
174-
</div>
177+
</a>
175178
{% if repo.description %}<p class="text-gray-600 text-base leading-relaxed mb-6">{{ repo.description }}</p>{% endif %}
176179
<!-- Repository Stats -->
177180
<div class="grid grid-cols-2 sm:grid-cols-4 gap-4 mb-6">

website/templates/projects/project_list.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ <h2 class="text-3xl font-bold text-white mb-2 group-hover:underline">{{ project.
177177
<div class="bg-white rounded-xl border-2 border-gray-200 hover:border-red-500 transition-all duration-200 hover:shadow-lg">
178178
<div class="p-6">
179179
<!-- Repository Header -->
180-
<div class="flex items-center justify-between mb-4">
180+
<a href="{% url 'repo_detail' repo.slug %}"
181+
class="flex items-center justify-between mb-4">
181182
<h3 class="text-xl font-bold text-gray-800">{{ repo.name }}</h3>
182183
{% if repo.is_main %}
183184
<span class="px-4 py-1.5 bg-green-100 text-green-800 rounded-full text-sm font-medium">Main</span>
@@ -186,7 +187,7 @@ <h3 class="text-xl font-bold text-gray-800">{{ repo.name }}</h3>
186187
{% else %}
187188
<span class="px-4 py-1.5 bg-gray-100 text-gray-800 rounded-full text-sm font-medium">Normal</span>
188189
{% endif %}
189-
</div>
190+
</a>
190191
<!-- Repository Description -->
191192
<p class="text-gray-600 text-base leading-relaxed mb-6">
192193
{{ repo.description|default:"No description available."|truncatechars:150 }}

0 commit comments

Comments
 (0)