|
|
@@ -137,9 +137,19 @@ script(type='text/ng-template', id='changeEntryTemplate')
|
|
|
.rp-entry-details
|
|
|
.rp-entry-description(ng-switch="entry.type")
|
|
|
span(ng-switch-when="insert") Added
|
|
|
- ins.rp-content-highlight {{ entry.content }}
|
|
|
+ ins.rp-content-highlight {{ entry.content | limitTo:(isCollapsed ? contentLimit : entry.content.length) }}
|
|
|
+ a.rp-collapse-toggle(
|
|
|
+ href
|
|
|
+ ng-if="needsCollapsing"
|
|
|
+ ng-click="toggleCollapse();"
|
|
|
+ ) {{ isCollapsed ? '(more)' : '(less)' }}
|
|
|
span(ng-switch-when="delete") Deleted
|
|
|
- del.rp-content-highlight {{ entry.content }}
|
|
|
+ del.rp-content-highlight {{ entry.content | limitTo:(isCollapsed ? contentLimit : entry.content.length) }}
|
|
|
+ a.rp-collapse-toggle(
|
|
|
+ href
|
|
|
+ ng-if="needsCollapsing"
|
|
|
+ ng-click="toggleCollapse();"
|
|
|
+ ) {{ isCollapsed ? '(more)' : '(less)' }}
|
|
|
.rp-entry-metadata
|
|
|
| {{ entry.metadata.ts | date : 'MMM d, y h:mm a' }} •
|
|
|
span.rp-entry-user(style="color: hsl({{ user.hue }}, 70%, 40%);") {{ user.name }}
|