-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (54 loc) · 2.44 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!doctype html>
<html lang="en" ng-app="myOpenRecipes">
<head>
<meta charset="UTF-8">
<title>Recipes</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/elasticsearch/elasticsearch.angular.min.js"></script>
</head>
<body class="index">
<div class="container">
<div ng-controller="recipeCtrl">
<header>
<span class="me">Ilpaijin's</span>
<h1>Elastic Recipes Demo</h1>
</header>
<section class="searchField">
<form ng-submit="search()">
<div class="form-group">
<input type="text" ng-model="searchTerm" class="form-control">
</div>
<input type="submit" value="Search for recipes" class="btn btn-primary">
</form>
</section>
<section class="meta well">
<p>Processed on ES in: <span class="badge">{{processTime}}ms</span></p>
<p>Total recipes found: <span class="badge">{{total}} </span> over <span class="badge">{{totalRecipes}}</span> </p>
<p>Now showing: <span class="badge">{{count}}</span> recipes</p>
</section>
<section class="results">
<div class="no-recipes" ng-hide="recipes.length">
No Result
</div>
<article class="recipe" ng-repeat="recipe in recipes" ng-cloak>
<h2>
<span class="glyphicon glyphicon-cutlery"></span>
<a ng-href="{{recipe.url}}">{{recipe.name}}</a>
</h2>
<p>
<span class="boldish">Description:</span> {{recipe.description || "//"}}
</p>
<p><span class="boldish">Ingredients:</span> {{recipe.ingredients || "//"}}</p>
<p><a ng-href="{{recipe.url}}">...more at {{recipe.source}}</a></p>
</article>
<div class="load-more" ng-hide="allResults" ng-cloak>
<a ng-click="loadMore()">More...</a>
</div>
</section>
</div>
</div>
<script src="js/app.js"></script>
</body>
</html>