jsharmony-cms
Version:
33 lines • 2.97 kB
JSON
{
"Publish_History_Listing": {
"layout":"grid",
"table":"{schema}.v_my_deployment",
"caption":["Deployment","Deployments"],
"title":"Publish History",
"menu":"jsHarmonyCMS/Publish_History_Listing",
"breadcrumbs":"#CMS_SITE_BREADCRUMBS",
"oninit": "jsh.System.RequireSite(xmodel);",
"noresultsmessage":"No publish history.",
"tablestyle":"min-width:450px;",
"sqlwhere":"deployment_sts not in ('PENDING','RUNNING') and (site_id={schema}.my_current_site_id())",
"actions":"B",
"roles": {"PUBLISHER": "B"},
"sort":["vdeployment_date"],
"fields": [
{"name":"deployment_id","key":true,"control":"hidden"},
{"name":"site_name","caption":"Site Name","sqlselect":"(select site_name from {schema}.site inner join {schema}.deployment_target on {schema}.deployment_target.site_id={schema}.site.site_id where {schema}.deployment_target.deployment_target_id={schema}.v_my_deployment.deployment_target_id)"},
{"name":"deployment_target_name","caption":"Deployment Target","sqlselect":"(select deployment_target_name from {schema}.deployment_target where {schema}.deployment_target.deployment_target_id={schema}.v_my_deployment.deployment_target_id)"},
{"name":"deployment_tag","caption":"Tag","control":"label","link":"update:Publish_Log"},
{"name":"deployment_date","caption":"Scheduled For","format":"date:'YYYY-MM-DD hh:mm A'","type":"datetime"},
{"name":"deployment_sts","caption":"Status"},
{"name":"branch_id","control":"hidden"},
{"name":"branch_desc","caption":"Deployment Archive","cellstyle":"min-width:200px;","sqlselect":"(select branch_desc from {schema}.v_my_branch_desc where branch_id={schema}.v_my_deployment.branch_id)","link":"update:Branch_Summary&branch_id"},
{"name":"parent_branch_id","type":"bigint","control":"hidden","sqlselect":"(select branch_parent_id from {schema}.branch where branch_id={schema}.v_my_deployment.branch_id)"},
{"name":"parent_branch_desc","caption":"Source","cellstyle":"min-width:200px;","sqlselect":"(select branch_desc from {schema}.v_my_branch_desc where branch_id=(select branch_parent_id from {schema}.branch where branch_id={schema}.v_my_deployment.branch_id))","link":"update:Branch_Summary&branch_id=parent_branch_id"},
{"name":"deployment_etstmp","caption":"Entered","control":"label","actions":"B","format":["date","MM/DD/YYYY h:mm a"]},
{"name":"deployment_euser_fmt","caption":"Entered By","sqlselect":"(jsharmony.my_db_user_fmt(deployment_euser))","control":"label","actions":"B"},
{"caption":"View","control":"html","link":"update:Publish_Log","value":"<img src='/images/icon_browse.png' class='xicon' />","captionstyle":"text-align:center;","cellstyle":"text-align:center;"},
{"caption":"Redeploy","control":"linkbutton","link":"update:Publish_Redeploy&deployment_id","captionstyle":"text-align:center;","cellstyle":"text-align:center;"}
]
}
}