-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathindex.html
77 lines (71 loc) · 3.83 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
67
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html ng-app="Freader">
<head>
<title>Freader</title>
<script type="text/javascript">connected = {{alreadyLogged}};</script> <!-- Actual connection state directly in the head, so we don't have to get it with an AJAX request -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular-resource.min.js"></script>
<script src="webapp.js"></script>
<link href='http://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>
<link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="webapp.css">
<meta charset="utf-8">
</head>
<body ng-view>
<script type="text/ng-template" id="loginView">
<div class="container login-screen" id="loginView" ng-controller="loginCtrl">
<div class="login-icon">
<img src="images/icon.png" alt="Welcome to Freader">
<h4>Welcome to <small>Freader</small></h4>
</div>
<form ng-submit="action()" class="login-form" name="actionForm">
<p class="errorMsg">{{errorMsg}}</p>
<div class="control-group">
<input type="email" class="login-field" id="login-name" placeholder="Email" ng-model="email" required>
<label class="login-field-icon fui-user" for="login-name"></label>
</div>
<div class="control-group">
<input type="password" class="login-field" id="login-pass" placeholder="Password" ng-model="password" required>
<label class="login-field-icon fui-lock" for="login-pass"></label>
</div>
<input type="submit" value="{{text.action}}" ng-disabled="actionForm.$invalid" class="btn btn-primary btn-large btn-block">
<a ng-click="changeAction()" class="actionChange">{{text.changeAction}}</a>
</form>
</div>
</script>
<script type="text/ng-template" id="feedsView">
<div class="container">
<header>
<h1>Freader</h1>
<div class="actions">
<form ng-submit="addFeed()" class="feedAddForm">
<input class="feedAddInput" type="url" ng-class="{active: showNewFeed}" ng-model="newFeedUrl" required placeholder="Feed URL">
<span class="addError" ng-class="{active: addErrorText && showNewFeed}">{{addErrorText}}</span>
</form
><span class="headerAction actionAdd" ng-class="{active: showNewFeed}" ng-click="(!showNewFeed || addFeed()) && (showNewFeed = true)">
<i class="icon-plus" ng-class="{'icon-spin': addFeedLoading}"></i>
</span
><span class="headerAction actionDisconnect" ng-click="disconnect()"><i class="icon-off"></i></span>
<div class="overlay" ng-click="showNewFeed = false" ng-class="{active: showNewFeed}"></div>
</div>
</header>
<div class="feeds">
<div class="feed" ng-repeat="feed in feeds">
<p class="title">{{feed.name}}</p>
<p class="description">{{feed.description}}</p>
<div class="articles" ng-class="{active: feed.showArticles}">
<p class="article" ng-repeat="article in feed.items"><a href="{{article.link}}" target="_blank">{{article.title}}</a></p>
</div>
<span class="showArticlesButton" ng-click="feed.showArticles = !feed.showArticles"><i ng-class="{'icon-arrow-down': !feed.showArticles, 'icon-arrow-up': feed.showArticles}"></i></span>
<span class="deleteButton" ng-click="feed.deletePopup = true"><i class="icon-remove"></i></span>
<div class="overlay" ng-click="feed.deletePopup = false" ng-class="{active: feed.deletePopup}"></div>
<div class="deletePopup" ng-class="{active: feed.deletePopup}">
<p>Do you really want to delete this feed ?</p>
<a class="btn btn-danger btnDeletePopup" ng-click="deleteFeed(feed)">Yes</a><a class="btn btnDeletePopup" ng-click="feed.deletePopup = false">No</a>
</div>
</div>
</div>
</div>
</script>
</body>
</html>