diff options
| author | rubenwardy <rw@rubenwardy.com> | 2020-09-19 19:30:33 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2020-09-19 19:30:33 +0100 |
| commit | a3b3525b7879e3ba7efcc06a9bdc9065fccf0be5 (patch) | |
| tree | 2408d0d900e2e840ecb7e8a448f33c8a43ac6151 /app/templates/base.html | |
| parent | d76f10c31281ded60b7d82bf81383b36f5813da8 (diff) | |
| download | cheatdb-a3b3525b7879e3ba7efcc06a9bdc9065fccf0be5.tar.xz | |
Add work queue icon to navigation bar
Diffstat (limited to 'app/templates/base.html')
| -rw-r--r-- | app/templates/base.html | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/app/templates/base.html b/app/templates/base.html index 239cbe4..fabe2f6 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -60,17 +60,39 @@ </form> <ul class="navbar-nav ml-auto"> {% if current_user.is_authenticated %} - <li class="nav-item"><a class="nav-link notification-icon" href="{{ url_for('notifications.list_all') }}"> - {% if current_user.notifications %} - <i class="fas fa-bell"></i> - <span class="badge badge-pill badge-notify" style="font-size:10px;">{{ current_user.notifications | length }}</span> - {% else %} - <i class="fas fa-bell" ></i> - {% endif %} - </a></li> - <li class="nav-item"><a class="nav-link" href="{{ url_for('packages.create_edit') }}"> - <i class="fas fa-plus"></i> - </a></li> + {% if todo_list_count is not none %} + <li class="nav-item"> + <a class="nav-link notification-icon" + href="{{ url_for('todo.view') }}" + title="{{ _('Work Queue') }}"> + {% if todo_list_count > 0 %} + <i class="fas fa-inbox"></i> + <span class="badge badge-pill badge-notify" style="font-size:10px;">{{ todo_list_count }}</span> + {% else %} + <i class="fas fa-inbox" ></i> + {% endif %} + </a> + </li> + {% endif %} + <li class="nav-item"> + <a class="nav-link notification-icon" + href="{{ url_for('notifications.list_all') }}" + title="{{ _('Notifications') }}"> + {% if current_user.notifications %} + <i class="fas fa-bell"></i> + <span class="badge badge-pill badge-notify" style="font-size:10px;">{{ current_user.notifications | length }}</span> + {% else %} + <i class="fas fa-bell" ></i> + {% endif %} + </a> + </li> + <li class="nav-item"> + <a class="nav-link" + href="{{ url_for('packages.create_edit') }}" + title="{{ _('Add Package') }}"> + <i class="fas fa-plus"></i> + </a> + </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" data-toggle="dropdown" @@ -87,8 +109,8 @@ </li> {% if current_user.canAccessTodoList() %} <li class="nav-item"><a class="nav-link" href="{{ url_for('todo.view') }}">{{ _("Work Queue") }}</a></li> - <li class="nav-item"><a class="nav-link" href="{{ url_for('users.list_all') }}">{{ _("User list") }}</a></li> {% endif %} + <li class="nav-item"><a class="nav-link" href="{{ url_for('users.list_all') }}">{{ _("User list") }}</a></li> <li class="nav-item"> <a class="nav-link" href="{{ url_for('todo.topics') }}">{{ _("All unadded topics") }}</a> </li> |
