Skip to content

Commit

Permalink
comments header include number of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark committed Jun 4, 2014
1 parent 7ff4e4b commit 75a4351
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/annotationLibrary/annotationItem.tpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ <h3 class="panel-title pull-left">Details</h3>
<div class="col-md-6">
<div class="library-single-info panel panel-default">
<div class="panel-heading clearfix">
<h3 class="panel-title pull-left"><span class="glyphicon glyphicon-comment"></span>&nbsp;Comments
<h3 class="panel-title pull-left">
<span class="glyphicon glyphicon-comment"></span>
&nbsp;{{comments.length == 0 ? 'No Comments Yet' : (comments.length == 1 ? '1 Comment' : comments.length + ' Comments') }}
</h3>
</div>
<div class="panel-body">
Expand All @@ -113,7 +115,7 @@ <h4 class="media-heading">
<form role="form">
<div class="form-group" ng-class="{'has-error': newComment.errors.length > 0}">
<textarea class="form-control"
placeholder="Add a comment / Continue the discussion"
placeholder="{{comments.length < 1 ? 'Add a comment' : 'Continue the discussion'}}"
style="width:90%" id="addAnnotationComment"
ng-model="newComment.text"></textarea>
<span class="help-block" ng-show="newComment.errors.length > 0"
Expand Down

0 comments on commit 75a4351

Please sign in to comment.