Mercurial > kallithea
comparison rhodecode/templates/changelog/changelog.html @ 2885:28d742d71d4e beta
made compare button nicer on changelog view
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 29 Sep 2012 23:19:25 +0200 |
parents | 1e5996308363 |
children | 1f7b8c73c94a fcbcef60be02 |
comparison
equal
deleted
inserted
replaced
2884:a16f9a76c26f | 2885:28d742d71d4e |
---|---|
31 <div id="graph_nodes"> | 31 <div id="graph_nodes"> |
32 <canvas id="graph_canvas"></canvas> | 32 <canvas id="graph_canvas"></canvas> |
33 </div> | 33 </div> |
34 <div id="graph_content"> | 34 <div id="graph_content"> |
35 <div class="info_box" style="clear: both;padding: 10px 6px;vertical-align: right;text-align: right;"> | 35 <div class="info_box" style="clear: both;padding: 10px 6px;vertical-align: right;text-align: right;"> |
36 <a href="#" class="ui-btn small" id="rev_range_container" style="display:none"></a> | |
36 %if c.rhodecode_db_repo.fork: | 37 %if c.rhodecode_db_repo.fork: |
37 <a title="${_('compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref='default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name)}" class="ui-btn small">${_('Compare fork')}</a> | 38 <a title="${_('compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.repo_name,org_ref_type='branch',org_ref='default',other_ref_type='branch',other_ref='default',repo=c.rhodecode_db_repo.fork.repo_name)}" class="ui-btn small">${_('Compare fork')}</a> |
38 %endif | 39 %endif |
39 %if h.is_hg(c.rhodecode_repo): | 40 %if h.is_hg(c.rhodecode_repo): |
40 <a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a> | 41 <a href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a> |
46 ${h.submit('set',_('Show'),class_="ui-btn")} | 47 ${h.submit('set',_('Show'),class_="ui-btn")} |
47 ${h.text('size',size=1,value=c.size)} | 48 ${h.text('size',size=1,value=c.size)} |
48 ${_('revisions')} | 49 ${_('revisions')} |
49 </div> | 50 </div> |
50 ${h.end_form()} | 51 ${h.end_form()} |
51 <div id="rev_range_container" style="display:none"></div> | |
52 <div style="float:right">${h.select('branch_filter',c.branch_name,c.branch_filters)}</div> | 52 <div style="float:right">${h.select('branch_filter',c.branch_name,c.branch_filters)}</div> |
53 </div> | 53 </div> |
54 | 54 |
55 %for cnt,cs in enumerate(c.pagination): | 55 %for cnt,cs in enumerate(c.pagination): |
56 <div id="chg_${cnt+1}" class="container ${'tablerow%s' % (cnt%2)}"> | 56 <div id="chg_${cnt+1}" class="container ${'tablerow%s' % (cnt%2)}"> |
159 var rev_start = checked_checkboxes[checked_checkboxes.length-1].name; | 159 var rev_start = checked_checkboxes[checked_checkboxes.length-1].name; |
160 | 160 |
161 var url = url_tmpl.replace('__REVRANGE__', | 161 var url = url_tmpl.replace('__REVRANGE__', |
162 rev_start+'...'+rev_end); | 162 rev_start+'...'+rev_end); |
163 | 163 |
164 var link = "<a href="+url+">${_('Show selected changes __S -> __E')}</a>" | 164 var link = "${_('Show selected changes __S -> __E')}"; |
165 link = link.replace('__S',rev_start.substr(0,6)); | 165 link = link.replace('__S',rev_start.substr(0,6)); |
166 link = link.replace('__E',rev_end.substr(0,6)); | 166 link = link.replace('__E',rev_end.substr(0,6)); |
167 YUD.get('rev_range_container').href = url; | |
167 YUD.get('rev_range_container').innerHTML = link; | 168 YUD.get('rev_range_container').innerHTML = link; |
168 YUD.setStyle('rev_range_container','display',''); | 169 YUD.setStyle('rev_range_container','display',''); |
169 } | 170 } |
170 else{ | 171 else{ |
171 YUD.setStyle('rev_range_container','display','none'); | 172 YUD.setStyle('rev_range_container','display','none'); |
172 | |
173 } | 173 } |
174 }); | 174 }); |
175 | 175 |
176 var msgs = YUQ('.message'); | 176 var msgs = YUQ('.message'); |
177 // get first element height | 177 // get first element height |