Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Merge requests
!447
Resolve "Add own menu entry for notifications"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Add own menu entry for notifications"
327-add-own-menu-entry-for-notifications
into
master
Overview
6
Commits
5
Pipelines
3
Changes
6
All threads resolved!
Hide all comments
Merged
Jonathan Weth
requested to merge
327-add-own-menu-entry-for-notifications
into
master
4 years ago
Overview
6
Commits
5
Pipelines
3
Changes
6
All threads resolved!
Hide all comments
Expand
Closes
#327 (closed)
Edited
4 years ago
by
Jonathan Weth
0
0
Merge request reports
Viewing commit
ec82cb36
Prev
Next
Show latest version
6 files
+
64
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
Verified
ec82cb36
Add own page with own menu item for notifications
· ec82cb36
Jonathan Weth
authored
4 years ago
aleksis/core/templates/core/notifications.html
0 → 100644
+
32
−
0
Options
{% extends 'core/base.html' %}
{% load i18n static dashboard %}
{% block browser_title %}{% blocktrans %}Notifications{% endblocktrans %}{% endblock %}
{% block page_title %}{% blocktrans %}Notifications{% endblocktrans %}{% endblock %}
{% block content %}
{% if object_list %}
<ul
class=
"collection"
>
{% for notification in object_list %}
<li
class=
"collection-item"
>
<span
class=
"badge new primary-color"
>
{{ notification.sender }}
</span>
<span
class=
"title"
>
{{ notification.title }}
</span>
<p>
<i
class=
"material-icons left"
>
access_time
</i>
{{ notification.created }}
</p>
<p>
{{ notification.description }}
</p>
{% if notification.link %}
<p>
<a
href=
"{{ notification.link }}"
>
{% blocktrans %}More information →{% endblocktrans %}
</a>
</p>
{% endif %}
</li>
{% endfor %}
</ul>
{% else %}
<p>
{% blocktrans %}No notifications available yet.{% endblocktrans %}
</p>
{% endif %}
{% endblock %}
Loading