templates.enUS.SiteHtmGenPage.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 "htmTitleSiteHtmPage"}}
{{#if searchListSiteHtm_}}{{#eq siteHtmCount int1}}{{#if id}}HTML{{else}}HTML{{/if}}{{else}}no HTML found{{/eq}}{{else}}HTMLs{{/if}}
{{/inline}}
{{#*inline "htmMetaSiteHtmPage"}}{{> "htmMetaBaseResultPage"}}{{/inline}}
{{#*inline "htmStyleSiteHtmPage"}}{{> "htmStyleBaseResultPage"}}{{/inline}}
{{#*inline "htmScriptsSiteHtmPage"}}{{> "htmScriptsBaseResultPage"}}
{{/inline}}
{{#*inline "htmScriptSiteHtmPage"}}
{{/inline}}
{{#*inline "websocketSiteHtmPage"}}
websocketSiteHtm(websocketSiteHtmInner);
{{/inline}}
{{#*inline "jsWebsocketSiteHtmPage"}}{{/inline}}
{{#*inline "jsTooltipSiteHtmPage"}}{{/inline}}
{{#*inline "htmTooltipSiteHtmPage"}}
${feature.properties.objectTitle}
{{/inline}}
{{#*inline "jsLegendSiteHtmPage"}}
var div = L.DomUtil.create('div', 'info legend');
var htm = '';
$.each( window.listSiteHtm, function(index, siteHtm) {
if(siteHtm.) {
var shapes = [];
if(Array.isArray(siteHtm.))
shapes = shapes.concat(siteHtm.);
else
shapes.push(siteHtm.);
shapes.forEach(function(shape, index) {
htm += htmLegendSiteHtm(map, shape, siteHtm, index, shapes.length);
});
}
});
div.innerHTML = htm;
return div;
{{/inline}}
{{#*inline "htmLegendSiteHtmPage"}}
${title}
{{/inline}}
{{#*inline "jsStyleSiteHtmPage"}}
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 "htmUrlSiteHtm"}}{{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 "htmHeadSiteHtmPage"}}{{#block "htmTitle"}}{{/block}}{{#block "htmMeta"}}{{/block}}{{#block "htmStyle"}}{{/block}}{{#block "htmScripts"}}{{/block}}{{#block "htmScript"}}{{/block}}{{/inline}}
{{#*inline "htmBodySearchSiteHtmPage"}}
{{#each varsQ}}
{{/each}}
start={{ start }}
rows={{ rows }}
{{/inline}}
{{#*inline "htmBodyFiltersSiteHtmPage"}}
{{#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 "htmBodyRangeSiteHtmPage"}}
{{#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 "htmBodyPivotSiteHtmPage"}}
{{#if defaultPivotVars }}
facet.pivot={!range=r1}{{#each defaultPivotVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyFieldListSiteHtmPage"}}
{{#if defaultFieldListVars }}
fl={{#each defaultFieldListVars }}{{#if @index }},{{/if}}{{ this }}{{/each}}
{{/if}}
{{#each varsFq }}
{{/each}}
{{/inline}}
{{#*inline "htmBodyStatsSiteHtmPage"}}
{{#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 "htmBodyMenuSiteHtmPage"}}
{{> "htmBodyMenuBaseResultPage"}}{{/inline}}
{{#*inline "htmBodyGraphSiteHtmPage"}}
{{/inline}}
{{#*inline "htmBodyGraphLocationSiteHtmPage"}}
{{/inline}}
{{#*inline "htmBodyCount0SiteHtmPage"}}
{{#if classIconCssClasses}}
{{/if}}
HTMLs
{{/inline}}
{{#*inline "htmBodyCount1SiteHtmPage"}}
{{#if classIconCssClasses}}
{{/if}}
HTML
{{/inline}}
{{#*inline "htmBodyAllSiteHtmPage"}}
{{#if classIconCssClasses}}
{{/if}}
HTMLs
{{> "table1SiteHtmPage"}}
{{/inline}}
{{#*inline "htmFormSiteHtmPage"}}
{{#if id}}
{{#block "htmButton_searchpageSiteHtm"}}{{/block}}
{{#block "htmForm_searchpageSiteHtm"}}{{/block}}
{{/if}}
{{/inline}}
{{#*inline "htmButtonSiteHtmPage_postSiteHtm"}}
{{/inline}}
{{#*inline "htmFormButtonSiteHtmPage_postSiteHtm"}}
{{/inline}}
{{#*inline "htmFormSiteHtmPage_postSiteHtm"}}
{{/inline}}
{{#*inline "htmButtonSiteHtmPage_patchSiteHtm"}}
{{/inline}}
{{#*inline "htmFormButtonSiteHtmPage_patchSiteHtm"}}
{{/inline}}
{{#*inline "htmFormSiteHtmPage_patchSiteHtm"}}
{{/inline}}
{{#*inline "htmButtonSiteHtmPage_putimportSiteHtm"}}
{{/inline}}
{{#*inline "htmFormButtonSiteHtmPage_putimportSiteHtm"}}
{{/inline}}
{{#*inline "htmFormSiteHtmPage_putimportSiteHtm"}}
{{/inline}}
{{#*inline "htmButtonSiteHtmPage_searchpageSiteHtm"}}
{{/inline}}
{{#*inline "htmFormButtonSiteHtmPage_searchpageSiteHtm"}}
{{/inline}}
{{#*inline "htmFormSiteHtmPage_searchpageSiteHtm"}}
{{#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}}
{{> "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}}
{{> "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}}
{{> "htmUrl" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmUrl" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmUrl" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmUri" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmUri" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmUri" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmPageId" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmPageId" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmPageId" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{> "htmSequenceNum" roleForWriteBool="true" roleForReadBool="true"}}
{{else}}
{{#ifContainsAnyRoles roles roleForRead}}
{{> "htmSequenceNum" roleForWriteBool="false" roleForReadBool="true"}}
{{else}}
{{> "htmSequenceNum" roleForWriteBool="false" roleForReadBool="false"}}
{{/ifContainsAnyRoles}}
{{/ifContainsAnyRoles}}
{{/inline}}
{{#*inline "htmBodySidebarSiteHtmPage"}}
{{/inline}}
{{#*inline "htmBodyStartSiteHtmPage"}}
{{> "htmBodyStartBaseResultPage"}}
{{/inline}}
{{#*inline "htmBodyMiddleSiteHtmPage"}}
{{> "htmBodyMiddleBaseResultPage"}}
{{/inline}}
{{#*inline "htmBodyEndSiteHtmPage"}}
{{> "htmBodyEndBaseResultPage"}}
{{/inline}}
{{#*inline "htmBodySiteHtmPage"}}
{{#block "htmBodyStart"}}{{/block}}
{{#block "htmBodyMiddle"}}{{/block}}
{{#block "htmBodyEnd"}}{{/block}}
{{/inline}}
{{#*inline "htmBodyMiddleSiteHtmPage"}}
{{#block "htmBodyGraphLocation"}}{{/block}}
{{#block "htmBodyGraph"}}{{/block}}
{{#eq siteHtmCount int0}}
{{#block "htmBodyCount0"}}{{/block}}
{{else}}
{{#eq siteHtmCount 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 "table1SiteHtmPage"}}
{{> table2SiteHtmPage}}
{{/inline}}
{{#*inline "table2SiteHtmPage"}}
{{> "thead1SiteHtmPage"}}
{{> "tbody1SiteHtmPage"}}
{{> "tfoot1SiteHtmPage"}}
{{/inline}}
{{#*inline "thead1SiteHtmPage"}}
{{> thead2SiteHtmPage}}
{{/inline}}
{{#*inline "thead2SiteHtmPage"}}
ID
created
Page URL
URI
Page ID
Sequence Number
{{/inline}}
{{#*inline "tbody1SiteHtmPage"}}
{{> tbody2SiteHtmPage}}
{{/inline}}
{{#*inline "tbody2SiteHtmPage"}}
{{#each listSiteHtm}}
{{objectId}}
{{siteZonedDateTimeFormat created "MMM d, yyyy h:mm:ss a" siteLocale}}
{{objectTitle}}
{{url}}
{{uri}}
{{pageId}}
{{sequenceNum}}
{{/each}}
{{/inline}}
{{#*inline "tfoot1SiteHtmPage"}}
{{> tfoot2SiteHtmPage}}
{{/inline}}
{{#*inline "tfoot2SiteHtmPage"}}
{{#if getColumnObjectId}}
{{/if}}
{{#if getColumnCreated}}
{{/if}}
{{#if getColumnObjectTitle}}
{{/if}}
{{#if getColumnUrl}}
{{/if}}
{{#if getColumnUri}}
{{/if}}
{{#if getColumnPageId}}
{{/if}}
{{#if getColumnSequenceNum}}
{{/if}}
{{/inline}}
{{#*inline "htmFormsSiteHtmPage"}}
{{#ifContainsAnyRoles roles authRoleSuperAdmin}}
{{#eq siteHtmCount int1}}
{{/eq}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles authRoleAdmin}}
{{#eq siteHtmCount int1}}
{{#if id}}
{{else}}
{{#block "htmButton_postSiteHtm"}}{{/block}}
{{#block "htmForm_postSiteHtm"}}{{/block}}
{{/if}}
{{else}}
{{#block "htmButton_postSiteHtm"}}{{/block}}
{{#block "htmForm_postSiteHtm"}}{{/block}}
{{/eq}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles authRoleSuperAdmin}}
{{#block "htmButton_patchSiteHtm"}}{{/block}}
{{#block "htmForm_patchSiteHtm"}}{{/block}}
{{/ifContainsAnyRoles}}
{{#ifContainsAnyRoles roles authRoleSuperAdmin}}
{{#block "htmButton_putimportSiteHtm"}}{{/block}}
{{#block "htmForm_putimportSiteHtm"}}{{/block}}
{{/ifContainsAnyRoles}}
{{#block "htmSuggested"}}{{/block}}
{{/inline}}
{{#*inline "htmSuggestedSiteHtmPage"}}
{{#ifContainsAnyRoles roles roleForWrite}}
{{/ifContainsAnyRoles}}
search HTMLs: