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
Compare revisions
e96da61ba7f4f8ce54188dfb4a19766f97a4a6b4 to 207430ead6642469e5910940595881894a47e02b
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
kif/akplanning
Select target project
No results found
207430ead6642469e5910940595881894a47e02b
Select Git revision
Branches
komasolver
main
renovate/django-5.x
renovate/django-debug-toolbar-5.x
renovate/django_csp-4.x
renovate/djangorestframework-3.x
renovate/tzdata-2025.x
renovate/uwsgi-2.x
8 results
Swap
Target
kif/akplanning
Select target project
konstantin/akplanning
matedealer/akplanning
kif/akplanning
mirco/akplanning
lordofthevoid/akplanning
voidptr/akplanning
xayomer/akplanning-fork
mollux/akplanning
neumantm/akplanning
mmarx/akplanning
nerf/akplanning
felix_bonn/akplanning
sebastian.uschmann/akplanning
13 results
e96da61ba7f4f8ce54188dfb4a19766f97a4a6b4
Select Git revision
Branches
komasolver
main
renovate/django-5.x
renovate/django-debug-toolbar-5.x
renovate/django_csp-4.x
renovate/djangorestframework-3.x
renovate/tzdata-2025.x
renovate/uwsgi-2.x
8 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Only add room import if not contained
· cb8403d5
Felix Blanke
authored
2 months ago
cb8403d5
Merge branch 'fix/add-room-import-only-once' into 'main'
· 207430ea
Benjamin Hättasch
authored
2 months ago
Fix: Only add room import button once See merge request
kif/akplanning!239
207430ea
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
View file @
207430ea
...
...
@@ -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.