templates.enUS.SystemEventGenPage.hbs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smartabyar-smartvillage Show documentation
Show all versions of smartabyar-smartvillage Show documentation
Red Hat Global Social Innovation Program is partnering with Boston University and Smarta Byar in order to collaborate on creating a global and open research platform allowing researchers to study what social sustainability means by using a digital twin of Veberöd, Sweden as the test village, supported by Smarta Byar. The goal of this collaboration is to build the open source technological infrastructure so that researchers can collaborate on this platform effectively to study mobility, public health, sustainability among other study areas to ultimately help define better the link between well being and eco-smart cities.
The newest version!
{{#*inline "htmTitleSystemEventPage"}}
{{#if searchListSystemEvent_}}{{#eq systemEventCount int1}}{{#if id}}system event{{else}}system event{{/if}}{{else}}no system event found{{/eq}}{{else}}system events{{/if}}
{{/inline}}
{{#*inline "htmMetaSystemEventPage"}}{{> "htmMetaPageLayout"}}{{/inline}}
{{#*inline "htmStyleSystemEventPage"}}{{> "htmStylePageLayout"}}{{/inline}}
{{#*inline "htmScriptsSystemEventPage"}}{{> "htmScriptsPageLayout"}}
{{/inline}}
{{#*inline "htmScriptSystemEventPage"}}
{{/inline}}
{{#*inline "websocketSystemEventPage"}}
websocketSystemEvent(websocketSystemEventInner);
{{/inline}}
{{#*inline "jsWebsocketSystemEventPage"}}{{/inline}}
{{#*inline "jsTooltipSystemEventPage"}}{{/inline}}
{{#*inline "htmTooltipSystemEventPage"}}
${feature.properties.objectTitle}
{{/inline}}
{{#*inline "jsLegendSystemEventPage"}}
var div = L.DomUtil.create('div', 'info legend');
var htm = '';
$.each( window.listSystemEvent, function(index, systemEvent) {
if(systemEvent.) {
var shapes = [];
if(Array.isArray(systemEvent.))
shapes = shapes.concat(systemEvent.);
else
shapes.push(systemEvent.);
shapes.forEach(function(shape, index) {
htm += htmLegendSystemEvent(map, shape, systemEvent, index, shapes.length);
});
}
});
div.innerHTML = htm;
return div;
{{/inline}}
{{#*inline "htmLegendSystemEventPage"}}
${title}
{{/inline}}
{{#*inline "jsStyleSystemEventPage"}}
if(feature.geometry.type == 'Point') {
return {
radius: 8
, fillColor: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, weight: 1
, opacity: 0.7
, fillOpacity: 0.7
};
} else if(feature.geometry.type == 'LineString') {
return {
color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, weight: 5
, opacity: 0.7
};
} else {
return {
fillColor: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, color: (feature.properties.areaServedColors && feature.properties.areaServedColors[feature.index] ? feature.properties.areaServedColors[feature.index] : (feature.properties.color ? feature.properties.color : '#000'))
, weight: 3
, opacity: 0.7
, fillOpacity: 0.7
};
}
{{/inline}}
{{#*inline "htmUrlSystemEvent"}}{{pageUri}}?q={{query.q}}&rows={{#if rows}}{{rows}}{{else}}{{pagination.rows}}{{/if}}&rows={{#if start}}{{start}}{{else}}{{pagination.start}}{{/if}}{{#each query.fq}}{{#eq fq this}}{{else}}&fq={{fq}}:{{val}}{{/eq}}{{/each}}{{#each query.sort}}{{#eq sort this}}{{else}}&sort={{var}} {{order}}{{/eq}}{{/each}}{{/inline}}
{{#*inline "htmHeadSystemEventPage"}}{{#block "htmTitle"}}{{/block}}{{#block "htmMeta"}}{{/block}}{{#block "htmStyle"}}{{/block}}{{#block "htmScripts"}}{{/block}}{{#block "htmScript"}}{{/block}}{{/inline}}
{{#*inline "htmBodySearchSystemEventPage"}}
{{#each varsQ}}
{{/each}}
start={{ start }}
rows={{ rows }}
{{/inline}}
{{#*inline "htmBodyFiltersSystemEventPage"}}
{{#each varsFq }}
{{#if val }}fq={{ var }}:{{encodeURIComponent val }}{{/if}}
{{#if facetField.var }}facet.field={{ facetField.var }}{{/if}}
{{#each facetField.counts }}
- {{ @key }}: {{ this }}
{{/each}}
{{/each}}
{{/inline}}
{{#*inline "htmBodyRangeSystemEventPage"}}
{{#if rangeGap }}facet.range.gap={{encodeURIComponent rangeGap }}{{/if}}
{{#if rangeStart }}facet.range.start={{encodeURIComponent rangeStart }}{{/if}}
{{#if rangeEnd }}facet.range.end={{encodeURIComponent rangeEnd }}{{/if}}
{{#if defaultRangeVar }}facet.range={!tag=r1}{{encodeURIComponent defaultRangeVar }}{{/if}}
Range Gap
Range Start
Range End
{{#each varsRange }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyPivotSystemEventPage"}}
{{#if defaultPivotVars }}
facet.pivot={!range=r1}{{#each defaultPivotVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyFieldListSystemEventPage"}}
{{#if defaultFieldListVars }}
fl={{#each defaultFieldListVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyStatsSystemEventPage"}}
{{#if defaultStatsVars }}
{{#each defaultStatsVars }} stats.field={{ this }}
{{/each}}{{/if}}
{{#each varsFq }}
{{#if enableStats }}
{{#if ./stats }}
{{#each ./stats }}
{{#eq @key 'name' }}{{else}}
{{ @key }}: {{ this }}
{{/eq}}
{{/each}}
{{#if ./stats/max }}
step min max speed in seconds {{/if}}
{{/if}}
{{/if}}
{{/each}}
{{/inline}}
{{#*inline "htmBodyMenuSystemEventPage"}}
{{> "htmBodyMenuPageLayout"}}{{/inline}}
{{#*inline "htmBodyGraphSystemEventPage"}}
{{/inline}}
{{#*inline "htmBodyGraphLocationSystemEventPage"}}
{{/inline}}
{{#*inline "htmBodyCount0SystemEventPage"}}
{{#if classIconCssClasses}}
{{/if}}
system events
{{/inline}}
{{#*inline "htmBodyCount1SystemEventPage"}}
{{#if classIconCssClasses}}
{{/if}}
system event
{{/inline}}
{{#*inline "htmBodyAllSystemEventPage"}}
{{#if classIconCssClasses}}
{{/if}}
system events
{{> "table1SystemEventPage"}}
{{/inline}}
{{#*inline "htmFormSystemEventPage"}}
{{#if id}}
{{#block "htmButton_searchpageSystemEvent"}}{{/block}}
{{#block "htmForm_searchpageSystemEvent"}}{{/block}}
{{/if}}
{{/inline}}
{{#*inline "htmButtonSystemEventPage_postSystemEvent"}}
{{/inline}}
{{#*inline "htmFormButtonSystemEventPage_postSystemEvent"}}
{{/inline}}
{{#*inline "htmFormSystemEventPage_postSystemEvent"}}
{{/inline}}
{{#*inline "htmButtonSystemEventPage_patchSystemEvent"}}
{{/inline}}
{{#*inline "htmFormButtonSystemEventPage_patchSystemEvent"}}
{{/inline}}
{{#*inline "htmFormSystemEventPage_patchSystemEvent"}}
{{/inline}}
{{#*inline "htmButtonSystemEventPage_putimportSystemEvent"}}
{{/inline}}
{{#*inline "htmFormButtonSystemEventPage_putimportSystemEvent"}}
{{/inline}}
{{#*inline "htmFormSystemEventPage_putimportSystemEvent"}}
{{/inline}}
{{#*inline "htmButtonSystemEventPage_searchpageSystemEvent"}}
{{/inline}}
{{#*inline "htmFormButtonSystemEventPage_searchpageSystemEvent"}}
{{/inline}}
{{#*inline "htmFormSystemEventPage_searchpageSystemEvent"}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmModified" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmModified" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmModified" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmCreated" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmCreated" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmCreated" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmObjectId" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmObjectId" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmObjectId" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmArchived" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmArchived" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmArchived" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmDeleted" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmDeleted" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmDeleted" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmType" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmType" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmType" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmMessage" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmMessage" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmMessage" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmStatus" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmStatus" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmStatus" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmCompleted" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmCompleted" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmCompleted" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmPageImageUri" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmPageImageUri" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmPageImageUri" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{/inline}}
{{#*inline "htmBodySidebarSystemEventPage"}}
{{/inline}}
{{#*inline "htmBodyStartSystemEventPage"}}
{{> "htmBodyStartPageLayout"}}
{{/inline}}
{{#*inline "htmBodyMiddleSystemEventPage"}}
{{> "htmBodyMiddlePageLayout"}}
{{/inline}}
{{#*inline "htmBodyEndSystemEventPage"}}
{{> "htmBodyEndPageLayout"}}
{{/inline}}
{{#*inline "htmBodySystemEventPage"}}
{{#block "htmBodyStart"}}{{/block}}
{{#block "htmBodyMiddle"}}{{/block}}
{{#block "htmBodyEnd"}}{{/block}}
{{/inline}}
{{#*inline "htmBodyMiddleSystemEventPage"}}
{{#block "htmBodyGraphLocation"}}{{/block}}
{{#block "htmBodyGraph"}}{{/block}}
{{#eq systemEventCount int0}}
{{#block "htmBodyCount0"}}{{/block}}
{{else}}
{{#eq systemEventCount int1}}
{{#if id}}
{{#block "htmBodyCount1"}}{{/block}}
{{else}}
{{#block "htmBodyAll"}}{{/block}}
{{/if}}
{{else}}
{{#block "htmBodyAll"}}{{/block}}
{{/eq}}
{{/eq}}
{{#block "htmForm"}}{{/block}}
{{#block "htmForms"}}{{/block}}
{{/inline}}
{{#*inline "table1SystemEventPage"}}
{{> table2SystemEventPage}}
{{/inline}}
{{#*inline "table2SystemEventPage"}}
{{> "thead1SystemEventPage"}}
{{> "tbody1SystemEventPage"}}
{{> "tfoot1SystemEventPage"}}
{{/inline}}
{{#*inline "thead1SystemEventPage"}}
{{> thead2SystemEventPage}}
{{/inline}}
{{#*inline "thead2SystemEventPage"}}
created
type
message
message
completed
{{/inline}}
{{#*inline "tbody1SystemEventPage"}}
{{> tbody2SystemEventPage}}
{{/inline}}
{{#*inline "tbody2SystemEventPage"}}
{{#each listSystemEvent}}
{{siteZonedDateTimeFormat created "MMM d, yyyy h:mm:ss a" siteLocale}}
{{type}}
{{objectTitle}}
{{message}}
{{status}}
{{siteZonedDateTimeFormat completed "MMM d, yyyy h:mm:ss a" siteLocale}}
{{/each}}
{{/inline}}
{{#*inline "tfoot1SystemEventPage"}}
{{> tfoot2SystemEventPage}}
{{/inline}}
{{#*inline "tfoot2SystemEventPage"}}
{{#if getColumnCreated}}
{{/if}}
{{#if getColumnType}}
{{/if}}
{{#if getColumnObjectTitle}}
{{/if}}
{{#if getColumnMessage}}
{{/if}}
{{#if getColumnStatus}}
{{/if}}
{{#if getColumnCompleted}}
{{/if}}
{{/inline}}
{{#*inline "htmFormsSystemEventPage"}}
{{#ifContainsAnyRoles roles authRoleSuperAdmin}}
{{#eq systemEventCount int1}}
{{/eq}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles authRoleAdmin}}
{{#eq systemEventCount int1}}
{{#if id}}
{{else}}
{{#block "htmButton_postSystemEvent"}}{{/block}}
{{#block "htmForm_postSystemEvent"}}{{/block}}
{{/if}}
{{else}}
{{#block "htmButton_postSystemEvent"}}{{/block}}
{{#block "htmForm_postSystemEvent"}}{{/block}}
{{/eq}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles authRoleSuperAdmin}}
{{#block "htmButton_patchSystemEvent"}}{{/block}}
{{#block "htmForm_patchSystemEvent"}}{{/block}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles authRoleSuperAdmin}}
{{#block "htmButton_putimportSystemEvent"}}{{/block}}
{{#block "htmForm_putimportSystemEvent"}}{{/block}}
{{/ifContainsAnyRoles}}
{{#block "htmSuggested"}}{{/block}}
{{/inline}}
{{#*inline "htmSuggestedSystemEventPage"}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{/ifContainsAnyRoles}}
search system events: