mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-13 13:39:27 +02:00
Accessibility improvements in page structure (#1014)
* Change app link to not use heading * Use main and h1 for main content * Update settings page structure * Fix responsive styles * Update bookmark form page structure * Update auth page structure * Add some basic page titles * Expose side panel section * Add page title for bookmark details * Expose more sections * Improve region names
This commit is contained in:
@@ -51,6 +51,7 @@ def index(request: HttpRequest):
|
||||
request,
|
||||
"bookmarks/index.html",
|
||||
{
|
||||
"page_title": "Bookmarks - Linkding",
|
||||
"bookmark_list": bookmark_list,
|
||||
"tag_cloud": tag_cloud,
|
||||
"details": bookmark_details,
|
||||
@@ -73,6 +74,7 @@ def archived(request: HttpRequest):
|
||||
request,
|
||||
"bookmarks/archive.html",
|
||||
{
|
||||
"page_title": "Archived bookmarks - Linkding",
|
||||
"bookmark_list": bookmark_list,
|
||||
"tag_cloud": tag_cloud,
|
||||
"details": bookmark_details,
|
||||
@@ -97,6 +99,7 @@ def shared(request: HttpRequest):
|
||||
request,
|
||||
"bookmarks/shared.html",
|
||||
{
|
||||
"page_title": "Shared bookmarks - Linkding",
|
||||
"bookmark_list": bookmark_list,
|
||||
"tag_cloud": tag_cloud,
|
||||
"details": bookmark_details,
|
||||
@@ -107,6 +110,9 @@ def shared(request: HttpRequest):
|
||||
|
||||
|
||||
def render_bookmarks_view(request: HttpRequest, template_name, context):
|
||||
if context["details"]:
|
||||
context["page_title"] = "Bookmark details - Linkding"
|
||||
|
||||
if turbo.is_frame(request, "details-modal"):
|
||||
return render(
|
||||
request,
|
||||
|
Reference in New Issue
Block a user