|  | //- Copyright (c) 2017 Chandan B N. All rights reserved. | 
|  |  | 
|  | doctype html | 
|  | html | 
|  | head | 
|  | title= title | 
|  | block head | 
|  | include head | 
|  | body#body(class=schemaName) | 
|  | .stk#vgHead | 
|  | block topHeader | 
|  | header.ban.pad.wht.btm | 
|  | .left | 
|  | block topHeaderLeft | 
|  | if min | 
|  | a.fbn.vgi-logo(title="Making the world safer one CVE at a time, since 2017", href=conf.homepage)="Vulnogram" | 
|  | | | 
|  | - var vs = Object.keys(confOpts).sort((a,b)=>(confOpts[a].conf.order-confOpts[b].conf.order)); | 
|  | //- console.log('JIRA order ' + confOpts['jira'].conf.order + '= '+ vs.map((a)=>(confOpts[a].conf.order))); | 
|  | each section in vs | 
|  | if confOpts && confOpts[section] | 
|  | - var cf = confOpts[section].conf ? confOpts[section].conf : {}; | 
|  | a.fbn(class=cf.class + (page && page.startsWith('/' + section + '/') ? " hig ins " : ""), title=cf.title, href = (cf.uri? cf.uri : '/' + section + '/' ))=cf.name | 
|  | .right | 
|  | block topHeaderRight | 
|  | if user | 
|  | a.vgi-user(class= (page == 'users' ? " active" : ""), href="/users/profile/" + user.username)= user.name | 
|  | //if opts && opts.conf && opts.conf.userpage | 
|  | //    a.icn.fbn.folder(href='/' + schemaName+'/' +opts.conf.userpage + user.username) Mine | 
|  | a.vgi-exit(href="/users/logout")=" Logout " | 
|  | block banner | 
|  | header.ban.pad.shd.hig | 
|  | block bannerItems | 
|  | .left | 
|  | block bannerItemsLeft | 
|  | if schemaName && confOpts && confOpts[schemaName] && !confOpts[schemaName].conf.readonly | 
|  | if min | 
|  | a.fbn.sfe(href='./') NEW | 
|  | else | 
|  | a.fbn.sfe(href='/' + schemaName + '/new') NEW CVE | 
|  |  | 
|  | .right | 
|  | block bannerItemsRight | 
|  | if !min | 
|  | if opts && opts.conf && opts.conf.shortcuts | 
|  | each shortcut in opts.conf.shortcuts | 
|  | - var href=(shortcut.href instanceof Function ? shortcut.href(locals) : shortcut.href) | 
|  | a.fbn(class=shortcut.class,href=href,target=shortcut.target)=(shortcut.label instanceof Function ? shortcut.label(locals) : shortcut.label) | 
|  | if (schemaName) | 
|  | form.indent.out.nobr(action='/' + schemaName,method="GET",style="flex-grow:1") | 
|  | input.txt(size=20,style="flex-grow:1",type="text",name="q",placeholder=" Search all "+schemaName,value=query ? (Array.isArray(query.q) ? query.q.join(' ') : query.q) :'',results="10",required) | 
|  | button.vgi-search.sbn(type="submit") | 
|  | block facetBanner | 
|  | if user && !min | 
|  | script. | 
|  | var userName = "#{user.name}"; | 
|  | var userUsername = "#{user.username}"; | 
|  | var userPMCS = "#{user.pmcs}"; | 
|  | else | 
|  | script. | 
|  | var userUsername = "" | 
|  |  | 
|  | .pad.ban.messagebar | 
|  | .left.tred#errMsg | 
|  | if !min | 
|  | !=messages() | 
|  | block error | 
|  | .right#infoMsg | 
|  | block info | 
|  | .pad | 
|  | block scripts | 
|  | block content | 
|  | block subcontent | 
|  | include foot |