feat(devops): Add page_layout to GitLab repository model

ref: #693 #515
This commit is contained in:
2025-03-22 19:23:31 +09:30
parent e2ca5b8587
commit bfd54c112b

View File

@ -34,6 +34,55 @@ class GitLabRepository(
documentation = ''
page_layout: dict = [
{
"name": "Details",
"slug": "details",
"sections": [
{
"layout": "double",
"left": [
'organization',
'provider',
'git_group',
'path',
'name',
],
"right": [
'model_notes',
'description',
'provider_id',
'created',
'modified',
]
},
{
"name": "Settings",
"layout": "double",
"left": [
'visibility',
],
"right": []
}
]
},
{
"name": "Knowledge Base",
"slug": "kb_articles",
"sections": [
{
"layout": "table",
"field": "knowledge_base",
}
]
},
{
"name": "Notes",
"slug": "notes",
"sections": []
},
]
def get_url_kwargs_notes(self) -> dict:
"""Fetch the URL kwargs for model notes