Mercurial > kallithea
annotate rhodecode/templates/search/search_commit.html @ 2944:0add173667b6 beta
Journal was missing a dt.repo_name change
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 20 Oct 2012 13:49:16 +0200 |
parents | 9c12bff04ec7 |
children | ffd45b185016 |
rev | line source |
---|---|
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
1 ##commit highligthing |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
2 |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
3 %for cnt,sr in enumerate(c.formated_results): |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
4 %if h.HasRepoPermissionAny('repository.write','repository.read','repository.admin')(sr['repository'],'search results check'): |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
5 <div class="table"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
6 <div id="body${cnt}" class="codeblock"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
7 <div class="code-header"> |
2642
88b0e82bcba4
rename changeset index key to match raw_id rather than path for greater consistency
Indra Talip <indra.talip@gmail.com>
parents:
2640
diff
changeset
|
8 <div class="search-path">${h.link_to(h.literal('%s » %s' % (sr['repository'],sr['raw_id'])), |
88b0e82bcba4
rename changeset index key to match raw_id rather than path for greater consistency
Indra Talip <indra.talip@gmail.com>
parents:
2640
diff
changeset
|
9 h.url('changeset_home',repo_name=sr['repository'],revision=sr['raw_id']))} |
2739
9c12bff04ec7
added dates to search commits results page
Marcin Kuzminski <marcin@python-works.com>
parents:
2732
diff
changeset
|
10 ${h.fmt_date(h.time_to_datetime(sr['date']))} |
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
11 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
12 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
13 <div class="left"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
14 <div class="author"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
15 <div class="gravatar"> |
2732
c25cc1c7c65f
again #531 forgot to replace other occurences of h.email call
Marcin Kuzminski <marcin@python-works.com>
parents:
2642
diff
changeset
|
16 <img alt="gravatar" src="${h.gravatar_url(h.email_or_none(sr['author']),20)}"/> |
2640
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
17 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
18 <span>${h.person(sr['author'])}</span><br/> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
19 <span><a href="mailto:${h.email_or_none(sr['author'])}">${h.email_or_none(sr['author'])}</a></span><br/> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
20 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
21 %if sr['message_hl']: |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
22 <div class="search-code-body"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
23 <pre>${h.literal(sr['message_hl'])}</pre> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
24 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
25 %else: |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
26 <div class="message">${h.urlify_commit(sr['message'], sr['repository'])}</div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
27 %endif |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
28 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
29 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
30 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
31 %else: |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
32 %if cnt == 0: |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
33 <div class="table"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
34 <div id="body${cnt}" class="codeblock"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
35 <div class="error">${_('Permission denied')}</div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
36 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
37 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
38 %endif |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
39 %endif |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
40 %endfor |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
41 %if c.cur_query and c.formated_results: |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
42 <div class="pagination-wh pagination-left"> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
43 ${c.formated_results.pager('$link_previous ~2~ $link_next')} |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
44 </div> |
5f21a9dcb09d
create an index for commit messages and the ability to search them and see results
Indra Talip <indra.talip@gmail.com>
parents:
556
diff
changeset
|
45 %endif |