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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
2
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
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
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
7 ${h.link_to(h.literal('%s &raquo; %s' % (sr['repository'],sr['f_path'])),
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
8 h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
9 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
10 </div>
1599
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
11 %else:
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
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
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
15 </div>
1599
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
16 %endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1599
diff changeset
17 %endif
1599
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
18 %endfor
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
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
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
23 %endif