-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex copy.html
250 lines (225 loc) · 15 KB
/
index copy.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
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
<!DOCTYPE html>
{% autoescape true %}
<!DOCTYPE html>
<html lang="en">
<head>
<base target="_self">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>medReach</title>
<meta name="description" content="GAE Demo Updated" />
<meta name="twitter:card" content="photo" />
<meta name="twitter:site" content="@BootstrapZero" />
<meta name="google-site-verification" content="3YZMYT6XcVJlav0ZKb7MQrzjnRGApJS8FOsrG4fPrXo" />
<link rel="author" href="">
<link rel="publisher" href="">
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,100,500,300,700' rel='stylesheet' type='text/css'>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<!-- <link href="/stylesheets/snippet.css" rel="stylesheet">-->
<!--[if lt IE 9]>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<style>
.icon-vote {
height:32px;
width:32px;
border: none;
cursor: pointer;
/* color:white;*/
background-color: Transparent;
position:relative;
}
.inline {
display: inline;
}
.fileUpload {
/* position: relative;*/
/* overflow: hidden;*/
/* margin: 10px;*/
}
.fileUpload input.upload {
position: absolute;
/* top: 0;*/
/* right: 0;*/
/* margin: 0;*/
/* padding: 0;*/
/* font-size: 20px;*/
cursor: pointer;
opacity: 0;
filter: alpha(opacity=1);
}
</style>
</head>
<body>
<div id="wrap">
<header class="navbar navbar-bright navbar-fixed-top" role="banner" data-spy="affix" data-offset-top="80">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".navbar-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" id="brand" href="/" title="">med<span style="color:#f9f9f9;font-weight:200;">Reach</span></a>
</div>
<nav class="collapse navbar-collapse" role="navigation" id="navbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="/settings" rel="nofollow">My medReach</a></li>
<li><a href="/about" rel="nofollow" >About</a></li>
<li><a id="btnAbout" href="{{ url|safe }}">{{ url_linktext }}</a></li>
</ul>
</nav>
</div>
</header>
<div id="masthead">
<div class="container">
<div class="col-sm-7">
<h1>medReach<p class="lead"><span style="color:#CCFF33;">Reaching the </span>Need</p></h1>
<p style="font-style:italic; font-size:1.2em; line-height: 1.2em">"Verily I say unto you, Inasmuch as ye have done it unto one of the least of these my brethren, ye have done it unto me."</p>
</div>
<div class="col-sm-5 well well-sm">
<!-- ad space -->
<img src="https://s3.amazonaws.com/glengoffin/uploads/engeye-health-clinic-in-uganda.jpg" style="max-height:260px; max-width:100%;">
</div>
</div>
</div>
<div class="container" >
<div class="col-md-8">
<div ><p class="discussion-title">{{ discussion_title }}</p><p class="discussion-title3" style="float:right">{{ user }}</p></div>
<div><blockquote><p style="color:gray; font-size: 1em; font-weight: 400;">{{discussion.content}}</p></blockquote></div>
<br>
<table class="table table-responsive">
{% for list in greeting_list %}
{% set oloop = loop %}
{% for greeting in list %}
{% if greeting.subcomment == False or greeting.subcomment == None %}
<tr>
{% if greeting.upvotes != None and greeting.downvotes != None %}
<td>
<div><form action="/vote?vote_type=up&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-asc fa-2x" type="submit" id="submit"></button></form></div>
<div style="padding-left: 10px;"><span style="font-size: 1.3em; font-weight: 400; color: dodgerblue;">{{ greeting.upvotes - greeting.downvotes }}</span></div>
<div><form action="/vote?vote_type=down&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-desc fa-2x" type="submit" id="submit" ></button></form></div>
</td>
{% else %}
<td style="max-width: 10px;">
<div><form action="/vote?vote_type=up&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-asc fa-2x" type="submit" id="submit"></button></form></div>
<div style="text-align:center; padding-right: 4px;"><span style="font-size: 1.3em; font-weight: 400; color: dodgerblue;">0</span></div>
<div><form action="/vote?vote_type=down&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-desc fa-2x" type="submit" id="submit" ></button></form></div>
</td>
{% endif %}
<td>
{% if greeting.author %}
<p><img src="/img?img_id={{ greeting.key.urlsafe() }}">
<a class="comment-owner"> {{ greeting.author.email }} </a><a class="comment-title">wrote: </a></p>
{% else %}
<p>
<span class="glyphicon glyphicon-user"></span>
<!-- <img src="img/profile-default.jpeg" height=32 width=32/>-->
Anonymous <a class="comment-title">wrote: </a></p>
{% endif %}
<p style="font-size: .7em; font-weight: 300; line-height: .6em;">{{ greeting.date.ctime() }}</p>
<p style="padding-left: 5px;">{{ greeting.content }}</p>
{% for photo in greeting.photos %}
<div style="float:right; padding-right: 2px; padding-bottom: 2px;"><img src="/photo?img_id={{ greeting.key.urlsafe() }}&loop_index={{ loop.index }}" style="height:180px; width:260px; border:1px solid #666;"></div>
{% endfor %}
</td>
<td style="float:right;" class="">
<div class="fileUpload">
<form action="/upload_img?greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post">
<span style="font-size: 0.9em; font-weight:300; display:inline-block; float:right">Upload Photo</span><input type="file" onchange="this.form.submit()" name="photo" class="upload"/>
</form></div>
<form action="/delete?del_type=greeting&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" method="post">
<input type="submit" id="submit" value="Delete Comment" style="font-size: 0.9em; font-weight:300; display:inline-block; float:right">
</form>
<a id="addcmt-{{oloop.index}}" class="addcmt" data-value={{oloop.index}} style="font-size: 0.9em; font-weight:300; display:inline-block; float:right">Enter Reply</a>
<form action="/sign?parent=greeting&key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post">
<textarea name="content" tabindex="2" class="commentarea-{{oloop.index}}" style="display:none;"></textarea>
<input type="submit" id="submit" value="Post Reply" style="font-size: 0.9em; font-weight:300; display:inline-block; float:right">
</form>
<script>
$('#addcmt-{{oloop.index}}').bind( "click", function(event) {
// console.log($(this).data("value"));
// console.log(this);
// console.log(event.target);
// console.log(event.target.id)
$(".commentarea-{{oloop.index}}").toggle();
if ($("#addcmt-{{oloop.index}}").text() == "Enter Reply") {
$("#addcmt-{{oloop.index}}").text("Remove Reply");
}
else {
$("#addcmt-{{oloop.index}}").text("Enter Reply");
}
});
</script>
</td>
<!-- </td>-->
</tr>
{% elif greeting.subcomment == True %}
<tr>
<td></td>
<!--
{% if greeting.upvotes != None and greeting.downvotes != None %}
<td>
<div><form action="/vote?vote_type=up&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-asc fa-2x" type="submit" id="submit"></button></form></div>
<div style="padding-left: 10px;"><span style="font-size: 1.3em; font-weight: 400; color: dodgerblue;">{{ greeting.upvotes - greeting.downvotes }}</span></div>
<div><form action="/vote?vote_type=down&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-desc fa-2x" type="submit" id="submit" ></button></form></div>
</td>
{% else %}
<td>
<div><form action="/vote?vote_type=up&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-asc fa-2x" type="submit" id="submit"></button></form></div>
<div style="text-align:center; padding-right: 4px;"><span style="font-size: 1.3em; font-weight: 400; color: dodgerblue;">0</span></div>
<div><form action="/vote?vote_type=down&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post"><button class="icon-vote fa fa-sort-desc fa-2x" type="submit" id="submit" ></button></form></div>
</td>
{% endif %}
-->
<td>
<div style="padding-left:50px;">
{% if greeting.author %}
<p><img src="/img?img_id={{ greeting.key.urlsafe() }}" height=16 width=16>
<a style="font-size: .8em; font-weight: 400; line-height: 1em; padding-left: 5px;"> {{ greeting.author.email }} </a><a style="font-size: .8em; font-weight: 400; line-height: 1em; padding-left: 5px;">wrote: </a></p>
{% else %}
<p>
<img src="img/profile-default.jpeg" height=16 width=16/>
Anonymous <a>wrote: </a></p>
{% endif %}
<p style="font-size: .7em; font-weight: 300; line-height: .6em;">{{ greeting.date.ctime() }}</p>
<p style="font-size: .8em; font-weight: 400; line-height: 1em; padding-left: 5px;">{{ greeting.content }}</p>
{% for photo in greeting.photos %}
<div style="float:right; padding-right: 2px; padding-bottom: 2px;"><img src="/photo?img_id={{ greeting.key.urlsafe() }}&loop_index={{ loop.index }}" style="height:180px; width:260px; border:1px solid #666;"></div>
{% endfor %}
</td>
<td style="float:right;">
<div class="fileUpload">
<form action="/upload_img?greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post">
<a style="font-size: 0.8em; font-weight:300; display:inline-block; float:right">Upload Photo</a><input type="file" onchange="this.form.submit()" name="photo" class="upload"/>
</form>
<form action="/delete?del_type=greeting&greeting_key={{ greeting.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" method="post">
<input type="submit" id="submit" value="Delete Comment" style="font-size: 0.8em; font-weight:300; display:inline-block; float:right">
</form>
</div>
<!-- </td>-->
</td>
</tr>
{% endif %}
{% endfor %} <!-- end of inner-list iterator -->
{% endfor %} <!-- end of outer-list iterator-->
</table>
<hr class="line_break">
<p class="discussion-title2">Add a Comment</p>
<form action="/sign?parent=discussion&key={{ discussion.key.urlsafe() }}&discussion_key={{ discussion.key.urlsafe() }}" enctype="multipart/form-data" method="post">
<textarea class="style-4" name="content" rows="3" style="width:100%; padding-left: 15px;" placeholder="Add Your Comment . . . "></textarea>
<div align="right"><input class="btn btn-secondary-outline" type="submit" id="submit" value="Add Comment"></div>
</form>
<div class="mr-footer-small" align="center"><p>(c) 2016 medReach</p></div>
</div>
</div>
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
</body>
</html>
{% endautoescape %}