mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
adding device cloud header
This commit is contained in:
parent
91e0e3978c
commit
a9888b5cf7
@ -17,5 +17,9 @@
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
{{#zone "title"}}
|
{{#zone "title"}}
|
||||||
|
{{#if isCloud}}
|
||||||
|
{{@unit.params.pageTitle}} | WSO2 Device Cloud
|
||||||
|
{{else}}
|
||||||
{{@unit.params.pageTitle}} | {{@app.conf.appName}}
|
{{@unit.params.pageTitle}} | {{@app.conf.appName}}
|
||||||
|
{{/if}}
|
||||||
{{/zone}}
|
{{/zone}}
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
function onRequest(context) {
|
||||||
|
|
||||||
|
var deviceMgtProps = require("/app/modules/conf-reader/main.js")["conf"];
|
||||||
|
var viewModel = {};
|
||||||
|
viewModel.isCloud = deviceMgtProps.isCloud;
|
||||||
|
return viewModel;
|
||||||
|
|
||||||
|
}
|
||||||
@ -16,5 +16,9 @@
|
|||||||
under the License.
|
under the License.
|
||||||
}}
|
}}
|
||||||
{{#zone "favicon"}}
|
{{#zone "favicon"}}
|
||||||
|
{{#if isCloud}}
|
||||||
|
<link rel="shortcut icon" href="{{@unit.publicUri}}/img/cloud-favicon.png" />
|
||||||
|
{{else}}
|
||||||
<link rel="shortcut icon" href="{{@unit.publicUri}}/img/favicon.png" />
|
<link rel="shortcut icon" href="{{@unit.publicUri}}/img/favicon.png" />
|
||||||
|
{{/if}}
|
||||||
{{/zone}}
|
{{/zone}}
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
function onRequest(context) {
|
||||||
|
|
||||||
|
var deviceMgtProps = require("/app/modules/conf-reader/main.js")["conf"];
|
||||||
|
var viewModel = {};
|
||||||
|
viewModel.isCloud = deviceMgtProps.isCloud;
|
||||||
|
return viewModel;
|
||||||
|
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 882 B |
Loading…
Reference in New Issue
Block a user