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
2 changes: 2 additions & 0 deletions blt/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
MapView,
RoadmapView,
StatsDetailView,
StyleGuideView,
UploadCreate,
add_forum_comment,
add_forum_post,
Expand Down Expand Up @@ -1096,6 +1097,7 @@
path("api/messaging/set-public-key/", set_public_key, name="set_public_key"),
path("api/messaging/<int:thread_id>/get-public-key/", get_public_key, name="get_public_key"),
path("repository/<slug:slug>/activity-data/", repo_activity_data, name="repo_activity_data"),
path("style-guide/", StyleGuideView.as_view(), name="style_guide"),
]

if settings.DEBUG:
Expand Down
Binary file added website/static/img/style-guide.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions website/templates/includes/sidenav.html
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,14 @@
</div>
<span class="truncate">Design</span>
</a>
<!-- Style Guide Link -->
<a href="{% url 'style_guide' %}"
class="group flex items-center px-2 py-2 text-lg font-medium rounded-md {% if '/style-guide/' in request.path %}bg-[#feeae9] text-[#e74c3c]{% else %}text-gray-700 hover:bg-gray-100 hover:text-[#e74c3c]{% endif %} transition-all duration-200">
<div class="mr-3 flex-shrink-0 flex items-center justify-center w-8 h-8 rounded-md {% if '/style-guide/' in request.path %}bg-[#fde0dd] text-[#e74c3c]{% else %}bg-gray-100 text-gray-500 group-hover:bg-[#fde0dd] group-hover:text-[#e74c3c]{% endif %} transition-all duration-200">
<i class="fas fa-palette"></i>
</div>
<span class="truncate">Style Guide</span>
</a>
<!-- Edit Link -->
{% get_current_template as current_template %}
<a href="https://github.com/OWASP-BLT/BLT/blob/main/website/templates/{{ current_template }}"
Expand Down
Loading