-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwikistatus.html
More file actions
287 lines (287 loc) · 11.8 KB
/
wikistatus.html
File metadata and controls
287 lines (287 loc) · 11.8 KB
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<!doctype html>
<html>
<head>
<title>Wiki Content Update Status</title>
</head>
<body>
<form id="resource_form" action="/admin/wikistatus" method="post">
<input type="hidden" name="wiki_url" value="" />
<input type="hidden" name="action" value="" />
<input type="hidden" name="status" value="" />
</form>
<div id="instructions">
<h2>Instructions for updating the wiki</h2>
<ol>
<li>Click the link in the Wiki URL column below of the Resource you want to update. Open the resource page in two tabs. You'll be making the edits in one tab, with the other tab open for easy referencing. [See note below if this wiki page is not actually a resource, or does not have enough information to update].</li>
<li>In one of the tabs, click 'Add category' at the bottom of the page and add the category 'Resource'.</li>
<li>Click 'Save'.</li>
<li>Reload the page - you should now see 'Edit with form' at the top (instead of just 'Edit this page').</li>
<li>Click 'Edit with form' and add in any relevant information in the fields at the top. Use the other tab for easy referencing of the source content. Do *not* update the 'Free text' area!</li>
<li>Click 'Publish' at the bottom of the page. (you may have to complete a CAPTCHA).</li>
<li>Click the dropdown arrow next to 'Edit with Form' and select 'Edit this page'.</li>
<li>Click the 'X' next to the 'Resource' category you previously added, to remove it.</li>
<li>Click 'Publish'</li>
<li>Go back to this page and click 'Sync to Wiki' next to the resource you updated to sync the changes to the database. It should now appear in the 'Active' section with the latest information!</li>
</ol>
<p><strong>Note:</strong> There are some pages in the Wiki that are not suitable as Resources in the frontend for projectOPEN. These include the following:
<ul>
<li>It's an event announcement</li>
<li>It's a service without a physical presence (like a phone number)</li>
<li>It's a page that redirects to another page (which is also listed below)</li>
<li>It has incomplete or incomprehensible information</li>
</ul>If the page you go to turns out to not be a resource with information that should appear in the frontend, go back to this page and update the page's status to 'Excluded' in the 'Modify Status' column below.</p>
</div>
{% autoescape on %}
<div id="incomplete">
<h2>Incomplete pages</h2>
<h4 id="incomplete_num"></h4>
<table class="resource_table" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>Name</th>
<th>Modify Status</th>
<th>Sync to Wiki</th>
<th>Wiki URL</th>
<th>Summary</th>
<th>Categories</th>
<th>Frontend Categories</th>
<th>Filter Categories</th>
<th>Address</th>
<th>Geocoded Address</th>
<th>Phone</th>
<th>Email</th>
<th>Website</th>
<th>Contacts</th>
<th>Hours</th>
<th>Languages</th>
<th>Image</th>
<th>Status</th>
<th>Last Updated</th>
</tr>
{% for incomplete_resource in incomplete_resources %}
<tr>
<td>{{ incomplete_resource.name }}</td>
<td class="resource_update">
<select name="status">
<option value="Active">Active</option>
<option value="Incomplete" selected>Incomplete</option>
<option value="Excluded">Excluded</option>
</select>
<input type="submit" value="Update"></input>
<br />Reason: <br />
{% if not incomplete_resource.address %}
No address<br />
{% endif %}
{% if not incomplete_resource.frontend_categories %}
No frontend categories<br />
{% endif %}
</td>
<td class="resource_sync"><input type="submit" value="Sync to Wiki"></input></td>
<td class="resource_url"><a href="http://sfhomeless.wikia.com/wiki/{{ incomplete_resource.wikiurl }}">{{ incomplete_resource.wikiurl }}</a></td>
<td>{{ incomplete_resource.summary }}</td>
<td>{{ incomplete_resource.categories }}</td>
<td>{{ incomplete_resource.frontend_categories }}</td>
<td>{{ incomplete_resource.filter_categories }}</td>
<td>{{ incomplete_resource.address }}</td>
<td>{{ incomplete_resource.geocoded_address }}</td>
<td>{{ incomplete_resource.phone }}</td>
<td>{{ incomplete_resource.email }}</td>
<td>{{ incomplete_resource.website }}</td>
<td>{{ incomplete_resource.contacts }}</td>
<td>{{ incomplete_resource.hours }}</td>
<td>{{ incomplete_resource.languages }}</td>
<td>{% if incomplete_resource.image %}<img src="/image?wikiurl={{ incomplete_resource.wikiurl }}" />{% endif %}</td>
<td>{{ incomplete_resource.status }}</td>
<td>{{ incomplete_resource.last_updated }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div id="excluded">
<h2>Excluded pages</h2>
<h4 id="excluded_num"></h4>
<table class="resource_table" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>Name</th>
<th>Modify Status</th>
<th>Sync to Wiki</th>
<th>Wiki URL</th>
<th>Summary</th>
<th>Categories</th>
<th>Frontend Categories</th>
<th>Filter Categories</th>
<th>Address</th>
<th>Geocoded Address</th>
<th>Phone</th>
<th>Email</th>
<th>Website</th>
<th>Contacts</th>
<th>Hours</th>
<th>Languages</th>
<th>Image</th>
<th>Status</th>
<th>Last Updated</th>
</tr>
{% for excluded_resource in excluded_resources %}
<tr>
<td>{{ excluded_resource.name }}</td>
<td class="resource_update">
<select name="status">
<option value="Active">Active</option>
<option value="Incomplete">Incomplete</option>
<option value="Excluded" selected>Excluded</option>
</select>
<input type="submit" value="Update"></input>
</td>
<td class="resource_sync"><input type="submit" value="Sync to Wiki"></input></td>
<td class="resource_url"><a href="http://sfhomeless.wikia.com/wiki/{{ excluded_resource.wikiurl }}">{{ excluded_resource.wikiurl }}</a></td>
<td>{{ excluded_resource.summary }}</td>
<td>{{ excluded_resource.categories }}</td>
<td>{{ excluded_resource.frontend_categories }}</td>
<td>{{ excluded_resource.filter_categories }}</td>
<td>{{ excluded_resource.address }}</td>
<td>{{ excluded_resource.geocoded_address }}</td>
<td>{{ excluded_resource.phone }}</td>
<td>{{ excluded_resource.email }}</td>
<td>{{ excluded_resource.website }}</td>
<td>{{ excluded_resource.contacts }}</td>
<td>{{ excluded_resource.hours }}</td>
<td>{{ excluded_resource.languages }}</td>
<td>{% if excluded_resource.image %}<img src="/image?wikiurl={{ excluded_resource.wikiurl }}" />{% endif %}</td>
<td>{{ excluded_resource.status }}</td>
<td>{{ excluded_resource.last_updated }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div id="deleted">
<h2>Deleted pages</h2>
<h4 id="deleted_num"></h4>
<table class="resource_table" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>Name</th>
<th>Modify Status</th>
<th>Sync to Wiki</th>
<th>Wiki URL</th>
<th>Summary</th>
<th>Categories</th>
<th>Frontend Categories</th>
<th>Filter Categories</th>
<th>Address</th>
<th>Geocoded Address</th>
<th>Phone</th>
<th>Email</th>
<th>Website</th>
<th>Contacts</th>
<th>Hours</th>
<th>Languages</th>
<th>Image</th>
<th>Status</th>
<th>Last Updated</th>
</tr>
{% for deleted_resource in deleted_resources %}
<tr>
<td>{{ deleted_resource.name }}</td>
<td class="resource_update">
<select name="status">
<option value="Active">Active</option>
<option value="Incomplete">Incomplete</option>
<option value="Excluded">Excluded</option>
<option value="Deleted" selected>Deleted</option>
</select>
<input type="submit" value="Update"></input>
</td>
<td class="resource_sync"><input type="submit" value="Sync to Wiki"></input></td>
<td class="resource_url"><a href="http://sfhomeless.wikia.com/wiki/{{ deleted_resource.wikiurl }}">{{ deleted_resource.wikiurl }}</a></td>
<td>{{ deleted_resource.summary }}</td>
<td>{{ deleted_resource.categories }}</td>
<td>{{ deleted_resource.frontend_categories }}</td>
<td>{{ deleted_resource.filter_categories }}</td>
<td>{{ deleted_resource.address }}</td>
<td>{{ deleted_resource.geocoded_address }}</td>
<td>{{ deleted_resource.phone }}</td>
<td>{{ deleted_resource.email }}</td>
<td>{{ deleted_resource.website }}</td>
<td>{{ deleted_resource.contacts }}</td>
<td>{{ deleted_resource.hours }}</td>
<td>{{ deleted_resource.languages }}</td>
<td>{% if deleted_resource.image %}<img src="/image?wikiurl={{ deleted_resource.wikiurl }}" />{% endif %}</td>
<td>{{ deleted_resource.status }}</td>
<td>{{ deleted_resource.last_updated }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div id="complete">
<h2>Complete pages</h2>
<h4 id="complete_num"></h4>
<table class="resource_table" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<th>Name</th>
<th>Modify Status</th>
<th>Sync to Wiki</th>
<th>Sync to FusionTables</th>
<th>Wiki URL</th>
<th>Summary</th>
<th>Categories</th>
<th>Frontend Categories</th>
<th>Filter Categories</th>
<th>Address</th>
<th>Geocoded Address</th>
<th>Phone</th>
<th>Email</th>
<th>Website</th>
<th>Contacts</th>
<th>Hours</th>
<th>Languages</th>
<th>Image</th>
<th>Status</th>
<th>Last Updated</th>
</tr>
{% for complete_resource in complete_resources %}
<tr>
<td>{{ complete_resource.name }}</td>
<td class="resource_update">
<select name="status">
<option value="Active" selected>Active</option>
<option value="Incomplete">Incomplete</option>
<option value="Excluded">Excluded</option>
</select>
<input type="submit" value="Update"></input>
</td>
<td class="resource_sync"><input type="submit" value="Sync to Wiki"></input></td>
<td class="resource_fusion_sync"><input type="submit" value="Sync to Fusion Tables"></input></td>
<td class="resource_url"><a href="http://sfhomeless.wikia.com/wiki/{{ complete_resource.wikiurl }}">{{ complete_resource.wikiurl }}</a></td>
<td>{{ complete_resource.summary }}</td>
<td>{{ complete_resource.categories }}</td>
<td>{{ complete_resource.frontend_categories }}</td>
<td>{{ complete_resource.filter_categories }}</td>
<td>{{ complete_resource.address }}</td>
<td>{{ complete_resource.geocoded_address }}</td>
<td>{{ complete_resource.phone }}</td>
<td>{{ complete_resource.email }}</td>
<td>{{ complete_resource.website }}</td>
<td>{{ complete_resource.contacts }}</td>
<td>{{ complete_resource.hours }}</td>
<td>{{ complete_resource.languages }}</td>
<td>{% if complete_resource.image %}<img src="/image?wikiurl={{ complete_resource.wikiurl }}" />{% endif %}</td>
<td>{{ complete_resource.status }}</td>
<td>{{ complete_resource.last_updated }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endautoescape %}
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script>
<script type="text/javascript" src="/static/status.js"></script>
</body>
</html>