|
144 | 144 | <div class="flex items-center h-[var(--dd-topbar-height)] px-4 bg-dd-primary-900 flex-shrink-0"> |
145 | 145 | {% block header_logo %} |
146 | 146 | <a href="{% url 'home' %}" class="flex items-center gap-2 min-w-0"> |
147 | | - <img src="{% static "dojo/img/favicon.png" %}" alt="DefectDojo" class="w-8 h-8 flex-shrink-0"> |
| 147 | + <img src="{% static "dojo/img/favicon.png" %}" alt="{% trans 'DefectDojo' %}" class="w-8 h-8 flex-shrink-0"> |
148 | 148 | <span class="text-lg font-semibold text-white truncate">DefectDojo</span> |
149 | 149 | </a> |
150 | 150 | {% endblock %} |
151 | 151 | </div> |
152 | 152 |
|
153 | 153 | <!-- Nav items --> |
154 | | - <nav class="flex-1 py-3 space-y-0.5" aria-label="Main navigation"> |
| 154 | + <nav class="flex-1 py-3 space-y-0.5" aria-label="{% trans 'Main navigation' %}"> |
155 | 155 | {% block sidebar-items %} |
156 | 156 | <!-- Dashboard --> |
157 | 157 | <a href="{% url 'dashboard' %}" class="flex items-center gap-3 px-4 py-2 text-gray-300 hover:text-white hover:bg-white/10 transition-colors"> |
|
401 | 401 | <div class="flex"> |
402 | 402 | <input id="simple_search" type="text" name="query" value="{{ clean_query }}" |
403 | 403 | class="flex-1 rounded-l-md border border-r-0 border-gray-300 px-3 py-1.5 text-sm focus:border-dd-primary-400 focus:ring-dd-primary-400" |
404 | | - placeholder="{% trans "Search" %}..." aria-label="Search"> |
405 | | - <button type="submit" class="btn btn-primary rounded-l-none" aria-label="Search"> |
| 404 | + placeholder="{% trans "Search" %}..." aria-label="{% trans 'Search' %}"> |
| 405 | + <button type="submit" class="btn btn-primary rounded-l-none" aria-label="{% trans 'Search' %}"> |
406 | 406 | <i class="fa-solid fa-magnifying-glass"></i> |
407 | 407 | </button> |
408 | 408 | </div> |
|
444 | 444 | <button @click="userOpen = !userOpen" |
445 | 445 | :aria-expanded="userOpen" aria-controls="user-dropdown" |
446 | 446 | class="flex items-center gap-1 p-2 text-gray-500 hover:text-gray-700 transition-colors" |
447 | | - aria-label="User Menu"> |
| 447 | + aria-label="{% trans 'User Menu' %}"> |
448 | 448 | <i class="fa-solid fa-user"></i> |
449 | 449 | <i class="fa-solid fa-caret-down text-xs"></i> |
450 | 450 | </button> |
|
493 | 493 | {% if request.user.is_authenticated and announcement %} |
494 | 494 | <div role="alert" class="announcement-banner alert alert-{{ announcement.style }} {% if announcement.dismissable %}alert-dismissible{% endif %} show"> |
495 | 495 | {% if announcement.dismissable %} |
496 | | - <a href="{% url 'dismiss_announcement' %}" class="close" aria-label="Close"> |
| 496 | + <a href="{% url 'dismiss_announcement' %}" class="close" aria-label="{% trans 'Close' %}"> |
497 | 497 | <span aria-hidden="true">×</span> |
498 | 498 | </a> |
499 | 499 | {% endif %} |
|
507 | 507 | <form method="post" action="{% url 'dismiss_os_message' %}" class="os-message-dismiss-form"> |
508 | 508 | {% csrf_token %} |
509 | 509 | <input type="hidden" name="token" value="{{ banner.dismiss_token }}"> |
510 | | - <button type="submit" class="os-message-dismiss" aria-label="Dismiss" title="Dismiss this message">×</button> |
| 510 | + <button type="submit" class="os-message-dismiss" aria-label="{% trans 'Dismiss' %}" title="{% trans 'Dismiss this message' %}">×</button> |
511 | 511 | </form> |
512 | 512 | {% endif %} |
513 | 513 | {{ banner.message|safe }}{% if banner.url %} <a href="{{ banner.url }}">{{ banner.link_text }}</a>{% endif %} |
@@ -886,7 +886,7 @@ <h3 class="no-margin-top" style="padding-bottom: 5px;"> |
886 | 886 | {% for message in messages %} |
887 | 887 | <div class="alert {{ message.tags }} alert-dismissible" role="alert" |
888 | 888 | x-data="{ show: true }" x-show="show" x-transition> |
889 | | - <button type="button" class="close" @click="show = false" aria-label="Close"> |
| 889 | + <button type="button" class="close" @click="show = false" aria-label="{% trans 'Close' %}"> |
890 | 890 | <span aria-hidden="true">×</span> |
891 | 891 | </button> |
892 | 892 | {{ message }} |
|
0 commit comments