Advertisement
Guest User

Untitled

a guest
May 6th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.19 KB | None | 0 0
  1. <div class="aya-comments" ng-controller="commentsCtrl">
  2.     <h4 class="header-title">Комментарии:</h4>
  3.     <div ng-if="comments.length == 0" class="not-logged-notice">
  4.         <div class="inner-notice">
  5.             <p>Еще никто не оставлял комментариев к этой странице</p>
  6.         </div>
  7.     </div>
  8.  
  9.     <ul ng-if="comments.length">
  10.         <li ng-repeat="comment in comments">
  11.             <header>
  12.                 <div class="left-side">
  13.                     <h1>{{ comment.author.username }}</h1>
  14.                     <span class="date_posted" tooltip="Время создания комментария"><i class="fa fa-clock-o"></i> {{ comment.date_posted_str }}</span>
  15.                 </div>
  16.  
  17.                 <!--<button ng-click="editComment(comment)" class="edit-comment" ng-show="isLogged() && isAuthor(comment.author) && !comment.hidden_by_author" tooltip="Редактировать комментарий"><i class="fa fa-pencil"></i>-->
  18.                 <button ng-click="showCommentByAuthor(comment)" class="show-comment" ng-show="isLogged() && isAuthor(comment.author) && comment.hidden_by_author" tooltip="Восстановить комментарий"><i class="fa fa-arrow-circle-up"></i></button>
  19.                 <button ng-click="hideCommentByAuthor(comment)" class="hide-comment" ng-show="isLogged() && isAuthor(comment.author) && !comment.hidden_by_author" tooltip="Скрыть комментарий"><i class="fa fa-trash-o"></i></button>
  20.                 <button ng-click="addReply(comment.author.username)" class="reply-comment" ng-show="isLogged() && !isAuthor(comment.author) && !comment.hidden_by_author" tooltip="Ответить автору комментария"><i class="fa fa-reply"></i></button>
  21.                 <img ng-src="{{ getAvatar(comment.author) }}"/>
  22.             </header>
  23.             <article ng-hide="comment.hidden_by_author">
  24.                 <div class="content" ng-bind-html="parseContent(comment.content)"></div>
  25.                 <div class="last-edited" ng-show="comment.date_updated_str">Последнее редактирование комментария <em ng-bind="comment.date_updated_str"></em></div>
  26.             </article>
  27.             <article class="text-center" ng-show="comment.hidden_by_author"><i>Автор комментария скрыл его</i></article>
  28.         </li>
  29.     </ul>
  30.  
  31.  
  32.  
  33.     <form ng-show="isLogged()" name="form" ng-submit="form.$valid && addMyNewComment()" novalidate="novalidate">
  34.         <textarea placeholder="Добавить комментарий..." ng-model="newComment.content" required="required" maxlength="255"></textarea>
  35.         <button type="submit" class="it-button it-button--large">Добавить комментарий</button><img id="newCommentAvatar" ng-src="{{ getMyAvatar() }}"/>
  36.     </form>
  37.  
  38.     <div ng-show="!isLogged()" class="not-logged-notice">
  39.         <div class="inner-notice">
  40.             <p>Чтобы оставить комментарий, вы должны быть авторизированы!</p>
  41.             <p><a class="it-button it-button--large" href="/login">Авторизироваться</a></p>
  42.         </div>
  43.     </div>
  44.  
  45. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement