2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-barcode-4.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M4 16v-8h2v8h-2zm12 0v-8h2v8h-2zm-9 0v-8h1v8h-1zm2 0v-8h2v8h-2zm3 0v-8h1v8h-1zm2 0v-8h1v8h-1zm5 0v-8h1v8h-1zm1-10h2v2h2v-4h-4v2zm-18 2v-2h2v-2h-4v4h2zm2 10h-2v-2h-2v4h4v-2zm18-2v2h-2v2h4v-4h-2zm-20-6h-2v4h2v-4zm22 0h-2v4h2v-4zm-13-6h-5v2h5v-2zm7 0h-5v2h5v-2zm-7 14h-5v2h5v-2zm7 0h-5v2h5v-2z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-calendar-6.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M24 2v22h-24v-22h3v1c0 1.103.897 2 2 2s2-.897 2-2v-1h10v1c0 1.103.897 2 2 2s2-.897 2-2v-1h3zm-2 6h-20v14h20v-14zm-2-7c0-.552-.447-1-1-1s-1 .448-1 1v2c0 .552.447 1 1 1s1-.448 1-1v-2zm-14 2c0 .552-.447 1-1 1s-1-.448-1-1v-2c0-.552.447-1 1-1s1 .448 1 1v2zm1 11.729l.855-.791c1 .484 1.635.852 2.76 1.654 2.113-2.399 3.511-3.616 6.106-5.231l.279.64c-2.141 1.869-3.709 3.949-5.967 7.999-1.393-1.64-2.322-2.686-4.033-4.271z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-certificate-15.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M18.625 19.46c-.264 1.696-.97 3.247-2.1 4.54-.065-.461-.254-.908-.433-1.266-.409.216-.899.33-1.328.33l-.265-.016c1.199-1.25 1.791-2.544 1.965-4.27.281.079.623.12 1.053.12.415.284.578.46 1.108.562zm4.875 3.589c-1.197-1.248-1.782-2.549-1.957-4.271-.283.079-.625.122-1.061.122-.414.285-.587.461-1.106.561.264 1.697.97 3.247 2.099 4.54.065-.461.254-.908.433-1.266.51.269 1.131.372 1.592.314zm-4.992-4.829c-.704-.494-.552-.447-1.423-.444h-.002c-.362 0-.685-.225-.794-.557-.267-.797-.176-.673-.879-1.163-.302-.208-.418-.577-.307-.9.273-.793.273-.641 0-1.438-.109-.32.002-.691.307-.9.703-.488.611-.365.879-1.163.109-.333.432-.557.794-.557h.002c.87.002.718.052 1.423-.444.146-.102.318-.154.492-.154s.346.052.492.154c.704.495.552.447 1.423.444h.001c.363 0 .686.224.797.557.266.796.172.673.877 1.163.223.153.348.397.348.65l-.042.25c-.272.793-.272.641 0 1.438.111.317 0 .69-.306.9-.705.489-.611.366-.877 1.163-.205.614-.656.555-1.18.555-.463 0-.465.042-1.041.446-.293.207-.691.207-.984 0zm.492-1.814c1.088 0 1.969-.882 1.969-1.969 0-1.087-.881-1.969-1.969-1.969s-1.969.881-1.969 1.969c0 1.087.881 1.969 1.969 1.969zm-4.674 1.333c-1.675 1.058-3.561 2.247-3.952 2.493-.043-.772-.329-1.492-.828-2.084-.058-.074-5.813-7.4-7.222-9.204-1.109-1.42-.06-2.934 1.23-2.934 1.694 0 2.369 2.207.894 3.163l1.163 1.486 8.053-4.551c1.396-1.032 1.79-2.938.914-4.434-.605-1.032-1.726-1.674-2.924-1.674-.475 0-.936.098-1.373.292l-8.264 4.227c-1.301.624-2.017 1.846-2.017 3.147 0 .816.282 1.663.877 2.412 1.444 1.815 7.261 9.253 7.319 9.328.862 1.147.017 2.753-1.376 2.753-.989 0-1.516-.705-1.667-1.308-.176-.705.069-1.407.773-1.858l-1.141-1.458c-.855.602-1.4 1.515-1.507 2.536-.228 2.174 1.504 3.929 3.557 3.929.63 0 1.255-.174 1.807-.502l5.485-3.458c.264-.415.529-1.431.199-2.301zm-3.319-15.755c.203-.095.431-.145.659-.145.577 0 1.082.305 1.349.816.338.645.244 1.59-.594 2.071l-5.307 3.006c0-1.191-.581-2.284-1.57-2.952l5.463-2.796zm1.987 6.267l1.725 2.117c.348-.525.858-.921 1.46-1.121l-1.562-1.916-1.623.92zm-2.886 8.043l2.871-1.628-.633-.825-2.863 1.661.625.792zm1.842-6.987l-5.012 2.943.624.792 5.026-2.951-.638-.784zm1.286 1.597l-5.035 2.965.624.792 5.049-2.974-.638-.783z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-compass-7.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm1.608 9.476l-1.608-5.476-1.611 5.477c-.429.275-.775.658-1.019 1.107l-5.37 1.416 5.37 1.416c.243.449.589.833 1.019 1.107l1.611 5.477 1.618-5.479c.428-.275.771-.659 1.014-1.109l5.368-1.412-5.368-1.413c-.244-.452-.592-.836-1.024-1.111zm-1.608 4.024c-.828 0-1.5-.672-1.5-1.5s.672-1.5 1.5-1.5 1.5.672 1.5 1.5-.672 1.5-1.5 1.5zm5.25 3.75l-2.573-1.639c.356-.264.67-.579.935-.934l1.638 2.573zm-2.641-8.911l2.64-1.588-1.588 2.639c-.29-.407-.645-.761-1.052-1.051zm-5.215 7.325l-2.644 1.586 1.589-2.641c.29.408.646.764 1.055 1.055zm-1.005-6.34l-1.638-2.573 2.573 1.638c-.357.264-.672.579-.935.935z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-download-12.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M6 13h4v-7h4v7h4l-6 6-6-6zm16-1c0 5.514-4.486 10-10 10s-10-4.486-10-10 4.486-10 10-10 10 4.486 10 10zm2 0c0-6.627-5.373-12-12-12s-12 5.373-12 12 5.373 12 12 12 12-5.373 12-12z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-email-2.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M0 3v18h24v-18h-24zm6.623 7.929l-4.623 5.712v-9.458l4.623 3.746zm-4.141-5.929h19.035l-9.517 7.713-9.518-7.713zm5.694 7.188l3.824 3.099 3.83-3.104 5.612 6.817h-18.779l5.513-6.812zm9.208-1.264l4.616-3.741v9.348l-4.616-5.607z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-error-4.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M16.143 2l5.857 5.858v8.284l-5.857 5.858h-8.286l-5.857-5.858v-8.284l5.857-5.858h8.286zm.828-2h-9.942l-7.029 7.029v9.941l7.029 7.03h9.941l7.03-7.029v-9.942l-7.029-7.029zm-6.471 6h3l-1 8h-1l-1-8zm1.5 12.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-flag-3.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M4 24h-2v-24h2v24zm18-21.387s-1.621 1.43-3.754 1.43c-3.36 0-3.436-2.895-7.337-2.895-2.108 0-4.075.98-4.909 1.694v12.085c1.184-.819 2.979-1.681 4.923-1.681 3.684 0 4.201 2.754 7.484 2.754 2.122 0 3.593-1.359 3.593-1.359v-12.028z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-home-7.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M20 7.093v-5.093h-3v2.093l3 3zm4 5.907l-12-12-12 12h3v10h7v-5h4v5h7v-10h3zm-5 8h-3v-5h-8v5h-3v-10.26l7-6.912 7 6.99v10.182z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-info-8.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2.033 16.01c.564-1.789 1.632-3.932 1.821-4.474.273-.787-.211-1.136-1.74.209l-.34-.64c1.744-1.897 5.335-2.326 4.113.613-.763 1.835-1.309 3.074-1.621 4.03-.455 1.393.694.828 1.819-.211.153.25.203.331.356.619-2.498 2.378-5.271 2.588-4.408-.146zm4.742-8.169c-.532.453-1.32.443-1.761-.022-.441-.465-.367-1.208.164-1.661.532-.453 1.32-.442 1.761.022.439.466.367 1.209-.164 1.661z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-key-3.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M12.451 17.337l-2.451 2.663h-2v2h-2v2h-6v-1.293l7.06-7.06c-.214-.26-.413-.533-.599-.815l-6.461 6.461v-2.293l6.865-6.949c1.08 2.424 3.095 4.336 5.586 5.286zm11.549-9.337c0 4.418-3.582 8-8 8s-8-3.582-8-8 3.582-8 8-8 8 3.582 8 8zm-3-3c0-1.104-.896-2-2-2s-2 .896-2 2 .896 2 2 2 2-.896 2-2z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-magnifier-4.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M23.111 20.058l-4.977-4.977c.965-1.52 1.523-3.322 1.523-5.251 0-5.42-4.409-9.83-9.829-9.83-5.42 0-9.828 4.41-9.828 9.83s4.408 9.83 9.829 9.83c1.834 0 3.552-.505 5.022-1.383l5.021 5.021c2.144 2.141 5.384-1.096 3.239-3.24zm-20.064-10.228c0-3.739 3.043-6.782 6.782-6.782s6.782 3.042 6.782 6.782-3.043 6.782-6.782 6.782-6.782-3.043-6.782-6.782zm2.01-1.764c1.984-4.599 8.664-4.066 9.922.749-2.534-2.974-6.993-3.294-9.922-.749z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-mobile-phone-7.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M5 6c-1.104 0-2 .896-2 2v14c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2v-14c0-1.104-.896-2-2-2h-8zm2 15h-2v-1h2v1zm0-2h-2v-1h2v1zm3 2h-2v-1h2v1zm0-2h-2v-1h2v1zm3 2h-2v-1h2v1zm0-2h-2v-1h2v1zm0-3h-8v-7h8v7zm0-11.688c.944-.001 1.889.359 2.608 1.08.721.72 1.082 1.664 1.082 2.606h1.554c-.001-1.341-.514-2.684-1.538-3.707-1.025-1.022-2.365-1.533-3.706-1.532v1.553zm0-2.718c1.639-.001 3.277.623 4.53 1.874 1.251 1.25 1.877 2.892 1.878 4.531h1.592c-.001-2.047-.782-4.096-2.345-5.658-1.562-1.562-3.609-2.341-5.655-2.34v1.593z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-pen-14.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M12.014 6.54s2.147-3.969 3.475-6.54l8.511 8.511c-2.583 1.321-6.556 3.459-6.556 3.459l-5.43-5.43zm-8.517 6.423s-1.339 5.254-3.497 8.604l.827.826 3.967-3.967c.348-.348.569-.801.629-1.288.034-.27.153-.532.361-.74.498-.498 1.306-.498 1.803 0 .498.499.498 1.305 0 1.803-.208.209-.469.328-.74.361-.488.061-.94.281-1.288.63l-3.967 3.968.826.84c3.314-2.133 8.604-3.511 8.604-3.511l4.262-7.837-3.951-3.951-7.836 4.262z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-tag-3.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M10.605 0h-10.604v10.609l13.39 13.391 10.609-10.605-13.395-13.395zm-7.019 6.414c-.781-.782-.781-2.047 0-2.828.782-.781 2.048-.781 2.828-.002.782.783.782 2.048 0 2.83-.781.781-2.046.781-2.828 0zm6.823 8.947l-4.243-4.242.708-.708 4.243 4.243-.708.707zm4.949.707l-7.07-7.071.707-.707 7.071 7.071-.708.707zm2.121-2.121l-7.071-7.071.707-.707 7.071 7.071-.707.707z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-user-5.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M19 7.001c0 3.865-3.134 7-7 7s-7-3.135-7-7c0-3.867 3.134-7.001 7-7.001s7 3.134 7 7.001zm-1.598 7.18c-1.506 1.137-3.374 1.82-5.402 1.82-2.03 0-3.899-.685-5.407-1.822-4.072 1.793-6.593 7.376-6.593 9.821h24c0-2.423-2.6-8.006-6.598-9.819z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-warning-8.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M12 5.177l8.631 15.823h-17.262l8.631-15.823zm0-4.177l-12 22h24l-12-22zm-1 9h2v6h-2v-6zm1 9.75c-.689 0-1.25-.56-1.25-1.25s.561-1.25 1.25-1.25 1.25.56 1.25 1.25-.561 1.25-1.25 1.25z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "img/iconmonstr-x-mark-8.svg" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path d=\"M24 3.752l-4.423-3.752-7.771 9.039-7.647-9.008-4.159 4.278c2.285 2.885 5.284 5.903 8.362 8.708l-8.165 9.447 1.343 1.487c1.978-1.335 5.981-4.373 10.205-7.958 4.304 3.67 8.306 6.663 10.229 8.006l1.449-1.278-8.254-9.724c3.287-2.973 6.584-6.354 8.831-9.245z\"/></svg>" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "index.html" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"utf-8\"/>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n <title>Certidude server</title>\n <link href=\"/css/style.css\" rel=\"stylesheet\" type=\"text/css\"/>\n <script type=\"text/javascript\" src=\"/js/jquery-2.1.4.min.js\"></script>\n <script type=\"text/javascript\" src=\"/js/nunjucks-slim.min.js\"></script>\n <script type=\"text/javascript\" src=\"/js/templates.js\"></script>\n <script type=\"text/javascript\" src=\"/js/certidude.js\"></script>\n <link rel=\"shortcut icon\" href=\"data:image/x-icon;,\" type=\"image/x-icon\">\n</head>\n<body>\n <nav id=\"menu\">\n <ul class=\"container\">\n <li data-section=\"about\">Profile</li>\n <li id=\"section-requests\" data-section=\"requests\" style=\"display:none;\">Requests</li>\n <li id=\"section-signed\" data-section=\"signed\" style=\"display:none;\">Signed</li>\n <li id=\"section-revoked\" data-section=\"revoked\" style=\"display:none;\">Revoked</li>\n <li id=\"section-config\" data-section=\"config\" style=\"display:none;\">Configuration</li>\n <li id=\"section-log\" data-section=\"log\" style=\"display:none;\">Log</li>\n </ul>\n </nav>\n <div id=\"container\" class=\"container\">\n Loading certificate authority...\n </div>\n</body>\n\n<footer>\n <a href=\"http://github.com/laurivosandi/certidude\">Certidude</a> by\n <a href=\"http://github.com/laurivosandi/\">Lauri Võsandi</a>\n</footer>\n\n</html>\n\n" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
2016-03-21 21:42:39 +00:00
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/authority.html" ] = ( function ( ) {
2016-02-17 14:16:00 +00:00
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "\n<section id=\"about\">\n<h2>" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "user" ) ) , "gn" ) , env . opts . autoescape ) ;
output += " " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "user" ) ) , "sn" ) , env . opts . autoescape ) ;
output += " (" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "user" ) ) , "name" ) , env . opts . autoescape ) ;
output += ") settings</h2>\n\n<p>Mails will be sent to: " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "user" ) ) , "mail" ) , env . opts . autoescape ) ;
output += "</p>\n\n<p>You can click <a href=\"/api/bundle/\">here</a> to generate bundle\nfor current user account.</p>\n\n" ;
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) {
output += "\n\n<h2>Authority certificate</h2>\n\n<p>Several things such as CRL location and e-mails are hardcoded into\nthe <a href=\"/api/certificate\">certificate</a> and\nas such require complete reset of X509 infrastructure if some of them needs to be changed:</p>\n\n<p>Mails will appear from: " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "certificate" ) ) , "email_address" ) , env . opts . autoescape ) ;
output += "</p>\n\n\n<h2>Authority settings</h2>\n\n<p>These can be reconfigured via /etc/certidude/server.conf on the server.</p>\n\n<p>Outgoing mail server:\n" ;
if ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "outbox" ) ) {
output += "\n " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "outbox" ) , env . opts . autoescape ) ;
output += "\n" ;
;
2016-02-17 14:16:00 +00:00
}
2016-03-21 21:42:39 +00:00
else {
output += "\n E-mail disabled\n" ;
2016-02-17 14:16:00 +00:00
;
}
2016-03-21 21:42:39 +00:00
output += "</p>\n\n<p>Authenticated users allowed from:\n\n" ;
2016-03-27 20:38:14 +00:00
if ( runtime . inOperator ( "0.0.0.0/0" , runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "user_subnets" ) ) ) {
2016-03-21 21:42:39 +00:00
output += "\n anywhere\n </p>\n" ;
;
2016-02-17 14:16:00 +00:00
}
2016-03-21 21:42:39 +00:00
else {
output += "\n </p>\n <ul>\n " ;
2016-02-17 14:16:00 +00:00
frame = frame . push ( ) ;
2016-03-27 20:38:14 +00:00
var t _3 = runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "user_subnets" ) ;
2016-02-17 14:16:00 +00:00
if ( t _3 ) { var t _2 = t _3 . length ;
for ( var t _1 = 0 ; t _1 < t _3 . length ; t _1 ++ ) {
var t _4 = t _3 [ t _1 ] ;
frame . set ( "i" , t _4 ) ;
frame . set ( "loop.index" , t _1 + 1 ) ;
frame . set ( "loop.index0" , t _1 ) ;
frame . set ( "loop.revindex" , t _2 - t _1 ) ;
frame . set ( "loop.revindex0" , t _2 - t _1 - 1 ) ;
frame . set ( "loop.first" , t _1 === 0 ) ;
frame . set ( "loop.last" , t _1 === t _2 - 1 ) ;
frame . set ( "loop.length" , t _2 ) ;
2016-03-21 21:42:39 +00:00
output += "\n <li>" ;
2016-02-17 14:16:00 +00:00
output += runtime . suppressValue ( t _4 , env . opts . autoescape ) ;
2016-03-21 21:42:39 +00:00
output += "</li>\n " ;
2016-02-17 14:16:00 +00:00
;
}
}
frame = frame . pop ( ) ;
2016-03-21 21:42:39 +00:00
output += "\n </ul>\n" ;
2016-02-17 14:16:00 +00:00
;
}
2016-03-21 21:42:39 +00:00
output += "\n\n\n<p>Request submission is allowed from:\n\n" ;
2016-03-27 20:38:14 +00:00
if ( runtime . inOperator ( "0.0.0.0/0" , runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "request_subnets" ) ) ) {
2016-03-21 21:42:39 +00:00
output += "\n anywhere\n </p>\n" ;
2016-02-17 14:16:00 +00:00
;
}
2016-03-21 21:42:39 +00:00
else {
output += "\n </p>\n <ul>\n " ;
2016-02-17 14:16:00 +00:00
frame = frame . push ( ) ;
2016-03-27 20:38:14 +00:00
var t _7 = runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "request_subnets" ) ;
2016-02-17 14:16:00 +00:00
if ( t _7 ) { var t _6 = t _7 . length ;
for ( var t _5 = 0 ; t _5 < t _7 . length ; t _5 ++ ) {
var t _8 = t _7 [ t _5 ] ;
2016-03-21 21:42:39 +00:00
frame . set ( "subnet" , t _8 ) ;
2016-02-17 14:16:00 +00:00
frame . set ( "loop.index" , t _5 + 1 ) ;
frame . set ( "loop.index0" , t _5 ) ;
frame . set ( "loop.revindex" , t _6 - t _5 ) ;
frame . set ( "loop.revindex0" , t _6 - t _5 - 1 ) ;
frame . set ( "loop.first" , t _5 === 0 ) ;
frame . set ( "loop.last" , t _5 === t _6 - 1 ) ;
frame . set ( "loop.length" , t _6 ) ;
2016-03-21 21:42:39 +00:00
output += "\n <li>" ;
2016-02-17 14:16:00 +00:00
output += runtime . suppressValue ( t _8 , env . opts . autoescape ) ;
2016-03-21 21:42:39 +00:00
output += "</li>\n " ;
2016-02-17 14:16:00 +00:00
;
}
}
frame = frame . pop ( ) ;
2016-03-21 21:42:39 +00:00
output += "\n </ul>\n" ;
2016-02-17 14:16:00 +00:00
;
}
2016-03-21 21:42:39 +00:00
output += "\n\n<p>Autosign is allowed from:\n" ;
2016-03-27 20:38:14 +00:00
if ( runtime . inOperator ( "0.0.0.0/0" , runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "autosign_subnets" ) ) ) {
2016-03-21 21:42:39 +00:00
output += "\n anywhere\n </p>\n" ;
2016-02-17 14:16:00 +00:00
;
}
2016-03-21 21:42:39 +00:00
else {
output += "\n </p>\n <ul>\n " ;
2016-02-17 14:16:00 +00:00
frame = frame . push ( ) ;
2016-03-21 21:42:39 +00:00
var t _11 = runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "autosign_subnets" ) ;
2016-02-17 14:16:00 +00:00
if ( t _11 ) { var t _10 = t _11 . length ;
for ( var t _9 = 0 ; t _9 < t _11 . length ; t _9 ++ ) {
var t _12 = t _11 [ t _9 ] ;
2016-03-21 21:42:39 +00:00
frame . set ( "subnet" , t _12 ) ;
2016-02-17 14:16:00 +00:00
frame . set ( "loop.index" , t _9 + 1 ) ;
frame . set ( "loop.index0" , t _9 ) ;
frame . set ( "loop.revindex" , t _10 - t _9 ) ;
frame . set ( "loop.revindex0" , t _10 - t _9 - 1 ) ;
frame . set ( "loop.first" , t _9 === 0 ) ;
frame . set ( "loop.last" , t _9 === t _10 - 1 ) ;
frame . set ( "loop.length" , t _10 ) ;
2016-03-21 21:42:39 +00:00
output += "\n <li>" ;
2016-02-17 14:16:00 +00:00
output += runtime . suppressValue ( t _12 , env . opts . autoescape ) ;
2016-03-21 21:42:39 +00:00
output += "</li>\n " ;
2016-02-17 14:16:00 +00:00
;
}
}
frame = frame . pop ( ) ;
2016-03-21 21:42:39 +00:00
output += "\n </ul>\n" ;
2016-02-17 14:16:00 +00:00
;
}
2016-03-21 21:42:39 +00:00
output += "\n\n<p>Authority administration is allowed from:\n" ;
2016-03-27 20:38:14 +00:00
if ( runtime . inOperator ( "0.0.0.0/0" , runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "admin_subnets" ) ) ) {
2016-03-21 21:42:39 +00:00
output += "\n anywhere\n </p>\n" ;
2016-02-17 14:16:00 +00:00
;
}
2016-03-21 21:42:39 +00:00
else {
output += "\n <ul>\n " ;
2016-02-17 14:16:00 +00:00
frame = frame . push ( ) ;
2016-03-27 20:38:14 +00:00
var t _15 = runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "admin_subnets" ) ;
2016-02-17 14:16:00 +00:00
if ( t _15 ) { var t _14 = t _15 . length ;
for ( var t _13 = 0 ; t _13 < t _15 . length ; t _13 ++ ) {
var t _16 = t _15 [ t _13 ] ;
2016-03-21 21:42:39 +00:00
frame . set ( "subnet" , t _16 ) ;
2016-02-17 14:16:00 +00:00
frame . set ( "loop.index" , t _13 + 1 ) ;
frame . set ( "loop.index0" , t _13 ) ;
frame . set ( "loop.revindex" , t _14 - t _13 ) ;
frame . set ( "loop.revindex0" , t _14 - t _13 - 1 ) ;
frame . set ( "loop.first" , t _13 === 0 ) ;
frame . set ( "loop.last" , t _13 === t _14 - 1 ) ;
frame . set ( "loop.length" , t _14 ) ;
2016-03-21 21:42:39 +00:00
output += "\n <li>" ;
2016-02-17 14:16:00 +00:00
output += runtime . suppressValue ( t _16 , env . opts . autoescape ) ;
2016-03-21 21:42:39 +00:00
output += "</li>\n " ;
;
}
}
frame = frame . pop ( ) ;
output += "\n </ul>\n" ;
;
}
output += "\n\n<p>Authority administration allowed for:</p>\n\n<ul>\n" ;
frame = frame . push ( ) ;
2016-03-27 20:38:14 +00:00
var t _19 = runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "admin_users" ) ;
if ( t _19 ) { var t _18 = t _19 . length ;
for ( var t _17 = 0 ; t _17 < t _19 . length ; t _17 ++ ) {
var t _20 = t _19 [ t _17 ] ;
frame . set ( "user" , t _20 ) ;
2016-03-21 21:42:39 +00:00
frame . set ( "loop.index" , t _17 + 1 ) ;
frame . set ( "loop.index0" , t _17 ) ;
frame . set ( "loop.revindex" , t _18 - t _17 ) ;
frame . set ( "loop.revindex0" , t _18 - t _17 - 1 ) ;
frame . set ( "loop.first" , t _17 === 0 ) ;
frame . set ( "loop.last" , t _17 === t _18 - 1 ) ;
frame . set ( "loop.length" , t _18 ) ;
2016-03-27 20:38:14 +00:00
output += "\n <li><a href=\"mailto:" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( t _20 ) , "mail" ) , env . opts . autoescape ) ;
output += "\">" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( t _20 ) , "given_name" ) , env . opts . autoescape ) ;
output += " " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( t _20 ) , "surname" ) , env . opts . autoescape ) ;
output += "</a></li>\n" ;
2016-02-17 14:16:00 +00:00
;
}
}
frame = frame . pop ( ) ;
2016-03-21 21:42:39 +00:00
output += "\n</ul>\n</section>\n\n" ;
;
}
else {
output += "\n<p>Here you can renew your certificates</p>\n\n" ;
;
}
output += "\n\n" ;
2016-03-27 20:38:14 +00:00
var t _21 ;
t _21 = runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "certificate" ) ) , "identity" ) ;
frame . set ( "s" , t _21 , true ) ;
2016-02-17 14:16:00 +00:00
if ( frame . topLevel ) {
2016-03-27 20:38:14 +00:00
context . setVariable ( "s" , t _21 ) ;
2016-02-17 14:16:00 +00:00
}
if ( frame . topLevel ) {
2016-03-27 20:38:14 +00:00
context . addExport ( "s" , t _21 ) ;
2016-02-17 14:16:00 +00:00
}
2016-03-21 21:42:39 +00:00
output += "\n\n\n" ;
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) {
output += "\n<section id=\"requests\">\n <h1>Pending requests</h1>\n\n <p>Submit a certificate signing request with Certidude:</p>\n <pre>certidude setup client " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "</pre>\n\n <ul id=\"pending_requests\">\n " ;
2016-02-17 14:16:00 +00:00
frame = frame . push ( ) ;
2016-03-27 20:38:14 +00:00
var t _24 = runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "requests" ) ;
if ( t _24 ) { var t _23 = t _24 . length ;
for ( var t _22 = 0 ; t _22 < t _24 . length ; t _22 ++ ) {
var t _25 = t _24 [ t _22 ] ;
frame . set ( "request" , t _25 ) ;
frame . set ( "loop.index" , t _22 + 1 ) ;
frame . set ( "loop.index0" , t _22 ) ;
frame . set ( "loop.revindex" , t _23 - t _22 ) ;
frame . set ( "loop.revindex0" , t _23 - t _22 - 1 ) ;
frame . set ( "loop.first" , t _22 === 0 ) ;
frame . set ( "loop.last" , t _22 === t _23 - 1 ) ;
frame . set ( "loop.length" , t _23 ) ;
2016-02-17 14:16:00 +00:00
output += "\n " ;
2016-03-27 20:38:14 +00:00
env . getTemplate ( "views/request.html" , false , "views/authority.html" , null , function ( t _28 , t _26 ) {
if ( t _28 ) { cb ( t _28 ) ; return ; }
t _26 . render ( context . getVariables ( ) , frame , function ( t _29 , t _27 ) {
if ( t _29 ) { cb ( t _29 ) ; return ; }
output += t _27
2016-02-17 14:16:00 +00:00
output += "\n\t " ;
} ) } ) ;
2016-03-21 21:42:39 +00:00
}
}
2016-02-17 14:16:00 +00:00
frame = frame . pop ( ) ;
2016-03-21 21:42:39 +00:00
output += "\n <li class=\"notify\">\n <p>No certificate signing requests to sign!</p>\n </li>\n </ul>\n</section>\n\n<section id=\"signed\">\n <h1>Signed certificates</h1>\n <input id=\"search\" type=\"search\" class=\"icon search\">\n <ul id=\"signed_certificates\">\n " ;
2016-02-17 14:16:00 +00:00
frame = frame . push ( ) ;
2016-03-27 20:38:14 +00:00
var t _32 = env . getFilter ( "reverse" ) . call ( context , env . getFilter ( "sort" ) . call ( context , runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "signed" ) ) ) ;
if ( t _32 ) { var t _31 = t _32 . length ;
for ( var t _30 = 0 ; t _30 < t _32 . length ; t _30 ++ ) {
var t _33 = t _32 [ t _30 ] ;
frame . set ( "certificate" , t _33 ) ;
frame . set ( "loop.index" , t _30 + 1 ) ;
frame . set ( "loop.index0" , t _30 ) ;
frame . set ( "loop.revindex" , t _31 - t _30 ) ;
frame . set ( "loop.revindex0" , t _31 - t _30 - 1 ) ;
frame . set ( "loop.first" , t _30 === 0 ) ;
frame . set ( "loop.last" , t _30 === t _31 - 1 ) ;
frame . set ( "loop.length" , t _31 ) ;
2016-02-17 14:16:00 +00:00
output += "\n " ;
2016-03-27 20:38:14 +00:00
env . getTemplate ( "views/signed.html" , false , "views/authority.html" , null , function ( t _36 , t _34 ) {
if ( t _36 ) { cb ( t _36 ) ; return ; }
t _34 . render ( context . getVariables ( ) , frame , function ( t _37 , t _35 ) {
if ( t _37 ) { cb ( t _37 ) ; return ; }
output += t _35
2016-02-17 14:16:00 +00:00
output += "\n\t " ;
} ) } ) ;
2016-03-21 21:42:39 +00:00
}
}
2016-02-17 14:16:00 +00:00
frame = frame . pop ( ) ;
output += "\n </ul>\n</section>\n\n<section id=\"log\">\n <h1>Log</h1>\n <p>\n <input id=\"log_level_critical\" type=\"checkbox\" checked/> <label for=\"log_level_critical\">Critical</label>\n <input id=\"log_level_error\" type=\"checkbox\" checked/> <label for=\"log_level_error\">Errors</label>\n <input id=\"log_level_warning\" type=\"checkbox\" checked/> <label for=\"log_level_warning\">Warnings</label>\n <input id=\"log_level_info\" type=\"checkbox\" checked/> <label for=\"log_level_info\">Info</label>\n <input id=\"log_level_debug\" type=\"checkbox\"/> <label for=\"log_level_debug\">Debug</label>\n </p>\n <ul id=\"log_entries\">\n </ul>\n</section>\n\n<section id=\"revoked\">\n <h1>Revoked certificates</h1>\n <p>To fetch certificate revocation list:</p>\n <pre>curl " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "window" ) ) , "location" ) ) , "href" ) , env . opts . autoescape ) ;
output += "api/revoked/ | openssl crl -text -noout</pre>\n <!--\n <p>To perform online certificate status request</p>\n\n <pre>\n curl " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "url" ) , env . opts . autoescape ) ;
output += "/certificate/ > session.pem\n openssl ocsp -issuer session.pem -CAfile session.pem -url " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "url" ) , env . opts . autoescape ) ;
output += "/ocsp/ -serial 0x\n </pre>\n -->\n <ul>\n " ;
frame = frame . push ( ) ;
2016-03-27 20:38:14 +00:00
var t _40 = runtime . memberLookup ( ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "session" ) ) , "authority" ) ) , "revoked" ) ;
if ( t _40 ) { var t _39 = t _40 . length ;
for ( var t _38 = 0 ; t _38 < t _40 . length ; t _38 ++ ) {
var t _41 = t _40 [ t _38 ] ;
frame . set ( "j" , t _41 ) ;
frame . set ( "loop.index" , t _38 + 1 ) ;
frame . set ( "loop.index0" , t _38 ) ;
frame . set ( "loop.revindex" , t _39 - t _38 ) ;
frame . set ( "loop.revindex0" , t _39 - t _38 - 1 ) ;
frame . set ( "loop.first" , t _38 === 0 ) ;
frame . set ( "loop.last" , t _38 === t _39 - 1 ) ;
frame . set ( "loop.length" , t _39 ) ;
2016-02-17 14:16:00 +00:00
output += "\n <li id=\"certificate_" ;
2016-03-27 20:38:14 +00:00
output += runtime . suppressValue ( runtime . memberLookup ( ( t _41 ) , "sha256sum" ) , env . opts . autoescape ) ;
2016-02-17 14:16:00 +00:00
output += "\">\n " ;
2016-03-27 20:38:14 +00:00
output += runtime . suppressValue ( runtime . memberLookup ( ( t _41 ) , "changed" ) , env . opts . autoescape ) ;
2016-02-17 14:16:00 +00:00
output += "\n " ;
2016-03-27 20:38:14 +00:00
output += runtime . suppressValue ( runtime . memberLookup ( ( t _41 ) , "serial_number" ) , env . opts . autoescape ) ;
2016-02-17 14:16:00 +00:00
output += " <span class=\"monospace\">" ;
2016-03-27 20:38:14 +00:00
output += runtime . suppressValue ( runtime . memberLookup ( ( t _41 ) , "identity" ) , env . opts . autoescape ) ;
2016-02-17 14:16:00 +00:00
output += "</span>\n </li>\n " ;
;
}
}
2016-03-27 20:38:14 +00:00
if ( ! t _39 ) {
2016-02-17 14:16:00 +00:00
output += "\n <li>Great job! No certificate signing requests to sign.</li>\n\t " ;
}
frame = frame . pop ( ) ;
2016-03-21 21:42:39 +00:00
output += "\n </ul>\n</section>\n\n<section id=\"config\">\n</section>\n\n" ;
;
}
output += "\n" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
2016-03-21 21:42:39 +00:00
;
2016-02-17 14:16:00 +00:00
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/configuration.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
output += "\n<h1>Create a rule</h1>\n<p>\n\n <datalist id=\"tag_autocomplete\">\n\n </datalist>\n\n <span>Filter</span>\n <select id=\"tags_autocomplete\"></select>\n attaches attribute\n <select>\n " ;
env . getTemplate ( "views/tagtypes.html" , false , "views/configuration.html" , null , function ( t _3 , t _1 ) {
if ( t _3 ) { cb ( t _3 ) ; return ; }
t _1 . render ( context . getVariables ( ) , frame , function ( t _4 , t _2 ) {
if ( t _4 ) { cb ( t _4 ) ; return ; }
output += t _2
output += "\n </select>\n <span contenteditable>something</span>\n <button>Add rule</button>\n</p>\n\n" ;
frame = frame . push ( ) ;
var t _7 = env . getFilter ( "groupby" ) . call ( context , runtime . contextOrFrameLookup ( context , frame , "configuration" ) , "tag_id" ) ;
if ( t _7 ) { var t _5 ;
if ( runtime . isArray ( t _7 ) ) {
var t _6 = t _7 . length ;
for ( t _5 = 0 ; t _5 < t _7 . length ; t _5 ++ ) {
var t _8 = t _7 [ t _5 ] [ 0 ]
frame . set ( "grouper" , t _7 [ t _5 ] [ 0 ] ) ;
var t _9 = t _7 [ t _5 ] [ 1 ]
frame . set ( "items" , t _7 [ t _5 ] [ 1 ] ) ;
frame . set ( "loop.index" , t _5 + 1 ) ;
frame . set ( "loop.index0" , t _5 ) ;
frame . set ( "loop.revindex" , t _6 - t _5 ) ;
frame . set ( "loop.revindex0" , t _6 - t _5 - 1 ) ;
frame . set ( "loop.first" , t _5 === 0 ) ;
frame . set ( "loop.last" , t _5 === t _6 - 1 ) ;
frame . set ( "loop.length" , t _6 ) ;
output += "\n\n<h1>Filter " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( t _9 ) , 0 ) ) , "match_key" ) , env . opts . autoescape ) ;
output += " is " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( t _9 ) , 0 ) ) , "match_value" ) , env . opts . autoescape ) ;
output += "</h1>\n<ul>\n\n" ;
frame = frame . push ( ) ;
var t _12 = t _9 ;
if ( t _12 ) { var t _11 = t _12 . length ;
for ( var t _10 = 0 ; t _10 < t _12 . length ; t _10 ++ ) {
var t _13 = t _12 [ t _10 ] ;
frame . set ( "item" , t _13 ) ;
frame . set ( "loop.index" , t _10 + 1 ) ;
frame . set ( "loop.index0" , t _10 ) ;
frame . set ( "loop.revindex" , t _11 - t _10 ) ;
frame . set ( "loop.revindex0" , t _11 - t _10 - 1 ) ;
frame . set ( "loop.first" , t _10 === 0 ) ;
frame . set ( "loop.last" , t _10 === t _11 - 1 ) ;
frame . set ( "loop.length" , t _11 ) ;
output += "\n <li>Attach " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( t _13 ) , "key" ) , env . opts . autoescape ) ;
output += " attribute " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( t _13 ) , "value" ) , env . opts . autoescape ) ;
output += "</li>\n" ;
;
}
}
frame = frame . pop ( ) ;
output += "\n</ul>\n\n" ;
;
}
} else {
t _5 = - 1 ;
var t _6 = runtime . keys ( t _7 ) . length ;
for ( var t _14 in t _7 ) {
t _5 ++ ;
var t _15 = t _7 [ t _14 ] ;
frame . set ( "grouper" , t _14 ) ;
frame . set ( "items" , t _15 ) ;
frame . set ( "loop.index" , t _5 + 1 ) ;
frame . set ( "loop.index0" , t _5 ) ;
frame . set ( "loop.revindex" , t _6 - t _5 ) ;
frame . set ( "loop.revindex0" , t _6 - t _5 - 1 ) ;
frame . set ( "loop.first" , t _5 === 0 ) ;
frame . set ( "loop.last" , t _5 === t _6 - 1 ) ;
frame . set ( "loop.length" , t _6 ) ;
output += "\n\n<h1>Filter " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( t _15 ) , 0 ) ) , "match_key" ) , env . opts . autoescape ) ;
output += " is " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . memberLookup ( ( t _15 ) , 0 ) ) , "match_value" ) , env . opts . autoescape ) ;
output += "</h1>\n<ul>\n\n" ;
frame = frame . push ( ) ;
var t _18 = t _15 ;
if ( t _18 ) { var t _17 = t _18 . length ;
for ( var t _16 = 0 ; t _16 < t _18 . length ; t _16 ++ ) {
var t _19 = t _18 [ t _16 ] ;
frame . set ( "item" , t _19 ) ;
frame . set ( "loop.index" , t _16 + 1 ) ;
frame . set ( "loop.index0" , t _16 ) ;
frame . set ( "loop.revindex" , t _17 - t _16 ) ;
frame . set ( "loop.revindex0" , t _17 - t _16 - 1 ) ;
frame . set ( "loop.first" , t _16 === 0 ) ;
frame . set ( "loop.last" , t _16 === t _17 - 1 ) ;
frame . set ( "loop.length" , t _17 ) ;
output += "\n <li>Attach " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( t _19 ) , "key" ) , env . opts . autoescape ) ;
output += " attribute " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( t _19 ) , "value" ) , env . opts . autoescape ) ;
output += "</li>\n" ;
;
}
}
frame = frame . pop ( ) ;
output += "\n</ul>\n\n" ;
;
}
}
}
frame = frame . pop ( ) ;
output += "\n\n\n" ;
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
} ) } ) ;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/error.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
output += "<h1>" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "message" ) ) , "title" ) , env . opts . autoescape ) ;
output += "</h1>\n<p>" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "message" ) ) , "description" ) , env . opts . autoescape ) ;
output += "</p>\n" ;
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/logentry.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
output += "<li id=\"log_entry_" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "entry" ) ) , "id" ) , env . opts . autoescape ) ;
output += "\" class=\"filterable\">\n<span class=\"created monospace\" style=\"float:right;\">" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "entry" ) ) , "created" ) , env . opts . autoescape ) ;
output += "</span>\n<span class=\"message icon " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "entry" ) ) , "severity" ) , env . opts . autoescape ) ;
output += "\">" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "entry" ) ) , "message" ) , env . opts . autoescape ) ;
output += "</span>\n</li>\n\n" ;
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/request.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<li id=\"request-" ;
output += runtime . suppressValue ( env . getFilter ( "replace" ) . call ( context , env . getFilter ( "replace" ) . call ( context , runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "common_name" ) , "@" , "--" ) , "." , "-" ) , env . opts . autoescape ) ;
2016-02-17 14:16:00 +00:00
output += "\" class=\"filterable\">\n\n<a class=\"button icon download\" href=\"/api/request/" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "/\">Fetch</a>\n" ;
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "signable" ) ) {
output += "\n<button class=\"icon sign\" onClick=\"javascript:$(this).addClass('busy');$.ajax({url:'/api/request/" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "/',type:'patch'});\">Sign</button>\n" ;
;
}
else {
output += "\n<button title=\"Please use certidude command-line utility to sign unusual requests\" disabled>Sign</button>\n" ;
;
}
output += "\n<button class=\"icon revoke\" onClick=\"javascript:$(this).addClass('busy');$.ajax({url:'/api/request/" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "/',type:'delete'});\">Delete</button>\n\n\n<div class=\"monospace\">\n" ;
2016-03-21 21:42:39 +00:00
env . getTemplate ( "img/iconmonstr-certificate-15.svg" , false , "views/request.html" , null , function ( t _3 , t _1 ) {
2016-02-17 14:16:00 +00:00
if ( t _3 ) { cb ( t _3 ) ; return ; }
t _1 . render ( context . getVariables ( ) , frame , function ( t _4 , t _2 ) {
if ( t _4 ) { cb ( t _4 ) ; return ; }
output += t _2
output += "\n" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "identity" ) , env . opts . autoescape ) ;
output += "\n</div>\n\n" ;
2016-03-21 21:42:39 +00:00
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "email_address" ) ) {
2016-02-17 14:16:00 +00:00
output += "\n<div class=\"email\">" ;
2016-03-21 21:42:39 +00:00
env . getTemplate ( "img/iconmonstr-email-2.svg" , false , "views/request.html" , null , function ( t _7 , t _5 ) {
2016-02-17 14:16:00 +00:00
if ( t _7 ) { cb ( t _7 ) ; return ; }
t _5 . render ( context . getVariables ( ) , frame , function ( t _8 , t _6 ) {
if ( t _8 ) { cb ( t _8 ) ; return ; }
output += t _6
output += " " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "email_address" ) , env . opts . autoescape ) ;
output += "</div>\n" ;
2016-03-21 21:42:39 +00:00
} ) } ) ;
2016-02-17 14:16:00 +00:00
}
2016-03-21 21:42:39 +00:00
output += "\n\n<div class=\"monospace\">\n" ;
env . getTemplate ( "img/iconmonstr-key-3.svg" , false , "views/request.html" , null , function ( t _11 , t _9 ) {
2016-02-17 14:16:00 +00:00
if ( t _11 ) { cb ( t _11 ) ; return ; }
t _9 . render ( context . getVariables ( ) , frame , function ( t _12 , t _10 ) {
if ( t _12 ) { cb ( t _12 ) ; return ; }
output += t _10
output += "\n<span title=\"SHA-1 of public key\">\n" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "sha256sum" ) , env . opts . autoescape ) ;
output += "\n</span>\n" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "key_length" ) , env . opts . autoescape ) ;
output += "-bit\n" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "key_type" ) , env . opts . autoescape ) ;
output += "\n</div>\n\n" ;
var t _13 ;
t _13 = runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "key_usage" ) ;
frame . set ( "key_usage" , t _13 , true ) ;
if ( frame . topLevel ) {
context . setVariable ( "key_usage" , t _13 ) ;
}
if ( frame . topLevel ) {
context . addExport ( "key_usage" , t _13 ) ;
}
output += "\n" ;
2016-03-21 21:42:39 +00:00
if ( runtime . contextOrFrameLookup ( context , frame , "key_usage" ) ) {
2016-02-17 14:16:00 +00:00
output += "\n<div>\n" ;
2016-03-21 21:42:39 +00:00
env . getTemplate ( "img/iconmonstr-flag-3.svg" , false , "views/request.html" , null , function ( t _16 , t _14 ) {
2016-02-17 14:16:00 +00:00
if ( t _16 ) { cb ( t _16 ) ; return ; }
t _14 . render ( context . getVariables ( ) , frame , function ( t _17 , t _15 ) {
if ( t _17 ) { cb ( t _17 ) ; return ; }
output += t _15
output += "\n" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "request" ) ) , "key_usage" ) , env . opts . autoescape ) ;
output += "\n</div>\n" ;
2016-03-21 21:42:39 +00:00
} ) } ) ;
2016-02-17 14:16:00 +00:00
}
2016-03-21 21:42:39 +00:00
output += "\n\n</li>\n\n" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
2016-03-21 21:42:39 +00:00
} ) } ) } ) } ) ;
2016-02-17 14:16:00 +00:00
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/signed.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<li id=\"certificate-" ;
output += runtime . suppressValue ( env . getFilter ( "replace" ) . call ( context , env . getFilter ( "replace" ) . call ( context , runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "common_name" ) , "@" , "--" ) , "." , "-" ) , env . opts . autoescape ) ;
2016-02-17 14:16:00 +00:00
output += "\" data-dn=\"" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "identity" ) , env . opts . autoescape ) ;
output += "\" data-cn=\"" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "\" class=\"filterable\">\n <a class=\"button icon download\" href=\"/api/signed/" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "/\">Fetch</a>\n <button class=\"icon revoke\" onClick=\"javascript:$(this).addClass('busy');$.ajax({url:'/api/signed/" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "/',type:'delete'});\">Revoke</button>\n\n <div class=\"monospace\">\n " ;
2016-03-21 21:42:39 +00:00
env . getTemplate ( "img/iconmonstr-certificate-15.svg" , false , "views/signed.html" , null , function ( t _3 , t _1 ) {
2016-02-17 14:16:00 +00:00
if ( t _3 ) { cb ( t _3 ) ; return ; }
t _1 . render ( context . getVariables ( ) , frame , function ( t _4 , t _2 ) {
if ( t _4 ) { cb ( t _4 ) ; return ; }
output += t _2
output += "\n " ;
2016-03-21 21:42:39 +00:00
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "common_name" ) , env . opts . autoescape ) ;
2016-02-17 14:16:00 +00:00
output += "\n </div>\n\n " ;
2016-03-21 21:42:39 +00:00
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "email_address" ) ) {
2016-02-17 14:16:00 +00:00
output += "\n <div class=\"email\">" ;
2016-03-21 21:42:39 +00:00
env . getTemplate ( "img/iconmonstr-email-2.svg" , false , "views/signed.html" , null , function ( t _7 , t _5 ) {
2016-02-17 14:16:00 +00:00
if ( t _7 ) { cb ( t _7 ) ; return ; }
t _5 . render ( context . getVariables ( ) , frame , function ( t _8 , t _6 ) {
if ( t _8 ) { cb ( t _8 ) ; return ; }
output += t _6
output += " " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "email_address" ) , env . opts . autoescape ) ;
output += "</div>\n " ;
2016-03-21 21:42:39 +00:00
} ) } ) ;
2016-02-17 14:16:00 +00:00
}
2016-03-27 20:38:14 +00:00
output += "\n\n " ;
2016-03-21 21:42:39 +00:00
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "given_name" ) || runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "surname" ) ) {
output += "\n <div class=\"person\">" ;
env . getTemplate ( "img/iconmonstr-user-5.svg" , false , "views/signed.html" , null , function ( t _11 , t _9 ) {
2016-02-17 14:16:00 +00:00
if ( t _11 ) { cb ( t _11 ) ; return ; }
t _9 . render ( context . getVariables ( ) , frame , function ( t _12 , t _10 ) {
if ( t _12 ) { cb ( t _12 ) ; return ; }
output += t _10
2016-03-21 21:42:39 +00:00
output += " " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "given_name" ) , env . opts . autoescape ) ;
output += " " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "surname" ) , env . opts . autoescape ) ;
output += "</div>\n " ;
} ) } ) ;
}
output += "\n\n <div class=\"lifetime\" title=\"Valid from " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "signed" ) , env . opts . autoescape ) ;
output += " to " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "expires" ) , env . opts . autoescape ) ;
output += "\">\n " ;
env . getTemplate ( "img/iconmonstr-calendar-6.svg" , false , "views/signed.html" , null , function ( t _15 , t _13 ) {
2016-02-17 14:16:00 +00:00
if ( t _15 ) { cb ( t _15 ) ; return ; }
t _13 . render ( context . getVariables ( ) , frame , function ( t _16 , t _14 ) {
if ( t _16 ) { cb ( t _16 ) ; return ; }
output += t _14
2016-03-21 21:42:39 +00:00
output += "\n <time>" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "signed" ) , env . opts . autoescape ) ;
output += "</time> -\n <time>" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "expires" ) , env . opts . autoescape ) ;
output += "</time>\n </div>\n\n " ;
output += "\n\n <div class=\"tags\">\n <select class=\"icon tag\" data-cn=\"" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "certificate" ) ) , "common_name" ) , env . opts . autoescape ) ;
output += "\" onChange=\"onNewTagClicked();\">\n <option value=\"\">Add tag...</option>\n " ;
env . getTemplate ( "views/tagtypes.html" , false , "views/signed.html" , null , function ( t _19 , t _17 ) {
if ( t _19 ) { cb ( t _19 ) ; return ; }
t _17 . render ( context . getVariables ( ) , frame , function ( t _20 , t _18 ) {
if ( t _20 ) { cb ( t _20 ) ; return ; }
output += t _18
output += "\n </select>\n </div>\n <div class=\"status\"></div>\n</li>\n" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
2016-03-21 21:42:39 +00:00
} ) } ) } ) } ) } ) } ) ;
2016-02-17 14:16:00 +00:00
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/status.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
output += "<svg height=\"32\" width=\"32\">\n <circle cx=\"16\" cy=\"16\" r=\"13\" stroke=\"black\" stroke-width=\"3\" fill=\"" ;
if ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) {
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "released" ) ) {
2016-02-17 19:44:33 +00:00
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "age" ) > 1209600 ) {
output += "#D6083B" ;
2016-02-17 14:16:00 +00:00
;
}
else {
2016-02-17 19:44:33 +00:00
output += "#0072CF" ;
2016-02-17 14:16:00 +00:00
;
}
;
}
else {
2016-02-17 19:44:33 +00:00
output += "#55A51C" ;
;
}
;
}
else {
output += "#F3BD48" ;
2016-02-17 14:16:00 +00:00
;
}
output += "\" />\n</svg>\n\n<span>\n\n" ;
if ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) {
output += "\n" ;
if ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "released" ) ) {
output += "\nLast seen " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "released" ) , env . opts . autoescape ) ;
output += " at " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "address" ) , env . opts . autoescape ) ;
output += "\n" ;
;
}
else {
output += "\nOnline since " ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "acquired" ) , env . opts . autoescape ) ;
output += " at <a target=\"" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "address" ) , env . opts . autoescape ) ;
output += "\" href=\"http://" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "address" ) , env . opts . autoescape ) ;
output += "\">" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "lease" ) ) , "address" ) , env . opts . autoescape ) ;
output += "</a>\n" ;
;
}
output += "\n" ;
;
}
else {
output += "\nNot seen\n" ;
;
}
output += "\n</span>\n" ;
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
2016-03-21 21:42:39 +00:00
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/tags.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
output += "<span id=\"tag_" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "tag" ) ) , "id" ) , env . opts . autoescape ) ;
output += "\" onclick=\"onTagClicked()\"\ntitle=\"" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "tag" ) ) , "key" ) , env . opts . autoescape ) ;
output += "=" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "tag" ) ) , "value" ) , env . opts . autoescape ) ;
output += "\" class=\"" ;
output += runtime . suppressValue ( env . getFilter ( "replace" ) . call ( context , runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "tag" ) ) , "key" ) , "." , " " ) , env . opts . autoescape ) ;
output += "\"\ndata-id=\"" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "tag" ) ) , "id" ) , env . opts . autoescape ) ;
output += "\" data-key=\"" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "tag" ) ) , "key" ) , env . opts . autoescape ) ;
output += "\">" ;
output += runtime . suppressValue ( runtime . memberLookup ( ( runtime . contextOrFrameLookup ( context , frame , "tag" ) ) , "value" ) , env . opts . autoescape ) ;
output += "</span>\n" ;
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
2016-02-17 14:16:00 +00:00
} ) ( ) ;
} ) ( ) ;
( function ( ) { ( window . nunjucksPrecompiled = window . nunjucksPrecompiled || { } ) [ "views/tagtypes.html" ] = ( function ( ) {
function root ( env , context , frame , runtime , cb ) {
var lineno = null ;
var colno = null ;
var output = "" ;
try {
var parentTemplate = null ;
2016-03-21 21:42:39 +00:00
output += "<option value=\"location\">Location</option>\n<option value=\"phone\">Phone</option>\n<option value=\"room\">Room</option>\n<option value=\"serial\">Product serial</option>\n\n<option value=\"wireless.protected.password\">Protected wireless network password</option>\n<option value=\"wireless.protected.name\">Protected wireless network name</option>\n<option value=\"wireless.public.name\">Public wireless network name</option>\n<option value=\"wireless.channel\">Channel number</option>\n<option value=\"usb.approved\">Approved USB device</option>\n" ;
2016-02-17 14:16:00 +00:00
if ( parentTemplate ) {
parentTemplate . rootRenderFunc ( env , context , frame , runtime , cb ) ;
} else {
cb ( null , output ) ;
}
;
} catch ( e ) {
cb ( runtime . handleError ( e , lineno , colno ) ) ;
}
}
return {
root : root
} ;
} ) ( ) ;
} ) ( ) ;