Merge lp:~andrea.corbellini/beeseek/homepage into lp:beeseek/1.0
- homepage
- Merge into 1.0
Proposed by
Andrea Corbellini
Status: | Merged |
---|---|
Approved by: | Andrea Corbellini |
Approved revision: | 377 |
Merged at revision: | not available |
Proposed branch: | lp:~andrea.corbellini/beeseek/homepage |
Merge into: | lp:beeseek/1.0 |
Diff against target: |
491 lines 9 files modified
beeseek/template/__init__.py (+1/-1) beeseek/template/html.py (+2/-2) beeseek/ui/__init__.py (+1/-1) beeseek/ui/navigationinfo.py (+6/-1) templates/css/style.css (+52/-2) templates/html/common.xml (+77/-0) templates/html/configuration.html (+1/-1) templates/html/home.html (+55/-0) templates/html/search.html (+45/-111) |
To merge this branch: | bzr merge lp:~andrea.corbellini/beeseek/homepage |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jacopo Moretto (community) | ui | Approve | |
Andrea Colangelo | text-content | Approve | |
Review via email: mp+13887@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
Andrea Corbellini (andrea.corbellini) wrote : | # |
Revision history for this message
Andrea Colangelo (warp10) : | # |
review:
Approve
(text-content)
- 377. By Andrea Corbellini
-
Fix link.
Revision history for this message
Jacopo Moretto (jak-o) : | # |
review:
Approve
(ui)
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'beeseek/template/__init__.py' | |||
2 | --- beeseek/template/__init__.py 2009-10-21 15:39:48 +0000 | |||
3 | +++ beeseek/template/__init__.py 2009-10-24 14:10:25 +0000 | |||
4 | @@ -115,7 +115,7 @@ | |||
5 | 115 | def precalculate_object(template, tags, content): | 115 | def precalculate_object(template, tags, content): |
6 | 116 | """Give a name to a piece of content so that it can be referenced.""" | 116 | """Give a name to a piece of content so that it can be referenced.""" |
7 | 117 | template.objects[tags['id']] = content | 117 | template.objects[tags['id']] = content |
9 | 118 | show = tags['show'] | 118 | show = tags.get('show', 'True') |
10 | 119 | if show == 'True': | 119 | if show == 'True': |
11 | 120 | return content | 120 | return content |
12 | 121 | elif show == 'False': | 121 | elif show == 'False': |
13 | 122 | 122 | ||
14 | === modified file 'beeseek/template/html.py' | |||
15 | --- beeseek/template/html.py 2009-08-28 19:33:37 +0000 | |||
16 | +++ beeseek/template/html.py 2009-10-24 14:10:25 +0000 | |||
17 | @@ -18,6 +18,6 @@ | |||
18 | 18 | from beeseek.template import Template | 18 | from beeseek.template import Template |
19 | 19 | 19 | ||
20 | 20 | #pylint: disable-msg=C0103 | 20 | #pylint: disable-msg=C0103 |
23 | 21 | start_page = Template('html/search.html', start_page=True) | 21 | start_page = Template('html/home.html') |
24 | 22 | search_page = Template('html/search.html', start_page=False) | 22 | search_page = Template('html/search.html') |
25 | 23 | configuration_page = Template('html/configuration.html') | 23 | configuration_page = Template('html/configuration.html') |
26 | 24 | 24 | ||
27 | === modified file 'beeseek/ui/__init__.py' | |||
28 | --- beeseek/ui/__init__.py 2009-10-20 14:50:05 +0000 | |||
29 | +++ beeseek/ui/__init__.py 2009-10-24 14:10:25 +0000 | |||
30 | @@ -29,7 +29,7 @@ | |||
31 | 29 | headers = instance.http_response_headers.copy() | 29 | headers = instance.http_response_headers.copy() |
32 | 30 | if page == '/beeseek:tracker.js': | 30 | if page == '/beeseek:tracker.js': |
33 | 31 | template = javascript.tracker | 31 | template = javascript.tracker |
35 | 32 | elif page == '/beeseek:style_basic.css': | 32 | elif page == '/beeseek:style.css': |
36 | 33 | template = css.style | 33 | template = css.style |
37 | 34 | elif page == '/beeseek:logo.png': | 34 | elif page == '/beeseek:logo.png': |
38 | 35 | template = images.logo | 35 | template = images.logo |
39 | 36 | 36 | ||
40 | === modified file 'beeseek/ui/navigationinfo.py' | |||
41 | --- beeseek/ui/navigationinfo.py 2009-10-20 16:59:35 +0000 | |||
42 | +++ beeseek/ui/navigationinfo.py 2009-10-24 14:10:25 +0000 | |||
43 | @@ -445,6 +445,7 @@ | |||
44 | 445 | def save(data): | 445 | def save(data): |
45 | 446 | """Save the data received from the JavaScript script to the database.""" | 446 | """Save the data received from the JavaScript script to the database.""" |
46 | 447 | data = read_data(data) | 447 | data = read_data(data) |
47 | 448 | url = data['location'] | ||
48 | 448 | history = generate_history( | 449 | history = generate_history( |
49 | 449 | [int(i) for i in data['focus-history'].split(',')], | 450 | [int(i) for i in data['focus-history'].split(',')], |
50 | 450 | scrollhistory = [int(i) for i in data['scroll-history'].split(',')], | 451 | scrollhistory = [int(i) for i in data['scroll-history'].split(',')], |
51 | @@ -454,11 +455,15 @@ | |||
52 | 454 | snippets_text, snippets_words = get_candidate_snippets( | 455 | snippets_text, snippets_words = get_candidate_snippets( |
53 | 455 | all_positions, data) | 456 | all_positions, data) |
54 | 456 | if not snippets_text: | 457 | if not snippets_text: |
55 | 458 | if __debug__: | ||
56 | 459 | if instance.debug: | ||
57 | 460 | log.debug( | ||
58 | 461 | 'Cannot index %r in the database: no snippets found' | ||
59 | 462 | % url) | ||
60 | 457 | return | 463 | return |
61 | 458 | snippets_text, snippets_words = remove_short_snippets( | 464 | snippets_text, snippets_words = remove_short_snippets( |
62 | 459 | snippets_text, snippets_words) | 465 | snippets_text, snippets_words) |
63 | 460 | 466 | ||
64 | 461 | url = data['location'] | ||
65 | 462 | if not is_public_page(url, snippets_text): | 467 | if not is_public_page(url, snippets_text): |
66 | 463 | if __debug__: | 468 | if __debug__: |
67 | 464 | if instance.debug: | 469 | if instance.debug: |
68 | 465 | 470 | ||
69 | === modified file 'templates/css/style.css' | |||
70 | --- templates/css/style.css 2009-10-23 18:41:08 +0000 | |||
71 | +++ templates/css/style.css 2009-10-24 14:10:25 +0000 | |||
72 | @@ -3,7 +3,7 @@ | |||
73 | 3 | body { | 3 | body { |
74 | 4 | background: #FFFFFF; | 4 | background: #FFFFFF; |
75 | 5 | color: #121212; | 5 | color: #121212; |
77 | 6 | font-family: "Bitstream Vera Sans", Arial, Helvetica, sans-serif; | 6 | font-family: sans-serif; |
78 | 7 | font-size: 9pt; | 7 | font-size: 9pt; |
79 | 8 | margin: 0 1em 0 1em; | 8 | margin: 0 1em 0 1em; |
80 | 9 | padding: 0; | 9 | padding: 0; |
81 | @@ -15,6 +15,12 @@ | |||
82 | 15 | margin-top: 0; | 15 | margin-top: 0; |
83 | 16 | } | 16 | } |
84 | 17 | 17 | ||
85 | 18 | a { | ||
86 | 19 | color: #556D7A; | ||
87 | 20 | text-decoration: none; | ||
88 | 21 | font-weight: bold; | ||
89 | 22 | } | ||
90 | 23 | |||
91 | 18 | div#top { | 24 | div#top { |
92 | 19 | border-bottom: 1px dotted #CFCFCF; | 25 | border-bottom: 1px dotted #CFCFCF; |
93 | 20 | color: #000000; | 26 | color: #000000; |
94 | @@ -27,6 +33,7 @@ | |||
95 | 27 | 33 | ||
96 | 28 | div#top a { | 34 | div#top a { |
97 | 29 | color: #556D7A; | 35 | color: #556D7A; |
98 | 36 | font-weight: normal; | ||
99 | 30 | } | 37 | } |
100 | 31 | 38 | ||
101 | 32 | div#top ul, div#top li { | 39 | div#top ul, div#top li { |
102 | @@ -38,7 +45,7 @@ | |||
103 | 38 | } | 45 | } |
104 | 39 | 46 | ||
105 | 40 | div#top div#links { | 47 | div#top div#links { |
107 | 41 | float:right; | 48 | float: right; |
108 | 42 | } | 49 | } |
109 | 43 | 50 | ||
110 | 44 | div#top div#users { | 51 | div#top div#users { |
111 | @@ -54,6 +61,7 @@ | |||
112 | 54 | 61 | ||
113 | 55 | div#footer a { | 62 | div#footer a { |
114 | 56 | color: #556D7A; | 63 | color: #556D7A; |
115 | 64 | font-weight: normal; | ||
116 | 57 | } | 65 | } |
117 | 58 | 66 | ||
118 | 59 | div#footer ul, div#footer li { | 67 | div#footer ul, div#footer li { |
119 | @@ -203,6 +211,48 @@ | |||
120 | 203 | margin: 1em 0; | 211 | margin: 1em 0; |
121 | 204 | } | 212 | } |
122 | 205 | 213 | ||
123 | 214 | |||
124 | 215 | /* Portlets for the home page. */ | ||
125 | 216 | |||
126 | 217 | div#portlets { | ||
127 | 218 | clear: both; | ||
128 | 219 | left: 4%; | ||
129 | 220 | position: relative; | ||
130 | 221 | width: 96%; | ||
131 | 222 | } | ||
132 | 223 | |||
133 | 224 | div.portlet { | ||
134 | 225 | display: block; | ||
135 | 226 | float: left; | ||
136 | 227 | height: 200px; | ||
137 | 228 | margin: 0 1em 0 0; | ||
138 | 229 | padding: 0.5em; | ||
139 | 230 | position: relative; | ||
140 | 231 | width: 30%; | ||
141 | 232 | } | ||
142 | 233 | |||
143 | 234 | div.portlet h2 { | ||
144 | 235 | color: #FF6600; | ||
145 | 236 | margin: 0; | ||
146 | 237 | padding: 0.2em; | ||
147 | 238 | text-align: center; | ||
148 | 239 | } | ||
149 | 240 | |||
150 | 241 | div.portlet p { | ||
151 | 242 | margin: 0; | ||
152 | 243 | padding: 0.2em; | ||
153 | 244 | } | ||
154 | 245 | |||
155 | 246 | div.portlet a { | ||
156 | 247 | font-weight: bold; | ||
157 | 248 | } | ||
158 | 249 | |||
159 | 250 | div.portlet ul { | ||
160 | 251 | margin: 0; | ||
161 | 252 | padding-left: 1.5em; | ||
162 | 253 | } | ||
163 | 254 | |||
164 | 255 | |||
165 | 206 | /* Configuration page. */ | 256 | /* Configuration page. */ |
166 | 207 | 257 | ||
167 | 208 | form#options { | 258 | form#options { |
168 | 209 | 259 | ||
169 | === added file 'templates/html/common.xml' | |||
170 | --- templates/html/common.xml 1970-01-01 00:00:00 +0000 | |||
171 | +++ templates/html/common.xml 2009-10-24 14:10:25 +0000 | |||
172 | @@ -0,0 +1,77 @@ | |||
173 | 1 | <beeseek:template content-type="text/html"> | ||
174 | 2 | <beeseek:object id="top"> | ||
175 | 3 | <div id="top"> | ||
176 | 4 | <div id="users"> | ||
177 | 5 | <ul> | ||
178 | 6 | <li><a href="http://www.beeseek.org/user/login">Login</a> | </li> | ||
179 | 7 | <li><a href="http://www.beeseek.org/user/register">Register</a></li> | ||
180 | 8 | </ul> | ||
181 | 9 | </div> | ||
182 | 10 | <div id="links"> | ||
183 | 11 | <ul> | ||
184 | 12 | <li><a href="http://blog.beeseek.org">Blog</a> | </li> | ||
185 | 13 | <li><a href="http://planet.beeseek.org">Planet</a> | </li> | ||
186 | 14 | <li><a href="http://forum.beeseek.org">Forum</a> | </li> | ||
187 | 15 | <li><a href="http://wiki.beeseek.org">Wiki</a> | </li> | ||
188 | 16 | <li><a href="http://gallery.beeseek.org">Gallery</a> | </li> | ||
189 | 17 | <li><a href="http://beeseek.org/noticeboard">Noticeboard</a> | </li> | ||
190 | 18 | <li><a href="http://wiki.beeseek.org">Wiki</a> | </li> | ||
191 | 19 | <li><a href="https://launchpad.net/beeseek-project">Launchpad</a></li> | ||
192 | 20 | </ul> | ||
193 | 21 | </div> | ||
194 | 22 | </div> | ||
195 | 23 | </beeseek:object> | ||
196 | 24 | |||
197 | 25 | <beeseek:object id="logo"> | ||
198 | 26 | <div id="logo"> | ||
199 | 27 | <span id="motto">motto goes here</span> | ||
200 | 28 | <beeseek:if condition="version_info.releasestatus != 'final'"> | ||
201 | 29 | <span id="devstatus">.<beeseek:insert type="variable" name="version_info.releasestatus" /></span> | ||
202 | 30 | </beeseek:if> | ||
203 | 31 | </div> | ||
204 | 32 | </beeseek:object> | ||
205 | 33 | |||
206 | 34 | <beeseek:object id="search-form-empty"> | ||
207 | 35 | <div class="form"> | ||
208 | 36 | <form action="/search" method="post"> | ||
209 | 37 | <div> | ||
210 | 38 | <input id="focus" class="textarea" type="text" name="keyword" value="" /> | ||
211 | 39 | <button class="find" type="submit">Find</button> | ||
212 | 40 | </div> | ||
213 | 41 | </form> | ||
214 | 42 | </div> | ||
215 | 43 | </beeseek:object> | ||
216 | 44 | |||
217 | 45 | <beeseek:object id="search-form-keywords"> | ||
218 | 46 | <div class="form"> | ||
219 | 47 | <form action="/search" method="post"> | ||
220 | 48 | <div> | ||
221 | 49 | <input id="focus" class="textarea" type="text" name="keyword" | ||
222 | 50 | value="<beeseek:insert type="variable" name="keywords.replace(chr(34), '"')" />" /> | ||
223 | 51 | <button class="find" type="submit">Find</button> | ||
224 | 52 | </div> | ||
225 | 53 | </form> | ||
226 | 54 | </div> | ||
227 | 55 | </beeseek:object> | ||
228 | 56 | |||
229 | 57 | <beeseek:object id="footer"> | ||
230 | 58 | <div id="footer"> | ||
231 | 59 | <div id="version"> | ||
232 | 60 | <ul> | ||
233 | 61 | <li>Version <beeseek:insert type="variable" name="str(version_info)" /></li> | ||
234 | 62 | <beeseek:if condition="version_info.revision"> | ||
235 | 63 | <li>revision <beeseek:insert type="variable" name="str(version_info.revision)" /></li> | ||
236 | 64 | </beeseek:if> | ||
237 | 65 | </ul> | ||
238 | 66 | </div> | ||
239 | 67 | |||
240 | 68 | <div id="infos"> | ||
241 | 69 | <ul> | ||
242 | 70 | <li><a href="http://wiki.beeseek.org/BeeSeek">About</a> | </li> | ||
243 | 71 | <li><a href="http://wiki.beeseek.org/FAQ">FAQ</a> | </li> | ||
244 | 72 | <li><a href="http://wiki.beeseek.org/TermsOfUse">Terms of use</a></li> | ||
245 | 73 | </ul> | ||
246 | 74 | </div> | ||
247 | 75 | </div> | ||
248 | 76 | </beeseek:object> | ||
249 | 77 | </beeseek:template> | ||
250 | 0 | 78 | ||
251 | === modified file 'templates/html/configuration.html' | |||
252 | --- templates/html/configuration.html 2009-08-15 15:45:46 +0000 | |||
253 | +++ templates/html/configuration.html 2009-10-24 14:10:25 +0000 | |||
254 | @@ -7,7 +7,7 @@ | |||
255 | 7 | <title>BeeSeek results page</title> | 7 | <title>BeeSeek results page</title> |
256 | 8 | <meta name="description" content="Results from BeeSeek" /> | 8 | <meta name="description" content="Results from BeeSeek" /> |
257 | 9 | <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> | 9 | <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> |
259 | 10 | <link rel="stylesheet" type="text/css" media="screen" href="/beeseek:style_basic.css" /> | 10 | <link rel="stylesheet" type="text/css" media="screen" href="/beeseek:style.css" /> |
260 | 11 | </head> | 11 | </head> |
261 | 12 | 12 | ||
262 | 13 | <body onload="document.getElementById('focus').focus()"> | 13 | <body onload="document.getElementById('focus').focus()"> |
263 | 14 | 14 | ||
264 | === added file 'templates/html/home.html' | |||
265 | --- templates/html/home.html 1970-01-01 00:00:00 +0000 | |||
266 | +++ templates/html/home.html 2009-10-24 14:10:25 +0000 | |||
267 | @@ -0,0 +1,55 @@ | |||
268 | 1 | <beeseek:template content-type="text/html"><?xml version="1.0" encoding="UTF-8"?> | ||
269 | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
270 | 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> | ||
271 | 4 | <head> | ||
272 | 5 | <title>BeeSeek Search</title> | ||
273 | 6 | <link rel="stylesheet" type="text/css" media="screen" href="/beeseek:style.css" /> | ||
274 | 7 | </head> | ||
275 | 8 | |||
276 | 9 | <body onload="document.getElementById('focus').focus()"> | ||
277 | 10 | <beeseek:insert type="object" file="html/common.xml" id="top" /> | ||
278 | 11 | <beeseek:insert type="object" file="html/common.xml" id="logo" /> | ||
279 | 12 | |||
280 | 13 | <div id="portlets"> | ||
281 | 14 | <div class="portlet"> | ||
282 | 15 | <h2>What is?</h2> | ||
283 | 16 | <p>BeeSeek is a project to build a free, open-source search engine | ||
284 | 17 | based on a peer to peer technology. The idea that move BeeSeek is to | ||
285 | 18 | develop a search engine:</p> | ||
286 | 19 | <ul> | ||
287 | 20 | <li>whose source code is freely accessible to everyone;</li> | ||
288 | 21 | <li>that gives warranties about individual's privacy;</li> | ||
289 | 22 | <li>whose revenues are used for ethical projects;</li> | ||
290 | 23 | <li>who share the processing work among the clients (peers) of the | ||
291 | 24 | network;</li> | ||
292 | 25 | <li>that doesn't store personal user data for long times and no | ||
293 | 26 | more than needed.</li> | ||
294 | 27 | </ul> | ||
295 | 28 | <p style="text-align: right"><a href="http://wiki.beeseek.org/BeeSeek">Read more</a></p> | ||
296 | 29 | </div> | ||
297 | 30 | <div class="portlet"> | ||
298 | 31 | <h2>Try it</h2> | ||
299 | 32 | <p>BeeSeek is currently in <a href="http://en.wikipedia.org/wiki/Software_release_life_cycle#Beta"> | ||
300 | 33 | beta version</a> and you are free to test it using it just for | ||
301 | 34 | searching but also sharing a piece of your computer. Note that however | ||
302 | 35 | it may contain some errors or miss some features, so we encourage you | ||
303 | 36 | to <a href="http://launchpad.net/beeseek/+filebug">report bugs</a> | ||
304 | 37 | whenever you find one.</p> | ||
305 | 38 | <p style="text-align: right"><a href="http://wiki.beeseek.org/Testing">Read more</a></p> | ||
306 | 39 | </div> | ||
307 | 40 | <div class="portlet"> | ||
308 | 41 | <h2>Join the community!</h2> | ||
309 | 42 | <p>If you like this project, and if you share the ideas that move | ||
310 | 43 | BeeSeek, why don't you help us in developing our search engine? We are | ||
311 | 44 | always looking for good people willing to help us in writing code, | ||
312 | 45 | testing, updating wiki, blogging, drawing wonderful artworks, | ||
313 | 46 | promoting our projects and writing good documentation.</p> | ||
314 | 47 | <p style="text-align: right"><a href="http://wiki.beeseek.org/GettingInvolved">Read more</a></p> | ||
315 | 48 | </div> | ||
316 | 49 | </div> | ||
317 | 50 | |||
318 | 51 | <beeseek:insert type="object" file="html/common.xml" id="search-form-empty" /> | ||
319 | 52 | <beeseek:insert type="object" file="html/common.xml" id="footer" /> | ||
320 | 53 | </body> | ||
321 | 54 | </html> | ||
322 | 55 | </beeseek:template> | ||
323 | 0 | 56 | ||
324 | === modified file 'templates/html/search.html' | |||
325 | --- templates/html/search.html 2009-10-20 16:30:00 +0000 | |||
326 | +++ templates/html/search.html 2009-10-24 14:10:25 +0000 | |||
327 | @@ -1,119 +1,53 @@ | |||
330 | 1 | <beeseek:template content-type="text/html"> | 1 | <beeseek:template content-type="text/html"><?xml version="1.0" encoding="UTF-8"?> |
329 | 2 | <?xml version="1.0" encoding="UTF-8"?> | ||
331 | 3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
334 | 4 | 3 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> | |
333 | 5 | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
335 | 6 | <head> | 4 | <head> |
340 | 7 | <title>BeeSeek results page</title> | 5 | <title>BeeSeek Search</title> |
341 | 8 | <meta name="description" content="Results from BeeSeek" /> | 6 | <link rel="stylesheet" type="text/css" media="screen" href="/beeseek:style.css" /> |
338 | 9 | <meta http-equiv="Content-type" content="text/html; charset=UTF-8" /> | ||
339 | 10 | <link rel="stylesheet" type="text/css" media="screen" href="/beeseek:style_basic.css" /> | ||
342 | 11 | </head> | 7 | </head> |
343 | 12 | 8 | ||
344 | 13 | <body onload="document.getElementById('focus').focus()"> | 9 | <body onload="document.getElementById('focus').focus()"> |
448 | 14 | <div id="top"> | 10 | <beeseek:insert type="object" file="html/common.xml" id="top" /> |
449 | 15 | <div id="links"> | 11 | <beeseek:insert type="object" file="html/common.xml" id="logo" /> |
450 | 16 | <ul> | 12 | |
451 | 17 | <li><a href="http://blog.beeseek.org">Blog</a> | </li> | 13 | <beeseek:insert type="object" file="html/common.xml" id="search-form-keywords" /> |
452 | 18 | <li><a href="http://planet.beeseek.org">Planet</a> | </li> | 14 | |
453 | 19 | <li><a href="http://forum.beeseek.org">Forum</a> | </li> | 15 | <beeseek:if condition="len(resultset) == 0"> |
454 | 20 | <li><a href="http://wiki.beeseek.org">Wiki</a> | </li> | 16 | <div id="results-block"><ol style="list-style: none"><li> |
455 | 21 | <li><a href="http://gallery.beeseek.org">Gallery</a> | </li> | 17 | <p>Sorry, no results were found.</p> |
456 | 22 | <li><a href="http://beeseek.org/noticeboard">Noticeboard</a> | </li> | 18 | <p>BeeSeek is a young project and some pages are not indexed in our |
457 | 23 | <li><a href="http://wiki.beeseek.org">Wiki</a> | </li> | 19 | database already. You may help the search engine hosting a part of |
458 | 24 | <li><a href="https://launchpad.net/beeseek-project">Launchpad</a></li> | 20 | the database. Learn <a href="http://wiki.beeseek.org/BeeSeek">why |
459 | 25 | </ul> | 21 | BeeSeek is different from other search engines</a> and how to |
460 | 26 | </div> | 22 | fully <a href="http://wiki.beeseek.org/Testing">test it</a>.</p> |
461 | 27 | <div id="users"> | 23 | </li></ol></div> |
462 | 28 | <ul> | 24 | </beeseek:if> |
463 | 29 | <li><a href="http://www.beeseek.org/user/login">Login</a> | </li> | 25 | <beeseek:if condition="len(resultset) > 0"> |
464 | 30 | <li><a href="http://www.beeseek.org/user/register">Register</a></li> | 26 | <div id="results-block"><ol> |
465 | 31 | </ul> | 27 | <beeseek:for variable="result" iterator="resultset"> |
466 | 32 | </div> | 28 | <li> |
467 | 33 | </div> | 29 | <div class="result-single"> |
468 | 34 | 30 | <h3><a href="<beeseek:insert type="variable" name="result.address" />"> | |
469 | 35 | <div id="logo"> | 31 | <beeseek:insert type="variable" name="result.title" /></a> |
470 | 36 | <span id="motto">motto goes here</span> | 32 | </h3> |
471 | 37 | <beeseek:if condition="version_info.releasestatus != 'final'"> | 33 | <p><beeseek:insert type="variable" name="result.snippet" /> <strong>...</strong></p> |
472 | 38 | <span id="development">.<beeseek:insert type="variable" name="version_info.releasestatus" /></span> | 34 | <beeseek:debug> |
473 | 39 | </beeseek:if> | 35 | <div id="debug"> |
474 | 40 | </div> | 36 | <h4><small>Debugging information</small></h4> |
475 | 41 | 37 | <p><small>Score: <beeseek:insert type="variable" name="result.karma" /></small></p> | |
476 | 42 | 38 | <p><small>Origin: <beeseek:insert type="variable" name="result.origin" /></small></p> | |
477 | 43 | <beeseek:object id="search-form" show="True"> | 39 | <p><small>Tags: <beeseek:insert type="variable" name="result.tags" /></small></p> |
478 | 44 | <div class="form"> | 40 | </div> |
479 | 45 | <form action="/search" method="post"> | 41 | </beeseek:debug> |
480 | 46 | <div> | 42 | <span><beeseek:insert type="variable" name="result.address" /></span> |
481 | 47 | <beeseek:if condition="start_page == True"> | 43 | </div> |
482 | 48 | <input id="focus" class="textarea" type="text" name="keyword" value="" /> | 44 | </li> |
483 | 49 | </beeseek:if> | 45 | </beeseek:for> |
484 | 50 | <beeseek:if condition="start_page == False"> | 46 | </ol></div> |
485 | 51 | <input id="focus" class="textarea" type="text" name="keyword" | 47 | <beeseek:insert type="object" file="html/common.xml" id="search-form-keywords" /> |
486 | 52 | value="<beeseek:insert type="variable" name="keywords.replace(chr(34), '"')" />" /> | 48 | </beeseek:if> |
487 | 53 | </beeseek:if> | 49 | |
488 | 54 | <button class="find" type="submit">Find</button> | 50 | <beeseek:insert type="object" file="html/common.xml" id="footer" /> |
386 | 55 | </div> | ||
387 | 56 | </form> | ||
388 | 57 | </div> | ||
389 | 58 | </beeseek:object> | ||
390 | 59 | |||
391 | 60 | <beeseek:if condition="start_page == False"> | ||
392 | 61 | <beeseek:if condition="len(resultset) == 0"> | ||
393 | 62 | <li style="list-style: none;"> | ||
394 | 63 | <p>Sorry, no results were found.</p> | ||
395 | 64 | <p>BeeSeek is a young project and some pages are not indexed in our | ||
396 | 65 | database already. You may help the search engine hosting a part of | ||
397 | 66 | the database. Learn <a href="http://wiki.beeseek.org/BeeSeek">why | ||
398 | 67 | BeeSeek is different from other search engines</a> and how to | ||
399 | 68 | fully <a href="http://wiki.beeseek.org/Testing">test it</a>.</p> | ||
400 | 69 | </li> | ||
401 | 70 | </beeseek:if> | ||
402 | 71 | <beeseek:if condition="len(resultset) != 0"> | ||
403 | 72 | <div id="results-block"><ol> | ||
404 | 73 | <beeseek:for variable="result" iterator="resultset"> | ||
405 | 74 | <li> | ||
406 | 75 | <div class="result-single"> | ||
407 | 76 | <h3><a href="<beeseek:insert type="variable" name="result.address" />"> | ||
408 | 77 | <beeseek:insert type="variable" name="result.title" /></a> | ||
409 | 78 | </h3> | ||
410 | 79 | <p><beeseek:insert type="variable" name="result.snippet" /> <strong>...</strong></p> | ||
411 | 80 | <beeseek:debug> | ||
412 | 81 | <div id="debug"> | ||
413 | 82 | <h4><small>Debugging information</small></h4> | ||
414 | 83 | <p><small>Score: <beeseek:insert type="variable" name="result.karma" /></small></p> | ||
415 | 84 | <p><small>Origin: <beeseek:insert type="variable" name="result.origin" /></small></p> | ||
416 | 85 | <p><small>Tags: <beeseek:insert type="variable" name="result.tags" /></small></p> | ||
417 | 86 | </div> | ||
418 | 87 | </beeseek:debug> | ||
419 | 88 | <span><beeseek:insert type="variable" name="result.address" /></span> | ||
420 | 89 | </div> | ||
421 | 90 | </li> | ||
422 | 91 | </beeseek:for> | ||
423 | 92 | </ol></div> | ||
424 | 93 | <beeseek:insert type="object" file="." id="search-form" /> | ||
425 | 94 | </beeseek:if> | ||
426 | 95 | </beeseek:if> | ||
427 | 96 | |||
428 | 97 | |||
429 | 98 | <div id="footer"> | ||
430 | 99 | <div id="version"> | ||
431 | 100 | <ul> | ||
432 | 101 | <li>Version <beeseek:insert type="variable" name="str(version_info)" /></li> | ||
433 | 102 | <beeseek:if condition="version_info.revision"> | ||
434 | 103 | <li> </li> | ||
435 | 104 | <li>Revision <beeseek:insert type="variable" name="str(version_info.revision)" /></li> | ||
436 | 105 | </beeseek:if> | ||
437 | 106 | </ul> | ||
438 | 107 | </div> | ||
439 | 108 | |||
440 | 109 | <div id="infos"> | ||
441 | 110 | <ul> | ||
442 | 111 | <li><a href="http://wiki.beeseek.org/BeeSeek">About</a> | </li> | ||
443 | 112 | <li><a href="http://wiki.beeseek.org/FAQ">FAQ</a> | </li> | ||
444 | 113 | <li><a href="http://wiki.beeseek.org/TermsOfUse">Terms of use</a></li> | ||
445 | 114 | </ul> | ||
446 | 115 | </div> | ||
447 | 116 | </div> | ||
489 | 117 | </body> | 51 | </body> |
490 | 118 | </html> | 52 | </html> |
491 | 119 | </beeseek:template> | 53 | </beeseek:template> |
This branch modifies the initial search page adding three short portlets: one that explain what is BeeSeek, the second how to try it and the last invites people to join the project.
A way to see the changes is to run BeeSeek with `./beeseek-server start --testing` and then look at http:// localhost: 8080 with the browser. Doing that you should see the new content. The old page layout can be seen on http:// beta.beeseek. org.