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"}}
|
||||
{{@unit.params.pageTitle}} | {{@app.conf.appName}}
|
||||
{{#if isCloud}}
|
||||
{{@unit.params.pageTitle}} | WSO2 Device Cloud
|
||||
{{else}}
|
||||
{{@unit.params.pageTitle}} | {{@app.conf.appName}}
|
||||
{{/if}}
|
||||
{{/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.
|
||||
}}
|
||||
{{#zone "favicon"}}
|
||||
<link rel="shortcut icon" href="{{@unit.publicUri}}/img/favicon.png" />
|
||||
{{#if isCloud}}
|
||||
<link rel="shortcut icon" href="{{@unit.publicUri}}/img/cloud-favicon.png" />
|
||||
{{else}}
|
||||
<link rel="shortcut icon" href="{{@unit.publicUri}}/img/favicon.png" />
|
||||
{{/if}}
|
||||
{{/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