client/app/index.html
author rougeronj
Wed, 08 Apr 2015 00:36:37 +0200
changeset 77 ee963d1c409b
parent 57 388b29d38b44
child 78 aaffa46a2b79
permissions -rw-r--r--
Add new serializer for the data send by Orpheo. We receive XML so we parse it to json. Then we parse some html to get the proper data of each attribute. Add xmlToJson parser module to requirements.txt
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
<!doctype html>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
<html>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
<head>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
  <meta charset="utf-8">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
  <title>Ammico : Home</title>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
  <link rel="stylesheet" href="lib.css">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
  <link rel="stylesheet" href="app.css">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
</head>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
<body ng-controller="homeCtrl" ng-app="ammico" ng-cloak>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
  <div class="navbar navbar-inverse" role="navigation">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
      <div class="container">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
        <div class="navbar-header">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
          <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
    14
            <span class="sr-only">Toggle navigation</span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
            <span class="icon-bar"></span>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
          </button>
6
4be9f21f2df1 show/hide texts
cavaliet
parents: 3
diff changeset
    19
          <a class="navbar-brand" id="logo" href="#/"><img src="img/ammico_logo_small.png"></a>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
        <div class="collapse navbar-collapse">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
          <ul class="nav navbar-nav" ng-controller="routeClassCtrl">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
            <li ng-class="{active:isActive('/')}"><a href="#/">Home</a></li>
27
2b508b65571a add routes for books and slides
rougeronj
parents: 14
diff changeset
    24
            <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
    25
            <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
    26
          </ul>
13
08f34bbc70ee set up django rest framework
rougeronj
parents: 8
diff changeset
    27
          <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
    28
            <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
    29
            <li ng-show="globals.userLogged"><a href="#/auth/logout">Logout</a></li>
13
08f34bbc70ee set up django rest framework
rougeronj
parents: 8
diff changeset
    30
          </ul>
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    31
          <form class="navbar-form navbar-right" role="search" ng-submit="searchSubmit()">
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    32
            <div class="form-group">
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    33
                <input class="form-control" type="text" ng-model="q" placeholder="Chercher" />
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    34
                <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button>
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    35
            </div>
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    36
          </form>
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    37
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    38
      </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    39
  </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    40
  <div class="container">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    41
    <div class="ammico-content">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    42
      <div ng-view></div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    43
    </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    44
    <footer>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    45
      <div class="row">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    46
        <div class="footer-img col-md-6">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    47
            <a href="http://www.iri.centrepompidou.fr" target="_blank"><img src="img/logo_IRI_footer.png" alt="Logo IRI" /></a>
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 class="col-md-6 text-right">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    50
            ammico vBeta - ©2014
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
        </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
      </div>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
    </footer>
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
  <script type="text/javascript" src="lib.js"></script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
  <script type="text/javascript" src="templates.js"></script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
  <script type="text/javascript" src="app.js"></script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
  <script type="text/javascript">
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
      angular.module("ammico")
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60
          .value('context', {
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    61
              record: angular.fromJson('{"record": "record value"}'),
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    62
              urls: {
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    63
                  base_static: "./",
14
4d27fbc3f9df Succed to get the books from our api server and print them dynamically
rougeronj
parents: 13
diff changeset
    64
                  ammicoUrl: "http://127.0.0.1:8080/ammico",
1
74bbdd739878 views, path, search...
cavaliet
parents: 0
diff changeset
    65
                  searchUrl: "http://ammico.labs.exalead.com/search-api"
0
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    66
              }
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    67
          });
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    68
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    69
  </script>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    70
</body>
cef349423167 add basic file org + client prototype
ymh <ymh.work@gmail.com>
parents:
diff changeset
    71
</html>