Show More
@@ -713,7 +713,7 b' def summary(web):' | |||||
713 | """ |
|
713 | """ | |
714 | i = reversed(web.repo.tagslist()) |
|
714 | i = reversed(web.repo.tagslist()) | |
715 |
|
715 | |||
716 |
def tagentries( |
|
716 | def tagentries(context): | |
717 | parity = paritygen(web.stripecount) |
|
717 | parity = paritygen(web.stripecount) | |
718 | count = 0 |
|
718 | count = 0 | |
719 | for k, n in i: |
|
719 | for k, n in i: | |
@@ -724,12 +724,12 b' def summary(web):' | |||||
724 | if count > 10: # limit to 10 tags |
|
724 | if count > 10: # limit to 10 tags | |
725 | break |
|
725 | break | |
726 |
|
726 | |||
727 | yield web.tmpl.generate('tagentry', { |
|
727 | yield { | |
728 | 'parity': next(parity), |
|
728 | 'parity': next(parity), | |
729 | 'tag': k, |
|
729 | 'tag': k, | |
730 | 'node': hex(n), |
|
730 | 'node': hex(n), | |
731 | 'date': web.repo[n].date(), |
|
731 | 'date': web.repo[n].date(), | |
732 |
} |
|
732 | } | |
733 |
|
733 | |||
734 | def bookmarks(**map): |
|
734 | def bookmarks(**map): | |
735 | parity = paritygen(web.stripecount) |
|
735 | parity = paritygen(web.stripecount) | |
@@ -742,7 +742,7 b' def summary(web):' | |||||
742 | 'date': web.repo[n].date(), |
|
742 | 'date': web.repo[n].date(), | |
743 | 'node': hex(n)} |
|
743 | 'node': hex(n)} | |
744 |
|
744 | |||
745 |
def changelist( |
|
745 | def changelist(context): | |
746 | parity = paritygen(web.stripecount, offset=start - end) |
|
746 | parity = paritygen(web.stripecount, offset=start - end) | |
747 | l = [] # build a list in forward order for efficiency |
|
747 | l = [] # build a list in forward order for efficiency | |
748 | revs = [] |
|
748 | revs = [] | |
@@ -752,7 +752,7 b' def summary(web):' | |||||
752 | ctx = web.repo[i] |
|
752 | ctx = web.repo[i] | |
753 | lm = webutil.commonentry(web.repo, ctx) |
|
753 | lm = webutil.commonentry(web.repo, ctx) | |
754 | lm['parity'] = next(parity) |
|
754 | lm['parity'] = next(parity) | |
755 | l.append(web.tmpl.generate('shortlogentry', lm)) |
|
755 | l.append(lm) | |
756 |
|
756 | |||
757 | for entry in reversed(l): |
|
757 | for entry in reversed(l): | |
758 | yield entry |
|
758 | yield entry | |
@@ -771,10 +771,11 b' def summary(web):' | |||||
771 | desc=desc, |
|
771 | desc=desc, | |
772 | owner=get_contact(web.config) or 'unknown', |
|
772 | owner=get_contact(web.config) or 'unknown', | |
773 | lastchange=tip.date(), |
|
773 | lastchange=tip.date(), | |
774 | tags=tagentries, |
|
774 | tags=templateutil.mappinggenerator(tagentries, name='tagentry'), | |
775 | bookmarks=bookmarks, |
|
775 | bookmarks=bookmarks, | |
776 | branches=webutil.branchentries(web.repo, web.stripecount, 10), |
|
776 | branches=webutil.branchentries(web.repo, web.stripecount, 10), | |
777 | shortlog=changelist, |
|
777 | shortlog=templateutil.mappinggenerator(changelist, | |
|
778 | name='shortlogentry'), | |||
778 | node=tip.hex(), |
|
779 | node=tip.hex(), | |
779 | symrev='tip', |
|
780 | symrev='tip', | |
780 | archives=web.archivelist('tip'), |
|
781 | archives=web.archivelist('tip'), |
@@ -36,13 +36,13 b' summary |' | |||||
36 |
|
36 | |||
37 | <div><a class="title" href="{url|urlescape}shortlog{sessionvars%urlparameter}">changes</a></div> |
|
37 | <div><a class="title" href="{url|urlescape}shortlog{sessionvars%urlparameter}">changes</a></div> | |
38 | <table cellspacing="0"> |
|
38 | <table cellspacing="0"> | |
39 | {shortlog} |
|
39 | {shortlog%shortlogentry} | |
40 | <tr class="light"><td colspan="4"><a class="list" href="{url|urlescape}shortlog{sessionvars%urlparameter}">...</a></td></tr> |
|
40 | <tr class="light"><td colspan="4"><a class="list" href="{url|urlescape}shortlog{sessionvars%urlparameter}">...</a></td></tr> | |
41 | </table> |
|
41 | </table> | |
42 |
|
42 | |||
43 | <div><a class="title" href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></div> |
|
43 | <div><a class="title" href="{url|urlescape}tags{sessionvars%urlparameter}">tags</a></div> | |
44 | <table cellspacing="0"> |
|
44 | <table cellspacing="0"> | |
45 | {tags} |
|
45 | {tags%tagentry} | |
46 | <tr class="light"><td colspan="3"><a class="list" href="{url|urlescape}tags{sessionvars%urlparameter}">...</a></td></tr> |
|
46 | <tr class="light"><td colspan="3"><a class="list" href="{url|urlescape}tags{sessionvars%urlparameter}">...</a></td></tr> | |
47 | </table> |
|
47 | </table> | |
48 |
|
48 |
@@ -39,7 +39,7 b'' | |||||
39 |
|
39 | |||
40 | <h2><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">Changes</a></h2> |
|
40 | <h2><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">Changes</a></h2> | |
41 | <table> |
|
41 | <table> | |
42 | {shortlog} |
|
42 | {shortlog%shortlogentry} | |
43 | <tr class="light"> |
|
43 | <tr class="light"> | |
44 | <td colspan="4"><a class="list" href="{url|urlescape}shortlog{sessionvars%urlparameter}">...</a></td> |
|
44 | <td colspan="4"><a class="list" href="{url|urlescape}shortlog{sessionvars%urlparameter}">...</a></td> | |
45 | </tr> |
|
45 | </tr> | |
@@ -47,7 +47,7 b'' | |||||
47 |
|
47 | |||
48 | <h2><a href="{url|urlescape}tags{sessionvars%urlparameter}">Tags</a></h2> |
|
48 | <h2><a href="{url|urlescape}tags{sessionvars%urlparameter}">Tags</a></h2> | |
49 | <table> |
|
49 | <table> | |
50 | {tags} |
|
50 | {tags%tagentry} | |
51 | <tr class="light"> |
|
51 | <tr class="light"> | |
52 | <td colspan="3"><a class="list" href="{url|urlescape}tags{sessionvars%urlparameter}">...</a></td> |
|
52 | <td colspan="3"><a class="list" href="{url|urlescape}tags{sessionvars%urlparameter}">...</a></td> | |
53 | </tr> |
|
53 | </tr> |
General Comments 0
You need to be logged in to leave comments.
Login now