Skip to content
Browse files

Fix field display bug in generic

  • Loading branch information...
1 parent 481527c commit 9151dbf55498fad5dd3f9bdf6cdcd2ab0bc3f825 @bengourley bengourley committed Jul 17, 2012
Showing with 16 additions and 16 deletions.
  1. +16 −16 bundles/generic/views/view.jade
View
32 bundles/generic/views/view.jade
@@ -21,19 +21,19 @@ block content
h3=group.name
- if (typeof group.description !== 'undefined')
p.group-description=group.description
- dl
- - each propertyMeta, key in group.properties
- - if (propertyMeta.view)
- dt=model.entityDelegate.propertyName(key)
- dd
- - if (propertyMeta.type === 'file')
- mixin downloadLink(entity[key], false)
- - else if (propertyMeta.type === 'dateTime')
- p=dateTime(propertyMeta.format(entity[key]))
- - else if (propertyMeta.type === 'checkbox')
- p=booleanFormatter(entity[key])
- - else if (propertyMeta.type === 'link')
- p
- a(href=entity[key], target='_blank')=entity[key]
- - else
- #{propertyMeta.format(entity[key])}
+ dl
+ - each propertyMeta, key in group.properties
+ - if (propertyMeta.view)
+ dt=model.entityDelegate.propertyName(key)
+ dd
+ - if (propertyMeta.type === 'file')
+ mixin downloadLink(entity[key], false)
+ - else if (propertyMeta.type === 'dateTime')
+ p=dateTime(propertyMeta.format(entity[key]))
+ - else if (propertyMeta.type === 'checkbox')
+ p=booleanFormatter(entity[key])
+ - else if (propertyMeta.type === 'link')
+ p
+ a(href=entity[key], target='_blank')=entity[key]
+ - else
+ #{propertyMeta.format(entity[key])}

0 comments on commit 9151dbf

Please sign in to comment.
Something went wrong with that request. Please try again.