UNPKG

noide

Version:

Web Editor built on hapi and nes websockets using browserify, superviews.js, bootstrap and the ACE editor.

25 lines (24 loc) 957 B
<template name="recent" args="files current onClickClose isDirty"> <!-- <if condition="!files.length"> <div key="no-recent" class="alert alert-info"> No recent files </div> </if> --> <div style="{display: files.length ? '' : 'none'}" class="list-group"> <a each="file, file.relativePath in files.reverse()" title="{file.relativePath}" href="/file?path={file.relativePath}" class="{'list-group-item' + (file === current ? ' active' : '')}"> <span class="close" onclick="{onClickClose(file)}">×</span> <span data-name="{file.name}" data-path="{file.relativePath}" class="name icon icon-file-text"></span> <small class="file-name">{file.name}</small> <span if="isDirty(file)">*</span> <if condition="false"> <p class="list-group-item-text">{'./' + (file.relativePath !== file.name ? file.relativeDir : '')}</p> </if> </a> </div> </template>