Mercurial > kallithea
annotate rhodecode/templates/tags/tags_data.html @ 3625:260a7a01b054 beta
follow Python conventions for boolean values
True and False might be singletons and the "default" values for "boolean"
expressions, but "all" values in Python has a boolean value and should be
evaluated as such. Checking with 'is True' and 'is False' is thus confusing,
error prone and unnessarily complex.
If we anywhere rely and nullable boolean fields from the database layer and
don't want the null value to be treated as False then we should check
explicitly for null with 'is None'.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Mar 2013 01:10:45 +0100 |
parents | b4f401524060 |
children | ffd45b185016 |
rev | line source |
---|---|
1782
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
1 %if c.repo_tags: |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1782
diff
changeset
|
2 <div id="table_wrap" class="yui-skin-sam"> |
1782
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
3 <table id="tags_data"> |
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
4 <thead> |
3197 | 5 <tr> |
1782
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
6 <th class="left">${_('Name')}</th> |
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
7 <th class="left">${_('Date')}</th> |
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
8 <th class="left">${_('Author')}</th> |
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
9 <th class="left">${_('Revision')}</th> |
3010
bf96fd1920c1
Enabled compare engine for tags
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
10 <th class="left">${_('Compare')}</th> |
3197 | 11 </tr> |
1782
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
12 </thead> |
3197 | 13 %for cnt,tag in enumerate(c.repo_tags.items()): |
14 <tr class="parity${cnt%2}"> | |
636
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
15 <td> |
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
16 <span class="logtags"> |
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
17 <span class="tagtag">${h.link_to(tag[0], |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
18 h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id))} |
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
19 </span> |
636
ffd07396d315
Fixes for raw_id, needed for git
Marcin Kuzminski <marcin@python-works.com>
parents:
633
diff
changeset
|
20 </span> |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
21 </td> |
2427
f467c75544af
Added h.tooltip to all places that tooltip_title is used.
Marcin Kuzminski <marcin@python-works.com>
parents:
2416
diff
changeset
|
22 <td><span class="tooltip" title="${h.tooltip(h.age(tag[1].date))}">${h.fmt_date(tag[1].date)}</span></td> |
3197 | 23 <td title="${tag[1].author}">${h.person(tag[1].author)}</td> |
24 <td> | |
1770
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
25 <div> |
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
26 <pre><a href="${h.url('files_home',repo_name=c.repo_name,revision=tag[1].raw_id)}">r${tag[1].revision}:${h.short_id(tag[1].raw_id)}</a></pre> |
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
27 </div> |
184557472f5c
Implements #304
Marcin Kuzminski <marcin@python-works.com>
parents:
1756
diff
changeset
|
28 </td> |
3010
bf96fd1920c1
Enabled compare engine for tags
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
29 <td> |
bf96fd1920c1
Enabled compare engine for tags
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
30 <input class="branch-compare" type="radio" name="compare_org" value="${tag[0]}"/> |
bf96fd1920c1
Enabled compare engine for tags
Marcin Kuzminski <marcin@python-works.com>
parents:
2427
diff
changeset
|
31 <input class="branch-compare" type="radio" name="compare_other" value="${tag[0]}"/> |
3029
685ebc84c2e9
White space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3010
diff
changeset
|
32 </td> |
3197 | 33 </tr> |
34 %endfor | |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
35 </table> |
1782
eaf09acf6872
added sorting to bookmarks tags and branches
Marcin Kuzminski <marcin@python-works.com>
parents:
1770
diff
changeset
|
36 </div> |
282
237470e64bb8
switched filters into webhelpers for easy of usage.
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 %else: |
3197 | 38 ${_('There are no tags yet')} |
1888
f91d3f9b7230
White-space cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
1782
diff
changeset
|
39 %endif |