Files @ b19b1723ff10
Branch filter:

Location: kallithea/rhodecode/templates/search/search_path.html - annotation

Mads Kiilerich
pullrequest: pullrequest from changelog view

It seems like it didn't work ... perhaps because I broke it. But now we clean
it up and make it work:

Use rev_end as the revision to merge. We don't know where to merge ... but
start_rev cannot be used for that.

This might to some extent have been working before ... but we prefer to clean
it up and start over again when the normal merge workflow is fully working.
##path search

%for cnt,sr in enumerate(c.formated_results):
    %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'):
        <div class="search_path">
            <div class="link">
                ${h.link_to(h.literal('%s &raquo; %s' % (sr['repository'],sr['f_path'])),
                    h.url('files_home',repo_name=sr['repository'],revision='tip',f_path=sr['f_path']))}
            </div>
        </div>
    %else:
        %if cnt == 0:
            <div class="error">
                <div class="link">
                    ${_('Permission denied')}
                </div>
            </div>
        %endif

    %endif
%endfor
%if c.cur_query and c.formated_results:
<div class="pagination-wh pagination-left">
    ${c.formated_results.pager('$link_previous ~2~ $link_next')}
</div>
%endif