Show More
@@ -654,10 +654,10 b' def static(web, req, tmpl):' | |||||
654 | return [staticfile(static, fname, req)] |
|
654 | return [staticfile(static, fname, req)] | |
655 |
|
655 | |||
656 | def graph(web, req, tmpl): |
|
656 | def graph(web, req, tmpl): | |
|
657 | ||||
657 | rev = webutil.changectx(web.repo, req).rev() |
|
658 | rev = webutil.changectx(web.repo, req).rev() | |
658 | bg_height = 39 |
|
659 | bg_height = 39 | |
659 |
|
660 | revcount = web.maxshortchanges | ||
660 | revcount = 25 |
|
|||
661 | if 'revcount' in req.form: |
|
661 | if 'revcount' in req.form: | |
662 | revcount = int(req.form.get('revcount', [revcount])[0]) |
|
662 | revcount = int(req.form.get('revcount', [revcount])[0]) | |
663 | tmpl.defaults['sessionvars']['revcount'] = revcount |
|
663 | tmpl.defaults['sessionvars']['revcount'] = revcount |
@@ -660,8 +660,8 b' graph |' | |||||
660 | <a href="/branches?style=gitweb">branches</a> | |
|
660 | <a href="/branches?style=gitweb">branches</a> | | |
661 | <a href="/file/1d22e65f027e?style=gitweb">files</a> |
|
661 | <a href="/file/1d22e65f027e?style=gitweb">files</a> | |
662 | <br/> |
|
662 | <br/> | |
663 |
<a href="/graph/2?style=gitweb&revcount= |
|
663 | <a href="/graph/2?style=gitweb&revcount=30">less</a> | |
664 |
<a href="/graph/2?style=gitweb&revcount= |
|
664 | <a href="/graph/2?style=gitweb&revcount=120">more</a> | |
665 | | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/2ef0ac749a14?style=gitweb">-2</a> <a href="/graph/tip?style=gitweb">tip</a> <br/> |
|
665 | | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/2ef0ac749a14?style=gitweb">-2</a> <a href="/graph/tip?style=gitweb">tip</a> <br/> | |
666 | </div> |
|
666 | </div> | |
667 |
|
667 | |||
@@ -746,8 +746,8 b' graph.render(data);' | |||||
746 | </script> |
|
746 | </script> | |
747 |
|
747 | |||
748 | <div class="page_nav"> |
|
748 | <div class="page_nav"> | |
749 |
<a href="/graph/2?style=gitweb&revcount= |
|
749 | <a href="/graph/2?style=gitweb&revcount=30">less</a> | |
750 |
<a href="/graph/2?style=gitweb&revcount= |
|
750 | <a href="/graph/2?style=gitweb&revcount=120">more</a> | |
751 | | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/2ef0ac749a14?style=gitweb">-2</a> <a href="/graph/tip?style=gitweb">tip</a> |
|
751 | | <a href="/graph/2ef0ac749a14?style=gitweb">(0)</a> <a href="/graph/2ef0ac749a14?style=gitweb">-2</a> <a href="/graph/tip?style=gitweb">tip</a> | |
752 | </div> |
|
752 | </div> | |
753 |
|
753 |
@@ -184,8 +184,8 b' files, or words in the commit message</d' | |||||
184 | </form> |
|
184 | </form> | |
185 |
|
185 | |||
186 | <div class="navigate"> |
|
186 | <div class="navigate"> | |
187 |
<a href="/graph/-1?revcount= |
|
187 | <a href="/graph/-1?revcount=30">less</a> | |
188 |
<a href="/graph/-1?revcount= |
|
188 | <a href="/graph/-1?revcount=120">more</a> | |
189 | | rev -1: <a href="/graph/000000000000">(0)</a> <a href="/graph/tip">tip</a> |
|
189 | | rev -1: <a href="/graph/000000000000">(0)</a> <a href="/graph/tip">tip</a> | |
190 | </div> |
|
190 | </div> | |
191 |
|
191 | |||
@@ -267,8 +267,8 b' graph.render(data);' | |||||
267 | </script> |
|
267 | </script> | |
268 |
|
268 | |||
269 | <div class="navigate"> |
|
269 | <div class="navigate"> | |
270 |
<a href="/graph/-1?revcount= |
|
270 | <a href="/graph/-1?revcount=30">less</a> | |
271 |
<a href="/graph/-1?revcount= |
|
271 | <a href="/graph/-1?revcount=120">more</a> | |
272 | | rev -1: <a href="/graph/000000000000">(0)</a> <a href="/graph/tip">tip</a> |
|
272 | | rev -1: <a href="/graph/000000000000">(0)</a> <a href="/graph/tip">tip</a> | |
273 | </div> |
|
273 | </div> | |
274 |
|
274 |
General Comments 0
You need to be logged in to leave comments.
Login now