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>
  3. <head>
  4. <!--Import Google Icon Font-->
  5. <link href="http://fonts.googleapis.com/icon?family=Material+Icons" 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="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
  13. </head>
  14. <body ng-app="thoughtsApp">
  15. <div ng-include="'menu.htm'"></div>
  16. <div class="container">
  17. <div ng-controller="ThoughtsController as thoughtsList">
  18. <ul class="collection">
  19. <li class="collection-item avatar" ng-repeat="thought in thoughtsList.thoughts">
  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. <p>{{thought.content}}</p>
  25. <a href="#!" class="secondary-content"><i class="material-icons">grade</i></a>
  26. </li>
  27. </ul>
  28. </div>
  29. </div>
  30. <!--Import jQuery before materialize.js-->
  31. <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  32. <script type="text/javascript" src="js/materialize.min.js"></script>
  33. <script src="jslib/toastr.js"></script>
  34. <link type="text/css" rel="stylesheet" href="jslib/toastr.css"/>
  35. <script src="index.js"></script>
  36. </body>
  37. </html>