client/app/index.html
author rougeronj
Thu, 23 Apr 2015 18:17:10 +0200
changeset 86 2deead259283
parent 78 aaffa46a2b79
child 88 2db951a4a04c
permissions -rw-r--r--
add user filter to send bakc only the slides and books of the current user
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     1
<!-- build:django -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     2
<!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     3
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
<!doctype html>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
<html>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
<head>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
  <meta charset="utf-8">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
  <title>Ammico : Home</title>
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
     9
  
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    10
  <!-- build:css -->
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
  <link rel="stylesheet" href="lib.css">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
  <link rel="stylesheet" href="app.css">
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    13
  <!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    14
  
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
</head>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
<body ng-controller="homeCtrl" ng-app="ammico" ng-cloak>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
  <div class="navbar navbar-inverse" role="navigation">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
      <div class="container">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
        <div class="navbar-header">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
            <span class="sr-only">Toggle navigation</span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
          </button>
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    26
          <a class="navbar-brand" id="logo" href="#/">
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    27
          	<!-- build:imgLogo -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    28
          	<img src="img/ammico_logo_small.png">
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    29
          	<!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    30
          </a>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
        <div class="collapse navbar-collapse">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
          <ul class="nav navbar-nav" ng-controller="routeClassCtrl">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    34
            <li ng-class="{active:isActive('/')}"><a href="#/">Home</a></li>
27
2b508b65571a add routes for books and slides
rougeronj
parents: 14
diff changeset
    35
            <li ng-class="{active:isActive('/books')}"><a href="#/books">Books</a></li>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    36
            <li ng-class="{active:isActive('/slideshow')}"><a href="#/slideshow">Diaporama</a></li>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
          </ul>
13
08f34bbc70ee set up django rest framework
rougeronj
parents: 8
diff changeset
    38
          <ul class="nav navbar-nav navbar-right" ng-controller="routeClassCtrl">
57
388b29d38b44 add authentication and controle of authentication before routing
rougeronj
parents: 41
diff changeset
    39
            <li ng-hide="globals.userLogged" ng-class="{active:isActive('/login')}"><a href="#/auth/login">Login</a></li>
388b29d38b44 add authentication and controle of authentication before routing
rougeronj
parents: 41
diff changeset
    40
            <li ng-show="globals.userLogged"><a href="#/auth/logout">Logout</a></li>
13
08f34bbc70ee set up django rest framework
rougeronj
parents: 8
diff changeset
    41
          </ul>
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    42
          <form class="navbar-form navbar-right" role="search" ng-submit="searchSubmit()">
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    43
            <div class="form-group">
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    44
                <input class="form-control" type="text" ng-model="q" placeholder="Chercher" />
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    45
                <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button>
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    46
            </div>
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    47
          </form>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    48
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    49
      </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
  </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
  <div class="container">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
    <div class="ammico-content">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
      <div ng-view></div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
    </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
    <footer>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
      <div class="row">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
        <div class="footer-img col-md-6">
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    58
            <a href="http://www.iri.centrepompidou.fr" target="_blank">
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    59
            	<!-- build:imgFooter -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    60
            	<img src="img/logo_IRI_footer.png" alt="Logo IRI" />
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    61
            	<!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    62
            </a>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    64
        <div class="col-md-6 text-right">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    65
            ammico vBeta - ©2014
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
      </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
    </footer>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
  </div>
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    70
  
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    71
  <!-- build:js -->
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    72
  <script type="text/javascript" src="lib.js"></script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    73
  <script type="text/javascript" src="templates.js"></script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    74
  <script type="text/javascript" src="app.js"></script>
78
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    75
  <!-- endbuild -->
aaffa46a2b79 add gulp task "copy-server" to copy the project built, on the django server
rougeronj
parents: 57
diff changeset
    76
  
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    77
  <script type="text/javascript">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    78
      angular.module("ammico")
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    79
          .value('context', {
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    80
              record: angular.fromJson('{"record": "record value"}'),
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    81
              urls: {
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    82
                  base_static: "./",
86
2deead259283 add user filter to send bakc only the slides and books of the current user
rougeronj
parents: 78
diff changeset
    83
                  ammicoUrl: "http://127.0.0.1:8000/ammico",
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    84
                  searchUrl: "http://ammico.labs.exalead.com/search-api"
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    85
              }
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    86
          });
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    87
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    88
  </script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    89
</body>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    90
</html>