comparison pylons_app/templates/search/search.html @ 525:87d80c84df09

added search in specific repository added delete to my page view handled by separate controller for deleting users own repos, added fork draft
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 29 Sep 2010 22:38:54 +0200
parents 7010af6efde5
children
comparison
equal deleted inserted replaced
524:63212fea2471 525:87d80c84df09
1 ## -*- coding: utf-8 -*- 1 ## -*- coding: utf-8 -*-
2 <%inherit file="/base/base.html"/> 2 <%inherit file="/base/base.html"/>
3 <%def name="title()"> 3 <%def name="title()">
4 ${_('Search')}: ${c.cur_query} 4 ${_('Search')}
5 %if c.repo_name:
6 ${_('in repository: ') + c.repo_name}
7 %else:
8 ${_('in all repositories')}
9 %endif
10 :${c.cur_query}
5 </%def> 11 </%def>
6 <%def name="breadcrumbs()"> 12 <%def name="breadcrumbs()">
7 ${c.hg_app_name} 13 ${c.hg_app_name}
8 </%def> 14 </%def>
9 <%def name="page_nav()"> 15 <%def name="page_nav()">
12 <%def name="main()"> 18 <%def name="main()">
13 19
14 <div class="box"> 20 <div class="box">
15 <!-- box / title --> 21 <!-- box / title -->
16 <div class="title"> 22 <div class="title">
17 <h5>${_('Search')}</h5> 23 <h5>${_('Search')}
24 %if c.repo_name:
25 ${_('in repository: ') + c.repo_name}
26 %else:
27 ${_('in all repositories')}
28 %endif
29 </h5>
18 </div> 30 </div>
19 <!-- end box / title --> 31 <!-- end box / title -->
20 ${h.form('search',method='get')} 32 %if c.repo_name:
33 ${h.form(h.url('search_repo',search_repo=c.repo_name),method='get')}
34 %else:
35 ${h.form(h.url('search'),method='get')}
36 %endif
21 <div class="form"> 37 <div class="form">
22 <div class="fields"> 38 <div class="fields">
23 39
24 <div class="field "> 40 <div class="field ">
25 <div class="label"> 41 <div class="label">
26 <label for="q">${_('Search:')}</label> 42 <label for="q">${_('Search')}:</label>
27 </div> 43 </div>
28 <div class="input"> 44 <div class="input">
29 ${h.text('q',c.cur_query,class_="small")} 45 ${h.text('q',c.cur_query,class_="small")}
30 <div class="button highlight"> 46 <div class="button highlight">
31 <input type="submit" value="${_('Search')}" class="ui-button ui-widget ui-state-default ui-corner-all"/> 47 <input type="submit" value="${_('Search')}" class="ui-button ui-widget ui-state-default ui-corner-all"/>