Commit 0f43fc69 authored by Ujvari Gergely's avatar Ujvari Gergely

Moved reply count next to annotation create time

parent ce836f4b
......@@ -579,9 +579,5 @@ blockquote {
// Things not shown in the summary view
.annotator-controls, .magicontrols .show, .bottombar, {
display: none;
}
.reply-count {
@include tertiarytext;
}
}
......@@ -245,6 +245,15 @@ class Annotation
$scope.editing = true
$scope.unsaved = true
$scope.directChildren = ->
if $scope.$modelValue? and (not annotator.detail) and threading.getContainer($scope.$modelValue.id).children?
return threading.getContainer($scope.$modelValue.id).children.length
0
$scope.allChildren = ->
if $scope.$modelValue? and threading.getContainer($scope.$modelValue.id).flattenChildren()?
return threading.getContainer($scope.$modelValue.id).flattenChildren().length
0
class Editor
this.$inject = [
......@@ -328,13 +337,8 @@ class Viewer
$scope.$on '$routeUpdate', refresh
$scope.directChildren = (annotation) ->
threading.getContainer(annotation.id).children.length
$scope.allChildren = (annotation) ->
if threading.getContainer(annotation.id).flattenChildren()?
return threading.getContainer(annotation.id).flattenChildren().length
0
$scope.$watch 'detail', (newValue, oldValue) =>
annotator.detail = newValue
refresh()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment