forked from formula1/NodeOS-Blog
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemplate.ejs
154 lines (141 loc) · 6.03 KB
/
template.ejs
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css"/>
<link rel="stylesheet" href="http://node-os.com/css/default.css"/>
<script type="application/javascript" src="http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js"></script>
<style>
.more {display:none}
#articles img{max-width:100%}
#articles article .title img{height:50px}
</style>
</head>
<body>
<header class="navbar navbar-default navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://node-os.com">NodeOS</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li>
<a href="http://node-os.com/GitBlog">Blog</a>
</li>
<li>
<a href="http://node-os.com/blog">Old blog</a>
</li>
<li>
<a href="http://pipes.yahoo.com/pipes/pipe.run?_id=d98a965ba7d3f6555b939d707b18dc39&_render=rss&label=blog&owner=NodeOS&repo=NodeOS">RSS</a>
</li>
</ul>
</div>
<!-- /.navbar-collapse -->
</header>
<!-- START: ISSUES ITEM TEMPLATE -->
<section ng-app="NodeOsBlog" id="articles" class="section">
<div class="container error">
</div>
<script type="text/html" class="template error">
<article class="row" data-unique="{{unique}}">
<div class="col-sm-8 col-sm-offset-2 {{class}}" >
<header class="alert alert-danger" role="alert">
<h3 class="title">{{name}}</h3>
<a href="#" class="remove">To remove this message, click here</a>
</header>
<div class="content">{{{message}}}</div>
<footer>
Don't worry, it probably was not your fault... probably...<br/>
Even if it was,
<a target="_blank" href="https://github.com/NodeOS/GitBlog/issues">just submit an issue :)</a>
</footer>
</div>
</article>
</script>
<div id="westoredata" class="jumbotron">
<h1>We store data on your computer</h1>
<div>
<p>
If you login: We store your access token we retrieve from github on your computer as a cookie.
<a class="btn btn-primary" href="https://github.com/formula1/AuthProvider/blob/master/index.js#L87">See the Code</a>
</p>
<p class="more">
This is done so that we can access the github api in a verified manner.<br/>
This is purely optional and we never use your user information.<br/>
This is done to avoid server operations.
</p>
<p>
By Using the Blog: We store data we get from github on your available local storage.
<a class="btn btn-primary" href="https://github.com/NodeOS/GitBlog/blob/master/js/cacheOrLoad.js">See the Code</a>
</p>
<p class="more" >
This is done so that you may avoid as many calls to github as possible.<br/>
Without this, you would have to request github every time you wanted to view a page.<br/>
This is not optional.
</p>
</div>
<p>
<a class="btn btn-primary btn-lg" href="#" role="button">Learn more</a>
</p>
</div>
<%-cur_page.body%>
</section>
<!-- END: ISSUES ITEM TEMPLATE -->
<div class="section inverse trampstamp">
<div class="row">
<div class="col-xs-12">
<img src="http://node-os.com/images/nodeos-update.png">
</div>
</div>
</div>
<footer>
<div class="container" id="footer">
<div class="row">
<div class="col-sm-7">
<h3 class="footer-title">Share</h3>
<p>NodeOS is a work in progress.</p>
<p>If you would like to support us, please share NodeOS via Twitter</p>
<p class="pvl">
<a href="https://twitter.com/TheNodeOS"
class="twitter-follow-button"
data-show-count="false"
data-size="large">Follow @TheNodeOS</a>
<script type="text/javascript">
(function(d,s,id){
var js;
fjs=d.getElementsByTagName(s)[0];
p= /^http\:/.test(d.location)?'http':'https';
if(!d.getElementById(id)){
js=d.createElement(s);
js.id=id;
js.src=p+'://platform.twitter.com/widgets.js';
fjs.parentNode.insertBefore(js,fjs);
}
})(document, 'script', 'twitter-wjs');
</script>
<a href="https://twitter.com/share"
class="twitter-share-button"
data-url="http://node-os.com/blog/OS-flavors"
data-text="NodeOS - The NodeJS Powered Operating System"
data-via="TheNodeOS" data-size="large">Tweet</a>
</p>
</div>
</div>
</div>
</footer>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script type="text/javascript" src="api.js"></script>
<script type="text/javascript">
<%-cur_page.foot%>
</script>
<!-- END: BIND DATA TO VIEW -->
</body>
</html>