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
abb9ce12
Verified
Commit
abb9ce12
authored
3 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' into 474-check-for-correct-semantic-html-elements
parents
3bc5a44d
0b1ce1d9
No related branches found
No related tags found
1 merge request
!657
Resolve "Check for correct semantic html elements"
Pipeline
#18103
passed
3 years ago
Stage: test
Stage: build
Stage: publish
Stage: docker
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.rst
+16
-1
16 additions, 1 deletion
CHANGELOG.rst
aleksis/core/preferences.py
+20
-0
20 additions, 0 deletions
aleksis/core/preferences.py
aleksis/core/templates/core/index.html
+3
-1
3 additions, 1 deletion
aleksis/core/templates/core/index.html
with
39 additions
and
2 deletions
CHANGELOG.rst
+
16
−
1
View file @
abb9ce12
...
...
@@ -12,11 +12,25 @@ Unreleased
Changed
~~~~~~~
* Use semantically correct html elements for headings and alerts.
`2.0b2` - 2021-06-15
--------------------
Added
~~~~~~~
* Add option to disable dashboard auto updating as a user and sitewide.
Changed
~~~~~~~
* Add verbose names for all preference sections.
* Add verbose names for all openid connect scopes and show them in grant
view.
* Include public dashboard in navigation
* U
se semantically correct html elements for headings and alert
s.
* U
pdate German translation
s.
Fixed
~~~~~
...
...
@@ -252,3 +266,4 @@ Fixed
.. _2.0a2: https://edugit.org/AlekSIS/Official/AlekSIS/-/tags/2.0a2
.. _2.0b0: https://edugit.org/AlekSIS/Official/AlekSIS/-/tags/2.0b0
.. _2.0b1: https://edugit.org/AlekSIS/Official/AlekSIS/-/tags/2.0b1
.. _2.0b2: https://edugit.org/AlekSIS/Official/AlekSIS/-/tags/2.0b2
This diff is collapsed.
Click to expand it.
aleksis/core/preferences.py
+
20
−
0
View file @
abb9ce12
...
...
@@ -386,3 +386,23 @@ class PDFFileExpirationDuration(IntegerPreference):
default
=
3
verbose_name
=
_
(
"
PDF file expiration duration
"
)
help_text
=
_
(
"
in minutes
"
)
@person_preferences_registry.register
class
AutoUpdatingDashboard
(
BooleanPreference
):
"""
User preference for automatically updating the dashboard.
"""
section
=
general
name
=
"
automatically_update_dashboard
"
default
=
True
verbose_name
=
_
(
"
Automatically update the dashboard and its widgets
"
)
@site_preferences_registry.register
class
AutoUpdatingDashboardSite
(
BooleanPreference
):
"""
Automatic updating of dashboard.
"""
section
=
general
name
=
"
automatically_update_dashboard_site
"
default
=
True
verbose_name
=
_
(
"
Automatically update the dashboard and its widgets sitewide
"
)
This diff is collapsed.
Click to expand it.
aleksis/core/templates/core/index.html
+
3
−
1
View file @
abb9ce12
...
...
@@ -108,5 +108,7 @@
</div>
{% endif %}
<script
type=
"text/javascript"
src=
"{% static "
js
/
include_ajax_live.js
"
%}"
></script>
{% if user.person.preferences.general__automatically_update_dashboard and request.site.preferences.general__automatically_update_dashboard_site %}
<script
type=
"text/javascript"
src=
"{% static "
js
/
include_ajax_live.js
"
%}"
></script>
{% endif %}
{% endblock %}
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