Advertisement
Guest User

Untitled

a guest
May 10th, 2015
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.93 KB | None | 0 0
  1. <div id="videosContainer" ng-if="hasVideos">
  2.         <hr/>
  3.         <div ng-if="hasVideos">
  4.             <h3>Videos</h3>
  5.             <div>
  6.                 Order by:
  7.                 <select ng-model="sortOrder">
  8.                     <option value="-subscribers">Subscribers</option>
  9.                     <option value="title">Title</option>
  10.                     <option value="-date">Date</option>
  11.                     <option value="-length">Length</option>
  12.                 </select>
  13.                 Show by:
  14.                 <select ng-model="filterCondition">
  15.                     <option selected value="">All</option>
  16.                     <option value="category">Categories</option>
  17.                     <option value="date">Date</option>
  18.                     <option value="subtitles">Subtitles</option>
  19.                 </select>
  20.                 <select ng-if="filterCondition==='category'" ng-model="filterBy.category">
  21.                     <option selected value="">All</option>
  22.                     <option ng-repeat="category in categories" value="{{category}}">{{category}}</option>
  23.                 </select>
  24.                 <select ng-if="filterCondition==='date'" ng-model="filterBy.date">
  25.                     <option selected value="">All</option>
  26.                     <option ng-repeat="date in dates" value="{{date}}">{{date | date}}</option>
  27.                 </select>
  28.                 <select ng-if="filterCondition==='subtitles'" ng-model="filterBy.subtitles">
  29.                     <option selected value="">All</option>
  30.                     <option value="true">Yes</option>
  31.                     <option value="false">No</option>
  32.                 </select>
  33.             </div>
  34.         </div>
  35.         <div id="videos" ng-repeat="video in videos | orderBy:sortOrder | filter:filterBy.category | filter:filterBy.date | filter:filterBy.subtitles">
  36.             <p>{{filterBy.category}}</p>
  37.             <p>Title: {{video.title}}</p>
  38.             <img src="{{video.pictureUrl}}" alt="image"/>
  39.             <p>Length: {{video.length | videoLength}}</p>
  40.             <p>Category: {{video.category}}</p>
  41.             <p>Subscribers: {{video.subscribers}}</p>
  42.             <p>Date created: {{video.date | date}}</p>
  43.             <p>Subtitles: {{video.haveSubtitles | formatSubtitles}}</p>
  44.             <button ng-click="video.subscribers = video.subscribers + 1">Subscribe</button>
  45.             <div id="commentsContainer">
  46.                 <h4>Comments: </h4>
  47.                 <ul ng-repeat="comment in video.comments">
  48.                     <li>Username: {{comment.username}}</li>
  49.                     <li>Content: {{comment.content}}</li>
  50.                     <li>Date created: {{comment.date | date : 'MMMM d, y HH:mm:ss'}}</li>
  51.                     <li>Likes: {{comment.likes}}</li>
  52.                     <li>Author blog: <a href="{{comment.websiteUrl}}">{{comment.websiteUrl}}</a></li>
  53.                 </ul>
  54.             </div>
  55.             <hr/>
  56.         </div>
  57.     </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement