forked from EscherLabs/Graphene
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwidget_templates.js
19 lines (19 loc) · 13.7 KB
/
widget_templates.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
if (!!!templates) var templates = {};
templates["spinner"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<center><i class=\"fa fa-spinner fa-spin\" style=\"font-size:60px;margin:20px auto;color:#d8d8d8\"></i></center>");return t.fl(); },partials: {}, subs: { }});
templates["widgets__actions"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"btn-group pull-right actions parent-hover\" style=\"position:absolute;top:3px;right:3px;z-index:6\">");t.b("\n" + i);t.b(" <span class=\"btn btn-default btn-sm fa-pencil fa wf-edit edit-item\" title=\"Edit Settings\"></span>");t.b("\n" + i);t.b(" <span class=\"btn btn-default btn-sm fa-eye fa wf-manage\" data-event=\"manage\" title=\"Visibility Settings\"></span>");t.b("\n" + i);t.b(" ");if(t.s(t.f("enable_min",c,p,1),c,p,0,349,444,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("<span class=\"btn btn-default btn-sm ti-toggle wf-min\" data-event=\"min\" title=\"Minimize\"></span>");});c.pop();}t.b("\n" + i);t.b(" <span class=\"btn btn-danger btn-sm fa fa-times wf-remove remove-item\" title=\"Remove\"></span>");t.b("\n" + i);t.b(" <!-- <span class=\"btn btn-default btn-sm fa fa-download wf-download\" data-event=\"download\" title=\"Download Summary\"></span> -->");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {}, subs: { }});
templates["widgets__header"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"panel-heading\" style=\"position:relative\">");t.b("\n" + i);t.b(" <h3 class=\"panel-title\">");t.b(t.v(t.f("title",c,p,0)));if(!t.s(t.f("title",c,p,1),c,p,1,0,0,"")){t.b(t.t(t.f("widgetType",c,p,0)));};t.b("</h3>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {}, subs: { }});
templates["widgets__limited_actions"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"btn-group pull-right actions parent-hover\" style=\"position:absolute;top:3px;right:3px;z-index:6\">");t.b("\n" + i);t.b(" ");if(t.s(t.f("enable_min",c,p,1),c,p,0,126,221,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("<span class=\"btn btn-default btn-sm ti-toggle wf-min\" data-event=\"min\" title=\"Minimize\"></span>");});c.pop();}t.b("\n" + i);t.b(" ");if(t.s(t.f("user_edit",c,p,1),c,p,0,252,364,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("<span class=\"btn btn-default btn-sm fa fa-pencil wf-edit edit-item\" data-event=\"user_edit\" title=\"Edit\"></span>");});c.pop();}t.b("\n" + i);t.b("<!-- <span class=\"btn btn-default btn-sm fa fa-resize hidden-xs\" data-event=\"full\" title=\"Full Page\"></span>");t.b("\n" + i);t.b(" -->");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {}, subs: { }});
templates["widgets_chart"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"panel panel-default\">");t.b("\n" + i);t.b(" <div class=\"panel-heading\" style=\"position:relative\">");t.b("\n" + i);t.b(" <h3 class=\"panel-title\"><i class=\"fa fa-list-ul\"></i> ");t.b(t.v(t.f("title",c,p,0)));if(!t.s(t.f("title",c,p,1),c,p,1,0,0,"")){t.b(t.v(t.d("loaded.title",c,p,0)));if(!t.s(t.d("loaded.title",c,p,1),c,p,1,0,0,"")){t.b(t.t(t.f("widgetType",c,p,0)));};};t.b(" </h3>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b(" <div class=\"panel-body collapsible\">");t.b("\n" + i);t.b(" <div class=\"tab-pane chart\" style=\"min-height:200px;\">");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b(" <div class=\"legend\"></div>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {}, subs: { }});
templates["widgets_container"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div style=\"position:relative;");if(t.s(t.f("collapsed",c,p,1),c,p,0,44,59,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("min-height:30px");});c.pop();}t.b("\" class=\"widget ");t.b(t.v(t.f("widgetType",c,p,0)));t.b(" ");if(t.s(t.f("limit",c,p,1),c,p,0,114,192,"{{ }}")){t.rs(c,p,function(c,p,t){if(t.s(t.d("group.ids",c,p,1),c,p,0,128,140,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("group_");t.b(t.v(t.d(".",c,p,0)));t.b(" ");});c.pop();}if(!t.s(t.d("group.ids",c,p,1),c,p,1,0,0,"")){t.b("group_all ");};});c.pop();}if(!t.s(t.f("limit",c,p,1),c,p,1,0,0,"")){t.b("group_all");};t.b(" ");t.b(t.v(t.f("device",c,p,0)));t.b(" ");if(t.s(t.f("collapsed",c,p,1),c,p,0,257,269,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("wf-collapsed");});c.pop();}t.b("\" id=\"");t.b(t.v(t.f("id",c,p,0)));t.b("\">");t.b("\n" + i);t.b(t.rp("<widgets__limited_actions0",c,p," "));t.b("</div>");return t.fl(); },partials: {"<widgets__limited_actions0":{name:"widgets__limited_actions", partials: {}, subs: { }}}, subs: { }});
templates["widgets_content"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"panel panel-default\">");t.b("\n" + i);t.b(t.rp("<widgets__header0",c,p," "));t.b(" <div class=\"collapsible panel-body\">");t.b("\n" + i);t.b(" <div>");t.b("\n" + i);t.b(" ");t.b(t.t(t.f("text",c,p,0)));t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {"<widgets__header0":{name:"widgets__header", partials: {}, subs: { }}}, subs: { }});
templates["widgets_edit_container"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div style=\"position:relative;min-height:30px\" class=\"widget ");if(t.s(t.f("collapsed",c,p,1),c,p,0,75,87,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("wf-collapsed");});c.pop();}t.b("\" id=\"");t.b(t.v(t.f("id",c,p,0)));t.b("\">");t.b("\n" + i);t.b(t.rp("<widgets__actions0",c,p," "));t.b("</div>");return t.fl(); },partials: {"<widgets__actions0":{name:"widgets__actions", partials: {}, subs: { }}}, subs: { }});
templates["widgets_edit_links_container"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div style=\"position:relative;min-height:30px\" class=\"widget ");if(t.s(t.f("collapsed",c,p,1),c,p,0,75,87,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("wf-collapsed");});c.pop();}t.b("\" id=\"");t.b(t.v(t.f("id",c,p,0)));t.b("\"></div>");return t.fl(); },partials: {}, subs: { }});
templates["widgets_empty_microapp"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div>");t.b("\n" + i);t.b(" <div class=\"panel panel-default on-collapse\">");t.b("\n" + i);t.b(t.rp("<widgets__header0",c,p," "));t.b(" </div>");t.b("\n" + i);t.b(" <div class=\"collapsible ");if(t.s(t.f("collapsed",c,p,1),c,p,0,123,158,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("wf-collapsed\" style=\"display: none;");});c.pop();}t.b("\">");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {"<widgets__header0":{name:"widgets__header", partials: {}, subs: { }}}, subs: { }});
templates["widgets_events"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"panel panel-default\">");t.b("\n" + i);t.b(" <div class=\"panel-heading\" style=\"position:relative\">");t.b("\n" + i);t.b(" <h3 class=\"panel-title\"><i class=\"fa fa-list-ul\"></i> ");t.b(t.v(t.f("title",c,p,0)));if(!t.s(t.f("title",c,p,1),c,p,1,0,0,"")){t.b(t.v(t.d("loaded.title",c,p,0)));if(!t.s(t.d("loaded.title",c,p,1),c,p,1,0,0,"")){t.b(t.t(t.f("widgetType",c,p,0)));};};t.b(" </h3>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b(" <div class=\"panel-body collapsible\" style=\"padding:0\">");t.b("\n" + i);t.b(" <div class=\"list-group\" style=\"margin-bottom:0\">");t.b("\n" + i);if(t.s(t.f("loaded",c,p,1),c,p,0,376,532,"{{ }}")){t.rs(c,p,function(c,p,t){t.b(" <a href=\"javascript:void(0);\" class=\"list-group-item\">");t.b(t.v(t.f("eventName",c,p,0)));t.b(" ");t.b("\n" + i);t.b(" <abbr class=\"timeago pull-right\" title=\"");t.b(t.v(t.f("startDateTime",c,p,0)));t.b("\"></abbr>");t.b("\n" + i);t.b(" </a>");t.b("\n" + i);});c.pop();}t.b(" </div>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {}, subs: { }});
templates["widgets_html"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"collapsible\">");t.b("\n" + i);t.b(" ");t.b(t.t(t.f("html",c,p,0)));t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {}, subs: { }});
templates["widgets_html_container"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"panel panel-default\">");t.b("\n" + i);t.b(t.rp("<widgets__header0",c,p," "));t.b(" <div class=\"collapsible panel-body\">");t.b("\n" + i);t.b(" <div>");t.b("\n" + i);t.b(" ");t.b(t.t(t.f("html",c,p,0)));t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {"<widgets__header0":{name:"widgets__header", partials: {}, subs: { }}}, subs: { }});
templates["widgets_image"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<center class=\"collapsible\">");t.b("\n" + i);if(t.s(t.f("image",c,p,1),c,p,0,40,123,"{{ }}")){t.rs(c,p,function(c,p,t){t.b(" <img alt=\"");t.b(t.v(t.f("text",c,p,0)));t.b("\" src=\"");t.b(t.v(t.f("image",c,p,0)));t.b("\" style=\"max-width:100%;margin-bottom:20px\">");t.b("\n" + i);});c.pop();}t.b(" ");if(!t.s(t.f("image",c,p,1),c,p,1,0,0,"")){t.b("Click Here to choose an Image");};t.b("\n" + i);t.b("</center>");return t.fl(); },partials: {}, subs: { }});
templates["widgets_image_header"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div class=\"panel panel-default\">");t.b("\n" + i);t.b(t.rp("<widgets__header0",c,p," "));t.b(" <center class=\"collapsible panel-body\">");t.b("\n" + i);if(t.s(t.f("image",c,p,1),c,p,0,109,194,"{{ }}")){t.rs(c,p,function(c,p,t){t.b(" <img alt=\"");t.b(t.v(t.f("text",c,p,0)));t.b("\" src=\"");t.b(t.v(t.f("image",c,p,0)));t.b("\" style=\"max-width:100%;margin-bottom:20px\">");t.b("\n" + i);});c.pop();}t.b(" ");if(!t.s(t.f("image",c,p,1),c,p,1,0,0,"")){t.b("Click Here to choose an Image");};t.b("\n" + i);t.b(" </center>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {"<widgets__header0":{name:"widgets__header", partials: {}, subs: { }}}, subs: { }});
templates["widgets_microapp"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");if(t.s(t.f("container",c,p,1),c,p,0,14,233,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("<div class=\"panel panel-default\">");t.b("\n" + i);t.b("<div class=\"panel-heading\" style=\"position:relative\">");t.b("\n" + i);t.b(" <h3 class=\"panel-title\">");t.b(t.v(t.f("title",c,p,0)));if(!t.s(t.f("title",c,p,1),c,p,1,0,0,"")){t.b(t.v(t.d("loaded.name",c,p,0)));if(!t.s(t.d("loaded.name",c,p,1),c,p,1,0,0,"")){t.b(t.t(t.f("widgetType",c,p,0)));};};t.b("</h3>");t.b("\n" + i);t.b("</div>");t.b("\n" + i);});c.pop();}t.b("\n" + i);t.b(" <div class=\"collapsible panel-body ");if(t.s(t.f("collapsed",c,p,1),c,p,0,299,311,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("wf-collapsed");});c.pop();}t.b("\" style=\"overflow: auto;");if(t.s(t.f("collapsed",c,p,1),c,p,0,363,377,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("display: none;");});c.pop();}t.b("\">");t.b("\n" + i);t.b(" <center><i class=\"fa fa-spinner fa-spin\" style=\"font-size:60px;margin:40px auto;color:#eee\"></i></center>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);if(t.s(t.f("container",c,p,1),c,p,0,524,532,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("</div>");t.b("\n" + i);});c.pop();}return t.fl(); },partials: {}, subs: { }});
templates["widgets_slide_header"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div>");t.b("\n" + i);t.b(" <div class=\"panel panel-default\">");t.b("\n" + i);t.b(t.rp("<widgets__header0",c,p," "));t.b(" </div>");t.b("\n" + i);t.b(" <div class=\"collapsible\">");t.b("\n" + i);t.b(" <div class=\"slider-wrapper theme-default\">");t.b("\n" + i);t.b(" <div class=\"ribbon\"></div>");t.b("\n" + i);t.b(" <div class=\"slider\" class=\"nivoSlider\">");t.b("\n" + i);if(t.s(t.f("images",c,p,1),c,p,0,229,388,"{{ }}")){t.rs(c,p,function(c,p,t){t.b(" ");if(t.s(t.f("url",c,p,1),c,p,0,242,298,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("<a href=\"");t.b(t.v(t.f("url",c,p,0)));t.b("\" ");if(t.s(t.f("window",c,p,1),c,p,0,271,286,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("target=\"_blank\"");});c.pop();}t.b(">");});c.pop();}t.b("<img src=\"");t.b(t.v(t.f("image",c,p,0)));t.b("\" alt=\"");t.b(t.v(t.f("text",c,p,0)));t.b("\" title=\"");t.b(t.t(t.f("overlay",c,p,0)));t.b("\"/>");if(t.s(t.f("url",c,p,1),c,p,0,372,376,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("</a>");});c.pop();}t.b("\n" + i);});c.pop();}t.b(" </div>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {"<widgets__header0":{name:"widgets__header", partials: {}, subs: { }}}, subs: { }});
templates["widgets_slider"] = new Hogan.Template({code: function (c,p,i) { var t=this;t.b(i=i||"");t.b("<div>");t.b("\n" + i);t.b(" <div class=\"panel panel-default on-collapse\">");t.b("\n" + i);t.b(t.rp("<widgets__header0",c,p," "));t.b(" </div>");t.b("\n" + i);t.b(" <div class=\"collapsible\">");t.b("\n" + i);t.b(" <div class=\"slider-wrapper theme-default\">");t.b("\n" + i);t.b(" <div class=\"ribbon\"></div>");t.b("\n" + i);t.b(" <div class=\"slider\" class=\"nivoSlider\">");t.b("\n" + i);if(t.s(t.f("images",c,p,1),c,p,0,241,400,"{{ }}")){t.rs(c,p,function(c,p,t){t.b(" ");if(t.s(t.f("url",c,p,1),c,p,0,254,310,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("<a href=\"");t.b(t.v(t.f("url",c,p,0)));t.b("\" ");if(t.s(t.f("window",c,p,1),c,p,0,283,298,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("target=\"_blank\"");});c.pop();}t.b(">");});c.pop();}t.b("<img src=\"");t.b(t.v(t.f("image",c,p,0)));t.b("\" alt=\"");t.b(t.v(t.f("text",c,p,0)));t.b("\" title=\"");t.b(t.t(t.f("overlay",c,p,0)));t.b("\"/>");if(t.s(t.f("url",c,p,1),c,p,0,384,388,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("</a>");});c.pop();}t.b("\n" + i);});c.pop();}t.b(" </div>");t.b("\n" + i);t.b(" </div>");t.b("\n" + i);t.b("</div>");return t.fl(); },partials: {"<widgets__header0":{name:"widgets__header", partials: {}, subs: { }}}, subs: { }});