This repository has been archived by the owner on Sep 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtemplates.go
169 lines (166 loc) · 6.82 KB
/
templates.go
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
/*****************************************************************************
**
** Gofr
** https://github.com/pokebyte/Gofr
** Copyright (C) 2013-2017 Akop Karapetyan
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**
******************************************************************************
*/
package gofr
const introTemplateHTML = `
<!DOCTYPE html>
<html lang="en-US">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="/content/intro.css" type="text/css" rel="stylesheet"/>
<title>Gofr</title>
</head>
<body>
<div class="content">
<div class="header">
</div>
<div class="stripe">
<div class="text">
<h1>Gofr</h1>
<h3>An open source RSS reader for the cloud.</h3>
<button class="sign-in" onclick="window.location='/reader';">Sign in with Google</button>
<div style="clear: both;"></div>
</div>
</div>
<div class="features">
<div class="boxen">
<div class="box one">
<h3>Flexible.</h3>
<p>Designed for desktop and mobile, with support for touch, mouse and keyboard navigation - including most of Google Reader's shortcut keys.</p>
</div>
<div class="box two">
<h3>Scalable.</h3>
<p>Written in <a href="http://www.golang.org/">Go</a> for the
<a href="https://developers.google.com/appengine">Google App Engine</a>,
with the Cloud Datastore as the data backend.</p>
</div>
<div class="box three">
<h3>Extensible.</h3>
<p>Gofr is <a href="https://github.com/pokebyte/Gofr">open source</a> - use it as-is, or improve it and share with everyone else.</p>
</div>
</div>
<div class="hr"></div>
<div class="bottom">
<div class="screenshot"></div>
</div>
</div>
<div class="footer">
Written by <a href="http://www.akop.org/">Akop Karapetyan</a>
• <a class="license" href="https://raw.github.com/pokebyte/Gofr/master/LICENSE">License</a>
• <a class="source" href="https://github.com/pokebyte/Gofr">Source</a>
</div>
</div>
</body>
</html>
`
const readerTemplateHTML = `
<!DOCTYPE html>
<html lang="en-US">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="content/reader.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="/_ah/channel/jsapi"></script>
<script src="content/sprintf.min.js" type="text/javascript"></script>
<script src="content/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="content/jquery.hotkeys.js" type="text/javascript"></script>
<script src="content/jquery.cookie.js" type="text/javascript"></script>
<script src="content/jquery.form.min.js" type="text/javascript"></script>
<script src="content/jquery.scrollintoview.min.js" type="text/javascript"></script>
<script src="content/l10n/default.js" type="text/javascript"></script>
<script src="content/l10n/en-us.js" type="text/javascript"></script>
<script src="content/menus.js" type="text/javascript"></script>
<script src="content/reader.js" type="text/javascript"></script>
<title>Gofr</title>
</head>
<body>
<div id="toast"><span></span></div>
<div id="header">
<h1>Gofr</h1>
<div class="infobar">
<div class="right-aligned">
<button class="user-options dropdown" data-dropdown="menu-user-options" title="{{.UserEmail}}">{{.UserEmail}}</button>
<a id="sign-out" href="{{.LogOutURL}}">sign out</a>
</div>
</div>
</div>
<div class="navbar">
<div class="right-aligned">
<button class="view-button dropdown _l" data-dropdown="menu-view" title="View">View</button>
<button class="settings dropdown _l" data-dropdown="menu-settings" title="Settings"> </button>
<button class="select-article up _l" title="Previous Article"> </button><button class="select-article down _l" title="Next Article"> </button>
</div>
<button class="navigate _l" title="Navigate"> </button>
<button class="refresh _l" title="Refresh"> </button>
<button class="filter dropdown _l" data-dropdown="menu-filter">All Items</button>
<button class="mark-all-as-read _l">Mark all as read</button>
</div>
<div id="reader">
<div class="feeds-container">
<button class="subscribe solid-color _l">Subscribe</button>
<ul id="subscriptions"></ul>
</div>
<div class="gofr-entries-container">
<div class="center-message"></div>
<div class="gofr-entries-header"></div>
<div id="gofr-entries"></div>
</div>
</div>
<div id="footer">
<a class="about _l" href="http://www.akop.org/">About</a>
• <a class="license _l" href="https://raw.github.com/pokebyte/Gofr/master/LICENSE">License</a>
• <a class="source _l" href="https://github.com/pokebyte/Gofr">Source</a>
<a class="bookmarklet _l" href="#">Bookmarklet</a>
</div>
<div class="modal-blocker"></div>
<div id="import-subscriptions" class="modal">
<h1 class="_l">Upload OPML file</h1>
<form enctype="multipart/form-data" action="#" method="post">
<div>
<input name="opml" type="file" />
<input name="client" type="hidden" value="" />
</div>
</form>
<div class="buttons">
<button class="modal-cancel _l">Cancel</button>
<button class="modal-ok _l">Upload</button>
</div>
</div>
<div id="about" class="modal">
<p><b>Gofr</b> is an open source Feed Reader
(Google Reader clone) for
<a href="https://developers.google.com/appengine/">Google App Engine</a>,
with source code available on
<a href="https://github.com/pokebyte/Gofr">GitHub</a>.</p>
<p>It's written in <a href="http://golang.org/">Go</a> and JavaScript
(using <a href="http://jquery.com/">jQuery</a>) and is loosely based on
<a href="https://github.com/pokebyte/grr">grr</a> -
an initial implementation written for PHP/MySQL.</p>
<p>Gofr is written by <a href="http://www.akop.org/">Akop Karapetyan</a>.</p>
<div class="buttons">
<button class="modal-cancel _l">Close</button>
</div>
</div>
</body>
</html>
`