Show More
@@ -53,7 +53,12 b' class SummaryController(BaseController):' | |||
|
53 | 53 | def index(self): |
|
54 | 54 | hg_model = HgModel() |
|
55 | 55 | c.repo_info = hg_model.get_repo(c.repo_name) |
|
56 | c.repo_changesets = Page(list(c.repo_info[:10]), page=1, items_per_page=20) | |
|
56 | def url_generator(**kw): | |
|
57 | return url('shortlog_home', repo_name=c.repo_name, **kw) | |
|
58 | ||
|
59 | c.repo_changesets = Page(c.repo_info, page=1, items_per_page=10, | |
|
60 | url=url_generator) | |
|
61 | ||
|
57 | 62 | e = request.environ |
|
58 | 63 | |
|
59 | 64 | uri = u'%(protocol)s://%(user)s@%(host)s%(prefix)s/%(repo_name)s' % { |
@@ -116,14 +116,14 b'' | |||
|
116 | 116 | <span>${_('Summary')}</span> |
|
117 | 117 | </a> |
|
118 | 118 | </li> |
|
119 | <li ${is_current('shortlog')}> | |
|
120 | <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> | |
|
121 | <span class="icon"> | |
|
122 | <img src="/images/icons/application_view_list.png" alt="${_('Shortlog')}" /> | |
|
123 | </span> | |
|
124 | <span>${_('Shortlog')}</span> | |
|
125 | </a> | |
|
126 | </li> | |
|
119 | ##<li ${is_current('shortlog')}> | |
|
120 | ## <a title="${_('Shortlog')}" href="${h.url('shortlog_home',repo_name=c.repo_name)}"> | |
|
121 | ## <span class="icon"> | |
|
122 | ## <img src="/images/icons/application_view_list.png" alt="${_('Shortlog')}" /> | |
|
123 | ## </span> | |
|
124 | ## <span>${_('Shortlog')}</span> | |
|
125 | ## </a> | |
|
126 | ##</li> | |
|
127 | 127 | <li ${is_current('changelog')}> |
|
128 | 128 | <a title="${_('Changelog')}" href="${h.url('changelog_home',repo_name=c.repo_name)}"> |
|
129 | 129 | <span class="icon"> |
@@ -142,7 +142,7 b'' | |||
|
142 | 142 | </a> |
|
143 | 143 | <ul> |
|
144 | 144 | <li> |
|
145 | ${h.link_to(_('branches'),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} | |
|
145 | ${h.link_to('%s (%s)' % (_('branches'),len(c.repository_branches.values()),),h.url('branches_home',repo_name=c.repo_name),class_='branches childs')} | |
|
146 | 146 | <ul> |
|
147 | 147 | %if c.repository_branches.values(): |
|
148 | 148 | %for cnt,branch in enumerate(c.repository_branches.items()): |
@@ -154,7 +154,7 b'' | |||
|
154 | 154 | </ul> |
|
155 | 155 | </li> |
|
156 | 156 | <li> |
|
157 | ${h.link_to(_('tags'),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} | |
|
157 | ${h.link_to('%s (%s)' % (_('tags'),len(c.repository_tags.values()),),h.url('tags_home',repo_name=c.repo_name),class_='tags childs')} | |
|
158 | 158 | <ul> |
|
159 | 159 | %if c.repository_tags.values(): |
|
160 | 160 | %for cnt,tag in enumerate(c.repository_tags.items()): |
@@ -42,13 +42,11 b' E.onDOMReady(function(e){' | |||
|
42 | 42 | <label>${_('Name')}:</label> |
|
43 | 43 | </div> |
|
44 | 44 | <div class="input-short"> |
|
45 | ||
|
46 | 45 |
|
|
47 | 46 |
|
|
48 | %elif c.repo_info.dbrepo.repo_type =='git': | |
|
47 | %endif | |
|
48 | %if c.repo_info.dbrepo.repo_type =='git': | |
|
49 | 49 |
|
|
50 | %else: | |
|
51 | ||
|
52 | 50 |
|
|
53 | 51 | |
|
54 | 52 | %if c.repo_info.dbrepo.private: |
@@ -561,10 +559,12 b' E.onDOMReady(function(e){' | |||
|
561 | 559 | <div class="breadcrumbs">${h.link_to(_('Last ten changes'),h.url('changelog_home',repo_name=c.repo_name))}</div> |
|
562 | 560 | </div> |
|
563 | 561 | <div class="table"> |
|
562 | <div id="shortlog_data"> | |
|
564 | 563 | <%include file='../shortlog/shortlog_data.html'/> |
|
565 | %if c.repo_changesets: | |
|
566 | ${h.link_to(_('show more'),h.url('changelog_home',repo_name=c.repo_name))} | |
|
567 | %endif | |
|
564 | </div> | |
|
565 | ##%if c.repo_changesets: | |
|
566 | ## ${h.link_to(_('show more'),h.url('changelog_home',repo_name=c.repo_name))} | |
|
567 | ##%endif | |
|
568 | 568 | </div> |
|
569 | 569 | </div> |
|
570 | 570 | <div class="box"> |
General Comments 0
You need to be logged in to leave comments.
Login now