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
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
Felix Blanke
AKPlanning
Commits
cb8403d5
Commit
cb8403d5
authored
1 month ago
by
Felix Blanke
Browse files
Options
Downloads
Patches
Plain Diff
Only add room import if not contained
parent
b7f29221
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#271830
passed
1 month ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AKModel/views/status.py
+6
-1
6 additions, 1 deletion
AKModel/views/status.py
with
6 additions
and
1 deletion
AKModel/views/status.py
+
6
−
1
View file @
cb8403d5
...
...
@@ -76,10 +76,15 @@ class EventRoomsWidget(TemplateStatusWidget):
def
render_actions
(
self
,
context
:
{})
->
list
[
dict
]:
actions
=
super
().
render_actions
(
context
)
# Action has to be added here since it depends on the event for URL building
import_room_url
=
reverse_lazy
(
"
admin:room-import
"
,
kwargs
=
{
"
event_slug
"
:
context
[
"
event
"
].
slug
})
for
action
in
actions
:
if
action
[
"
url
"
]
==
import_room_url
:
return
actions
actions
.
append
(
{
"
text
"
:
_
(
"
Import Rooms from CSV
"
),
"
url
"
:
reverse_lazy
(
"
admin:room-import
"
,
kwargs
=
{
"
event_slug
"
:
context
[
"
event
"
].
slug
})
,
"
url
"
:
import_room_url
,
}
)
return
actions
...
...
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