Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AKPlanning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KIF
AKPlanning
Merge requests
!220
Show constraint violations as widget on status page
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Show constraint violations as widget on status page
520-status
into
main
Overview
0
Commits
1
Pipelines
3
Changes
4
Merged
Benjamin Hättasch
requested to merge
520-status
into
main
1 year ago
Overview
0
Commits
1
Pipelines
3
Changes
4
Expand
0
0
Merge request reports
Compare
main
version 3
43be5b69
1 year ago
version 2
23f9149d
1 year ago
version 1
23f9149d
1 year ago
main (base)
and
latest version
latest version
ca80f91d
1 commit,
1 year ago
version 3
43be5b69
1 commit,
1 year ago
version 2
23f9149d
3 commits,
1 year ago
version 1
23f9149d
9 commits,
1 year ago
4 files
+
98
−
50
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
AKModel/views/status.py
+
0
−
7
Options
from
django.apps
import
apps
from
django.apps
import
apps
from
django.urls
import
reverse_lazy
from
django.urls
import
reverse_lazy
from
django.utils.html
import
format_html
from
django.utils.translation
import
gettext_lazy
as
_
from
django.utils.translation
import
gettext_lazy
as
_
from
AKModel.metaviews
import
status_manager
from
AKModel.metaviews
import
status_manager
@@ -112,12 +111,6 @@ class EventAKsWidget(TemplateStatusWidget):
@@ -112,12 +111,6 @@ class EventAKsWidget(TemplateStatusWidget):
]
]
if
apps
.
is_installed
(
"
AKScheduling
"
):
if
apps
.
is_installed
(
"
AKScheduling
"
):
actions
.
extend
([
actions
.
extend
([
{
"
text
"
:
format_html
(
'
{} <span class=
"
badge bg-secondary
"
>{}</span>
'
,
_
(
"
Constraint Violations
"
),
context
[
"
event
"
].
constraintviolation_set
.
count
()),
"
url
"
:
reverse_lazy
(
"
admin:constraint-violations
"
,
kwargs
=
{
"
slug
"
:
context
[
"
event
"
].
slug
}),
},
{
{
"
text
"
:
_
(
"
AKs requiring special attention
"
),
"
text
"
:
_
(
"
AKs requiring special attention
"
),
"
url
"
:
reverse_lazy
(
"
admin:special-attention
"
,
kwargs
=
{
"
slug
"
:
context
[
"
event
"
].
slug
}),
"
url
"
:
reverse_lazy
(
"
admin:special-attention
"
,
kwargs
=
{
"
slug
"
:
context
[
"
event
"
].
slug
}),
Loading