Resolved issue

This commit is contained in:
GlenDC 2014-01-15 01:58:37 +01:00
parent 92416dc4f2
commit d5907059ed
8 changed files with 67 additions and 9 deletions
app
templates/editor
article
components
level
thang
views

View file

@ -15,7 +15,7 @@ table.table
- data = data.attributes;
tr
td
a(href="/editor/#{page}/#{data.slug || data._id}")
a(href="/editor/article/#{data.slug || data._id}")
| #{data.name}
td.body-row #{data.description}
td #{data.version.major}.#{data.version.minor}

View file

@ -0,0 +1,21 @@
table.table
tr
th(colspan=3)
span(data-i18n="general.results")
| Results
span
|: #{documents.length}
tr
th(data-i18n="general.name") Name
th(data-i18n="general.description") Description
th(data-i18n="general.version") Version
for data in documents
- data = data.attributes;
tr
td
a(href="/editor/component/#{data.slug || data._id}")
| #{data.name}
td.body-row #{data.description}
td #{data.version.major}.#{data.version.minor}

View file

@ -0,0 +1,21 @@
table.table
tr
th(colspan=3)
span(data-i18n="general.results")
| Results
span
|: #{documents.length}
tr
th(data-i18n="general.name") Name
th(data-i18n="general.description") Description
th(data-i18n="general.version") Version
for data in documents
- data = data.attributes;
tr
td
a(href="/editor/level/#{data.slug || data._id}")
| #{data.name}
td.body-row #{data.description}
td #{data.version.major}.#{data.version.minor}

View file

@ -0,0 +1,21 @@
table.table
tr
th(colspan=3)
span(data-i18n="general.results")
| Results
span
|: #{documents.length}
tr
th(data-i18n="general.name") Name
th(data-i18n="general.description") Description
th(data-i18n="general.version") Version
for data in documents
- data = data.attributes;
tr
td
a(href="/editor/thang/#{data.slug || data._id}")
| #{data.name}
td.body-row #{data.description}
td #{data.version.major}.#{data.version.minor}

View file

@ -5,5 +5,4 @@ module.exports = class ThangTypeHomeView extends SearchView
modelLabel: 'Article'
model: require 'models/Article'
modelURL: '/db/article'
page: "article"
tableTemplate: require 'templates/kinds/table'
tableTemplate: require 'templates/editor/article/table'

View file

@ -5,5 +5,4 @@ module.exports = class ThangTypeHomeView extends SearchView
modelLabel: 'Level'
model: require 'models/Level'
modelURL: '/db/level'
page: 'level'
tableTemplate: require 'templates/kinds/table'
tableTemplate: require 'templates/editor/level/table'

View file

@ -5,8 +5,7 @@ module.exports = class ThangTypeHomeView extends SearchView
modelLabel: 'Thang Type'
model: require 'models/ThangType'
modelURL: '/db/thang.type'
page: 'thang'
tableTemplate: require 'templates/kinds/table'
tableTemplate: require 'templates/editor/thang/table'
onSearchChange: =>
super()

View file

@ -16,7 +16,6 @@ module.exports = class ThangTypeHomeView extends View
modelLabel: '' # 'Article'
model: null # Article
modelURL: null # '/db/article'
page: 'page'
tableTemplate: null # require 'templates/editor/article/table'
events:
@ -27,7 +26,6 @@ module.exports = class ThangTypeHomeView extends View
getRenderData: ->
c = super()
c.page = @page
c.modelLabel = @modelLabel
c