mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed level/thang editor table for issue #3052
This commit is contained in:
parent
ea96ff1383
commit
3b0bafd325
3 changed files with 17 additions and 7 deletions
|
@ -15,6 +15,12 @@
|
|||
white-space: nowrap
|
||||
overflow: hidden
|
||||
text-overflow: ellipsis
|
||||
.name-row
|
||||
@extend .body-row
|
||||
max-width: 300px
|
||||
.small-name-row
|
||||
@extend .body-row
|
||||
max-width: 200px
|
||||
|
||||
tr.mine
|
||||
background-color: #f8ecaa
|
||||
|
|
|
@ -17,8 +17,9 @@ table.table
|
|||
for document in documents
|
||||
- var data = document.attributes;
|
||||
tr(class=document.getOwner() == me.id ? 'mine' : '')
|
||||
td
|
||||
td(title=data.name).name-row
|
||||
a(href="/editor/#{page}/#{data.slug || data._id}")
|
||||
| #{data.name}
|
||||
td.body-row #{data.description}
|
||||
td(title=data.description).body-row
|
||||
| #{data.description}
|
||||
td #{data.version.major}.#{data.version.minor}
|
|
@ -20,11 +20,14 @@ block tableBody
|
|||
for thang in documents
|
||||
tr
|
||||
td
|
||||
img(title="Add " + thang.get('name'), src=thang.getPortraitURL(), alt="").portrait
|
||||
td
|
||||
- var name = thang.get('name');
|
||||
img(title="Add #{name}", src=thang.getPortraitURL(), alt="").portrait
|
||||
td(title=name).small-name-row
|
||||
a(href="/editor/thang/#{thang.get('slug') || thang.id}")
|
||||
| #{thang.get('name')}
|
||||
td.body-row #{thang.get('description')}
|
||||
| #{name}
|
||||
- var description = thang.get('description');
|
||||
td(title=description).body-row
|
||||
| #{description}
|
||||
- var version = thang.get('version')
|
||||
td #{version.major}.#{version.minor}
|
||||
- var tasks = thang.get('tasks');
|
||||
|
|
Loading…
Reference in a new issue