arnaucube
arnaucube/thoughtsPublic Self-hosted repository
thoughts/web/user.html
web/user.htmlRaw
 1
 2  <!DOCTYPE html>
 3  <html ng-app="thoughtsApp">
 4    <head>
 5      <!--Import Google Icon Font-->
 6      <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
 7      <!--Import materialize.css-->
 8      <link type="text/css" rel="stylesheet" href="css/materialize.min.css"  media="screen,projection"/>
 9
10      <!--Let browser know website is optimized for mobile-->
11      <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
12      <title>Thoughts</title>
13
14      <!-- ANGULAR -->
15      <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular.min.js"></script>
16    </head>
17
18    <body ng-controller="ThoughtsController as thoughtsList">
19
20        <div ng-include="'menu.htm'"></div>
21
22        <div class="container">
23
24            <div>
25                <ul class="collection">
26                    <li class="collection-item avatar" ng-repeat="thought in thoughtsList.thoughts | orderBy: '-time'">
27                        <img ng-src="img/icons/animals/{{thought.avatar}}.png" class="circle">
28                        <a ng-href="user.html?={{thought.username}}" class="title">
29                            {{thought.username}}
30                        </a>
31                        <div class="chip">{{thought.time | date:'HH:mm'}}</div>
32                        <p>{{thought.content}}</p>
33                        <a href="#!" class="secondary-content"><i class="material-icons indigo-text text-lighten-2">grade</i></a>
34
35                    </li>
36                </ul>
37            </div>
38
39        </div>
40
41
42
43
44
45
46
47
48      <!--Import jQuery before materialize.js-->
49      <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
50      <script type="text/javascript" src="js/materialize.min.js"></script>
51
52      <script src="jslib/toastr.js"></script>
53      <link type="text/css" rel="stylesheet" href="jslib/toastr.css"/>
54
55      <script src="controllers.js"></script>
56
57
58    </body>
59  </html>