Fixed level/thang editor table for issue #3052

This commit is contained in:
Driphter 2015-09-26 19:38:53 -04:00
parent ea96ff1383
commit 3b0bafd325
3 changed files with 17 additions and 7 deletions

View file

@ -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

View file

@ -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}

View file

@ -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');