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
Commits
4ac5f7ad
Commit
4ac5f7ad
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Plain Diff
Merge branch '540-fix-notifications-on-the-dashboard' into 'master'
Resolve "Fix notifications on the dashboard" Closes
#540
See merge request
!785
parents
37719f27
6e800bb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!785
Resolve "Fix notifications on the dashboard"
Pipeline
#41895
canceled
3 years ago
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+2
-0
2 additions, 0 deletions
CHANGELOG.rst
aleksis/core/templates/core/index.html
+1
-1
1 addition, 1 deletion
aleksis/core/templates/core/index.html
aleksis/core/views.py
+3
-3
3 additions, 3 deletions
aleksis/core/views.py
with
6 additions
and
4 deletions
CHANGELOG.rst
+
2
−
0
View file @
4ac5f7ad
...
...
@@ -13,6 +13,8 @@ Fixed
~~~~~
* Use new MaterializeCSS fork because the old version is no longer maintained.
* Sender wasn't displayed for notifications on dashboard.
* Notifications and activities on dashboard weren't sorted from old to new.
`2.1.1`_ - 2021-11-14
---------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/templates/core/index.html
+
1
−
1
View file @
4ac5f7ad
...
...
@@ -85,7 +85,7 @@
<ul
class=
"collection"
>
{% for notification in notifications %}
<li
class=
"collection-item"
>
<span
class=
"badge new primary-color"
>
{{ notification.
app
}}
</span>
<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 }}
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/views.py
+
3
−
3
View file @
4ac5f7ad
...
...
@@ -184,9 +184,9 @@ def index(request: HttpRequest) -> HttpResponse:
person
=
DummyPerson
()
widgets
=
[]
activities
=
person
.
activities
.
all
()[:
5
]
notifications
=
person
.
notifications
.
all
()[:
5
]
unread_notifications
=
person
.
notifications
.
all
().
filter
(
read
=
False
)
activities
=
person
.
activities
.
all
()
.
order_by
(
"
-created
"
)
[:
5
]
notifications
=
person
.
notifications
.
all
()
.
order_by
(
"
-created
"
)
[:
5
]
unread_notifications
=
person
.
notifications
.
all
().
filter
(
read
=
False
)
.
order_by
(
"
-created
"
)
context
[
"
activities
"
]
=
activities
context
[
"
notifications
"
]
=
notifications
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment