codecombat/app/templates/editor/thang/table.jade
2014-08-28 10:50:20 -07:00

28 lines
No EOL
750 B
Text
Executable file

extends /templates/kinds/table
block tableResultsHeader
tr
th(colspan=4)
span(data-i18n="general.results")
| Results
span
|: #{documents.length}
block tableHeader
tr
th#portrait-col
th(data-i18n="general.name") Name
th(data-i18n="general.description") Description
th(data-i18n="general.version") Version
block tableBody
for thang in documents
tr
td
img(title="Add " + thang.get('name'), src=thang.getPortraitURL(), alt="").portrait
td
a(href="/editor/thang/#{thang.get('slug') || thang.id}")
| #{thang.get('name')}
td.body-row #{thang.get('description')}
- var version = thang.get('version')
td #{version.major}.#{version.minor}