annotate rhodecode/templates/search/search_path.html @ 3197:b4f401524060 beta

html: don't use tabs
author Mads Kiilerich <madski@unity3d.com>
date Tue, 22 Jan 2013 23:44:38 +0100
parents f91d3f9b7230
children
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):
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
4 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'):
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
5 <div class="search_path">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
6 <div class="link">
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:
3197
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
13 <div class="error">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
14 <div class="link">
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
15 ${_('Permission denied')}
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
16 </div>
b4f401524060 html: don't use tabs
Mads Kiilerich <madski@unity3d.com>
parents: 1888
diff changeset
17 </div>
1599
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
18 %endif
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1599
diff changeset
19
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1599
diff changeset
20 %endif
1599
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
21 %endfor
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
22 %if c.cur_query and c.formated_results:
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
23 <div class="pagination-wh pagination-left">
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
24 ${c.formated_results.pager('$link_previous ~2~ $link_next')}
1888
f91d3f9b7230 White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents: 1599
diff changeset
25 </div>
1599
387971bd1a79 image less css
Marcin Kuzminski <marcin@python-works.com>
parents: 556
diff changeset
26 %endif