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