Mercurial > kallithea
annotate kallithea/templates/search/search_path.html @ 6671:5e3adb20839d
style: replace code-body etc with Bootstrap-ish panel and panel-heading, using panel-default for headers and tweak them grey
Based on work by Dominik Ruf.
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 11 Jun 2017 15:02:09 +0200 |
parents | a17c8e5f6712 |
children | b56aa0ea3531 |
rev | line source |
---|---|
556
65b2f150beb7
Added searching for file names within the repository in rhodecode
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 ##path search |
1599 | 2 |
3 %for cnt,sr in enumerate(c.formated_results): | |
6511
a17c8e5f6712
auth: simplify repository permission checks
Søren Løvborg <sorenl@unity3d.com>
parents:
6422
diff
changeset
|
4 %if h.HasRepoPermissionLevel('read')(sr['repository'],'search results check'): |
6422
1f02a239c23c
style: use panel, panel-heading, panel-title, panel-body and settings
Mads Kiilerich <mads@kiilerich.com>
parents:
6293
diff
changeset
|
5 <div class="panel panel-default"> |
1f02a239c23c
style: use panel, panel-heading, panel-title, panel-body and settings
Mads Kiilerich <mads@kiilerich.com>
parents:
6293
diff
changeset
|
6 <div class="panel-heading"> |
3197 | 7 ${h.link_to(h.literal('%s » %s' % (sr['repository'],sr['f_path'])), |
8 h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))} | |
9 </div> | |
10 </div> | |
1599 | 11 %else: |
12 %if cnt == 0: | |
6671
5e3adb20839d
style: replace code-body etc with Bootstrap-ish panel and panel-heading, using panel-default for headers and tweak them grey
Mads Kiilerich <mads@kiilerich.com>
parents:
6511
diff
changeset
|
13 <div class="alert alert-warning" role="alert"> |
5e3adb20839d
style: replace code-body etc with Bootstrap-ish panel and panel-heading, using panel-default for headers and tweak them grey
Mads Kiilerich <mads@kiilerich.com>
parents:
6511
diff
changeset
|
14 ${_('Permission denied')} |
3197 | 15 </div> |
1599 | 16 %endif |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1599
diff
changeset
|
17 %endif |
1599 | 18 %endfor |
19 %if c.cur_query and c.formated_results: | |
6293
103f07acad83
templates: use bootstrap pagination
domruf <dominikruf@gmail.com>
parents:
4187
diff
changeset
|
20 <ul class="pagination"> |
103f07acad83
templates: use bootstrap pagination
domruf <dominikruf@gmail.com>
parents:
4187
diff
changeset
|
21 ${c.formated_results.pager()} |
103f07acad83
templates: use bootstrap pagination
domruf <dominikruf@gmail.com>
parents:
4187
diff
changeset
|
22 </ul> |
1599 | 23 %endif |