List number of changes in diff

This commit is contained in:
James Allen 2014-07-11 16:34:12 +01:00
parent 76415ae02b
commit 1c5778e2c4

View file

@ -85,7 +85,16 @@ div#trackChanges(ng-show="ui.view == 'track-changes'")
ng-show="!!trackChanges.diff && !trackChanges.diff.loading && !trackChanges.diff.deleted && !trackChanges.diff.error"
)
.toolbar.toolbar-alt
span.name Changes to <strong>{{trackChanges.diff.doc.name}}</strong>
span.name
| <strong>{{trackChanges.diff.highlights.length}} </strong>
ng-pluralize(
count="trackChanges.diff.highlights.length",
when="{\
'one': 'change',\
'other': 'changes'\
}"
)
| in <strong>{{trackChanges.diff.doc.name}}</strong>
.toolbar-right
a.btn.btn-danger.btn-sm(
href,