codecombat/app/templates/common/table.jade

26 lines
746 B
Text
Raw Normal View History

2014-03-12 11:03:36 -04:00
table.table
2014-08-28 13:50:20 -04:00
block tableResultsHeader
tr
th(colspan=3)
span(data-i18n="general.results")
| Results
span
|: #{documents.length}
block tableHeader
2014-03-12 11:03:36 -04:00
tr
th(data-i18n="general.name") Name
th(data-i18n="general.description") Description
th(data-i18n="general.version") Version
block tableBody
2014-08-28 13:50:20 -04:00
for document in documents
- var data = document.attributes;
tr(class=document.getOwner() == me.id ? 'mine' : '')
td(title=data.name).name-row
a(href="/editor/#{page}/#{data.slug || data._id}")
| #{data.name}
td(title=data.description).body-row
| #{data.description}
td #{data.version.major}.#{data.version.minor}