feat(devops): Add page_layout
to GitHub repository model
ref: #693 #515
This commit is contained in:
@ -63,7 +63,60 @@ class GitHubRepository(
|
||||
documentation = ''
|
||||
|
||||
|
||||
# page_layout: dict = []
|
||||
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": [
|
||||
'wiki',
|
||||
'issues',
|
||||
'sponsorships',
|
||||
],
|
||||
"right": [
|
||||
'preserve_this_repository',
|
||||
'discussions',
|
||||
'projects',
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Knowledge Base",
|
||||
"slug": "kb_articles",
|
||||
"sections": [
|
||||
{
|
||||
"layout": "table",
|
||||
"field": "knowledge_base",
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Notes",
|
||||
"slug": "notes",
|
||||
"sections": []
|
||||
},
|
||||
]
|
||||
|
||||
# table_fields: list = [
|
||||
# 'name',
|
||||
|
Reference in New Issue
Block a user