codecombat/app/templates/common/table.jade
2015-09-03 08:33:48 -07:00

26 lines
No EOL
784 B
Text
Executable file

table.table
block tableResultsHeader
tr
th(colspan=3)
span(data-i18n="general.results")
| Results
span
|: #{documents.length}
block tableHeader
tr
th(data-i18n="general.name") Name
th(data-i18n="general.description") Description
th(data-i18n="general.version") Version
block tableBody
for document in documents
- var data = document.attributes;
- if(data.slug == 'ace-of-coders' && new Date() < new Date(1441863900000))
- continue;
tr(class=document.getOwner() == me.id ? 'mine' : '')
td
a(href="/editor/#{page}/#{data.slug || data._id}")
| #{data.name}
td.body-row #{data.description}
td #{data.version.major}.#{data.version.minor}