You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

  1. <!DOCTYPE html>
  2. <html ng-app="thoughtsApp">
  3. <head>
  4. <!--Import Google Icon Font-->
  5. <link href="fonts/icons.css" rel="stylesheet">
  6. <!--Import materialize.css-->
  7. <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
  8. <!--Let browser know website is optimized for mobile-->
  9. <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  10. <title>Thoughts</title>
  11. <!-- ANGULAR -->
  12. <script src="libraries/angular.min.js"></script>
  13. </head>
  14. <body ng-controller="ThoughtsController as thoughtsList">
  15. <div ng-include="'menu.htm'"></div>
  16. <div class="container">
  17. <div>
  18. <ul class="collection">
  19. <li class="collection-item avatar" ng-repeat="thought in thoughtsList.thoughts | orderBy: '-time'">
  20. <img ng-src="img/icons/animals/{{thought.avatar}}.png" class="circle">
  21. <a ng-href="user.html?={{thought.username}}" class="title">
  22. {{thought.username}}
  23. </a>
  24. <div class="chip">{{thought.time | date:'HH:mm'}}</div>
  25. <p>{{thought.content}}</p>
  26. <a href="#!" class="secondary-content"><i class="material-icons indigo-text text-lighten-2">grade</i></a>
  27. </li>
  28. </ul>
  29. </div>
  30. </div>
  31. <!--Import jQuery before materialize.js-->
  32. <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  33. <script type="text/javascript" src="js/materialize.min.js"></script>
  34. <script src="jslib/toastr.js"></script>
  35. <link type="text/css" rel="stylesheet" href="jslib/toastr.css"/>
  36. <script src="controllers.js"></script>
  37. </body>
  38. </html>