Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update project URL to new project url and remove unused views #3218

Merged
merged 2 commits into from
Jan 12, 2025
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
8 changes: 2 additions & 6 deletions blt/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@
)
from website.views.project import (
ProjectBadgeView,
ProjectDetailView,
ProjectListView,
ProjectsDetailView,
ProjectView,
RepoBadgeView,
Expand Down Expand Up @@ -554,8 +552,7 @@
TemplateView.as_view(template_name="coming_soon.html"),
name="googleplayapp",
),
re_path(r"^projects/$", ProjectListView.as_view(), name="project_list"),
re_path(r"^allprojects/$", ProjectView.as_view(), name="project_view"),
re_path(r"^projects/$", ProjectView.as_view(), name="project_view"),
re_path(r"^apps/$", TemplateView.as_view(template_name="apps.html"), name="apps"),
re_path(
r"^deletions/$",
Expand Down Expand Up @@ -605,7 +602,6 @@
re_path(r"^api/v1/createwallet/$", create_wallet, name="create_wallet"),
re_path(r"^api/v1/count/$", issue_count, name="api_count"),
re_path(r"^api/v1/contributors/$", contributors, name="api_contributor"),
path("project/<slug:slug>/", ProjectDetailView.as_view(), name="project_view"),
path("projects/<slug:slug>/badge/", ProjectBadgeView.as_view(), name="project-badge"),
path("repos/<slug:slug>/badge/", RepoBadgeView.as_view(), name="repo-badge"),
path("repository/<slug:slug>/", RepoDetailView.as_view(), name="repo_detail"),
Expand Down Expand Up @@ -854,7 +850,7 @@
name="similarity_scan",
),
path("projects/create/", create_project, name="create_project"),
path("projects/<slug:slug>/", ProjectsDetailView.as_view(), name="projects_detail"),
path("project/<slug:slug>/", ProjectsDetailView.as_view(), name="projects_detail"),
]

if settings.DEBUG:
Expand Down
2 changes: 1 addition & 1 deletion website/templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h2 class="text-3xl font-bold mb-6">Get Involved</h2>
class="bg-green-500 text-white font-semibold py-3 px-6 rounded-full">
<i class="fas fa-users"></i> Join the Community
</a>
<a href="{% url 'project_list' %}"
<a href="{% url 'project_view' %}"
class="bg-blue-500 text-white font-semibold py-3 px-6 rounded-full">
<i class="fas fa-project-diagram"></i> Explore Projects
</a>
Expand Down
2 changes: 1 addition & 1 deletion website/templates/includes/sidenav.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<div class="my-4 border-t border-gray-300"></div>
<!-- Projects Header Link -->
<li class="mb-2 {% if request.path == '/projects/' %}bg-gray-200{% endif %}">
<a href="{% url 'project_list' %}"
<a href="{% url 'project_view' %}"
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 %}">
<div class="icon text-orange-500">
<i class="fas fa-box fa-lg"></i>
Expand Down
2 changes: 1 addition & 1 deletion website/templates/sitemap.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h2 class="text-6xl text-black font-bold">Sitemap</h2>
</li>
<li class="flex items-center space-x-3 text-black hover:text-red-600 hover:translate-x-1 transition duration-200 cursor-pointer">
<i class="fas fa-folder w-5 h-5 mr-1 align-middle"></i>
<a href="{% url 'project_list' %}">Projects</a>
<a href="{% url 'project_view' %}">Projects</a>
</li>
<li class="flex items-center space-x-3 text-black hover:text-red-600 hover:translate-x-1 transition duration-200 cursor-pointer">
<i class="fas fa-mobile-alt w-5 h-5 mr-1 align-middle"></i>
Expand Down
Loading
Loading