codecombat/app/templates/editor/thang/table.jade

28 lines
750 B
Text
Raw Normal View History

2014-08-28 13:50:20 -04:00
extends /templates/kinds/table
block tableResultsHeader
2014-03-12 11:03:36 -04:00
tr
2014-08-28 13:50:20 -04:00
th(colspan=4)
2014-03-12 11:03:36 -04:00
span(data-i18n="general.results")
| Results
span
|: #{documents.length}
2014-08-28 13:50:20 -04:00
block tableHeader
2014-03-12 11:03:36 -04:00
tr
th#portrait-col
th(data-i18n="general.name") Name
th(data-i18n="general.description") Description
th(data-i18n="general.version") Version
2014-08-28 13:50:20 -04:00
block tableBody
for thang in documents
2014-03-12 11:03:36 -04:00
tr
td
img(title="Add " + thang.get('name'), src=thang.getPortraitURL(), alt="").portrait
2014-03-12 11:03:36 -04:00
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}