feat(devops): Add page_layout
to GitLab repository model
ref: #693 #515
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user