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
|
white-space: nowrap
|
||||||
overflow: hidden
|
overflow: hidden
|
||||||
text-overflow: ellipsis
|
text-overflow: ellipsis
|
||||||
|
.name-row
|
||||||
|
@extend .body-row
|
||||||
|
max-width: 300px
|
||||||
|
.small-name-row
|
||||||
|
@extend .body-row
|
||||||
|
max-width: 200px
|
||||||
|
|
||||||
tr.mine
|
tr.mine
|
||||||
background-color: #f8ecaa
|
background-color: #f8ecaa
|
||||||
|
|
|
@ -17,8 +17,9 @@ table.table
|
||||||
for document in documents
|
for document in documents
|
||||||
- var data = document.attributes;
|
- var data = document.attributes;
|
||||||
tr(class=document.getOwner() == me.id ? 'mine' : '')
|
tr(class=document.getOwner() == me.id ? 'mine' : '')
|
||||||
td
|
td(title=data.name).name-row
|
||||||
a(href="/editor/#{page}/#{data.slug || data._id}")
|
a(href="/editor/#{page}/#{data.slug || data._id}")
|
||||||
| #{data.name}
|
| #{data.name}
|
||||||
td.body-row #{data.description}
|
td(title=data.description).body-row
|
||||||
td #{data.version.major}.#{data.version.minor}
|
| #{data.description}
|
||||||
|
td #{data.version.major}.#{data.version.minor}
|
||||||
|
|
|
@ -20,11 +20,14 @@ block tableBody
|
||||||
for thang in documents
|
for thang in documents
|
||||||
tr
|
tr
|
||||||
td
|
td
|
||||||
img(title="Add " + thang.get('name'), src=thang.getPortraitURL(), alt="").portrait
|
- var name = thang.get('name');
|
||||||
td
|
img(title="Add #{name}", src=thang.getPortraitURL(), alt="").portrait
|
||||||
|
td(title=name).small-name-row
|
||||||
a(href="/editor/thang/#{thang.get('slug') || thang.id}")
|
a(href="/editor/thang/#{thang.get('slug') || thang.id}")
|
||||||
| #{thang.get('name')}
|
| #{name}
|
||||||
td.body-row #{thang.get('description')}
|
- var description = thang.get('description');
|
||||||
|
td(title=description).body-row
|
||||||
|
| #{description}
|
||||||
- var version = thang.get('version')
|
- var version = thang.get('version')
|
||||||
td #{version.major}.#{version.minor}
|
td #{version.major}.#{version.minor}
|
||||||
- var tasks = thang.get('tasks');
|
- var tasks = thang.get('tasks');
|
||||||
|
|
Loading…
Reference in a new issue