Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(327)

Delta Between Two Patch Sets: MoinMoin/templates/search.html

Issue 6441063: Add rootitem search capability. Search only in subitems of rootitem (including transcluded items). (Closed)
Left Patch Set: Created 12 years, 9 months ago
Right Patch Set: Add 'only this blog' search options Created 12 years, 9 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 {% extends theme("layout.html") %} 1 {% extends theme("layout.html") %}
2 {% import "forms.html" as forms %} 2 {% import "forms.html" as forms %}
3 {% import "utils.html" as utils %} 3 {% import "utils.html" as utils %}
4 4
5 {% set search_form = None %} {# layout will not show search form in header #} 5 {% set search_form = None %} {# layout will not show search form in header #}
6
7 {% block pagepath %}
8 {{ _("Search") }}
9 {{ super() }}
10 {% endblock %}
6 11
7 {% block content %} 12 {% block content %}
8 {% if results is defined %} 13 {% if results is defined %}
9 <p class="searchstats"> 14 <p class="searchstats">
10 {% if results %} 15 {% if results %}
11 {{ _("%(result_len)d results found (%(runtime).3f secs).", 16 {{ _("%(result_len)d results found (%(runtime).3f secs).",
12 result_len=results|length, runtime=results.runtime 17 result_len=results|length, runtime=results.runtime
13 ) 18 )
14 }} 19 }}
15 {% else %} 20 {% else %}
16 {{ _("No results found (%(runtime).3f secs).", runtime=results.runtime) }} 21 {{ _("No results found (%(runtime).3f secs).", runtime=results.runtime) }}
17 {% endif %} 22 {% endif %}
18 </p> 23 </p>
19 {% endif %} 24 {% endif %}
20 {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get' , action=url_for('frontend.search')) }} 25 {{ gen.form.open(medium_search_form, id='moin-long-searchform', method='get' , action=url_for('frontend.search', item_name=item_name)) }}
21 <div> 26 <div>
22 {{ forms.render(medium_search_form['q'], placeholder=_("Search Queue ")) }} 27 {{ forms.render(medium_search_form['q']) }}
ThomasJWaldmann 2012/07/29 12:51:10 Queue? Query?
spy 2012/08/02 19:06:18 Of course Query, fixed.
23 {{ forms.render(medium_search_form['submit']) }} 28 {{ forms.render(medium_search_form['submit']) }}
24 {{ forms.render(medium_search_form['history']) }} 29 {{ forms.render(medium_search_form['history']) }}
25 {{ forms.render(medium_search_form['rootitem']) }}
26 {{ forms.render_errors(medium_search_form) }} 30 {{ forms.render_errors(medium_search_form) }}
27 </div> 31 </div>
28 {{ gen.form.close() }} 32 {{ gen.form.close() }}
29 {% if results is defined %} 33 {% if results is defined %}
30 <div> 34 <div>
31 <p>{{ _("name term suggestions: %(termlist)s", termlist=name_suggest ions) }}</p> 35 <p>{{ _("name term suggestions: %(termlist)s", termlist=name_suggest ions) }}</p>
32 <p>{{ _("content term suggestions: %(termlist)s", termlist=content_s uggestions) }}</p> 36 <p>{{ _("content term suggestions: %(termlist)s", termlist=content_s uggestions) }}</p>
33 </div> 37 </div>
34 {% if results %} 38 {% if results %}
35 <div class="searchresults"> 39 <div class="searchresults">
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 <a class="moin-interwiki" href="{{ url_for_item( item_name=result['name'], wiki_name=result['wikiname'], rev=result['revid']) }}" ><b>{{ "%s:%s" % (result['wikiname'], result['name']) }}</b></a> 72 <a class="moin-interwiki" href="{{ url_for_item( item_name=result['name'], wiki_name=result['wikiname'], rev=result['revid']) }}" ><b>{{ "%s:%s" % (result['wikiname'], result['name']) }}</b></a>
69 </td> 73 </td>
70 </tr> 74 </tr>
71 {% endif %} 75 {% endif %}
72 {% endfor %} 76 {% endfor %}
73 </table> 77 </table>
74 </div> 78 </div>
75 {% endif %} 79 {% endif %}
76 {% endif %} 80 {% endif %}
77 {% endblock %} 81 {% endblock %}
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b