mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-19 03:52:31 -05:00
39b42fe363
The Level Editor level list now highlights the row in which you are the person who last saved the level. The level list now also displays glyphicons to indicate watched/unwatched levels.
35 lines
No EOL
1.1 KiB
Text
Executable file
35 lines
No EOL
1.1 KiB
Text
Executable file
extends /templates/common/table
|
|
|
|
block tableResultsHeader
|
|
tr
|
|
th(colspan=4)
|
|
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
|
|
th(data-i18n="common.watch") Watch
|
|
|
|
block tableBody
|
|
for document in documents
|
|
- var data = document.attributes;
|
|
tr(class=document.get('creator') == me.id ? 'mine' : '')
|
|
td(title=data.name).name-row
|
|
a(href="/editor/#{page}/#{data.slug || data._id}")
|
|
| #{data.name}
|
|
td(title=data.description).description-row
|
|
| #{data.description}
|
|
td #{data.version.major}.#{data.version.minor}
|
|
if document.watching()
|
|
td.watch-row.watching
|
|
span(aria-hidden="true").glyphicon.glyphicon-eye-open
|
|
span(data-i18n="common.watch").sr-only Watch
|
|
else
|
|
td.watch-row.not-watching
|
|
span(aria-hidden="true").glyphicon.glyphicon-eye-close
|
|
span(data-i18n="common.unwatch").sr-only Unwatch |