Show More
@@ -37,7 +37,7 b'' | |||||
37 | <a href="#" class="ui-btn small" id="rev_range_clear" style="display:none">${_('Clear selection')}</a> |
|
37 | <a href="#" class="ui-btn small" id="rev_range_clear" style="display:none">${_('Clear selection')}</a> | |
38 |
|
38 | |||
39 | %if c.rhodecode_db_repo.fork: |
|
39 | %if c.rhodecode_db_repo.fork: | |
40 | <a title="${_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default')}" class="ui-btn small">${_('Compare fork with parent')}</a> |
|
40 | <a id="compare_fork" title="${_('Compare fork with %s' % c.rhodecode_db_repo.fork.repo_name)}" href="${h.url('compare_url',repo_name=c.rhodecode_db_repo.fork.repo_name,org_ref_type='branch',org_ref='default',other_repo=c.repo_name,other_ref_type='branch',other_ref=request.GET.get('branch') or 'default')}" class="ui-btn small">${_('Compare fork with parent')}</a> | |
41 | %endif |
|
41 | %endif | |
42 | %if h.is_hg(c.rhodecode_repo): |
|
42 | %if h.is_hg(c.rhodecode_repo): | |
43 | <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a> |
|
43 | <a id="open_new_pr" href="${h.url('pullrequest_home',repo_name=c.repo_name)}" class="ui-btn small">${_('Open new pull request')}</a> | |
@@ -186,11 +186,12 b'' | |||||
186 | YUD.setStyle('rev_range_clear','display',''); |
|
186 | YUD.setStyle('rev_range_clear','display',''); | |
187 |
|
187 | |||
188 | YUD.get('open_new_pr').href = pr_tmpl + '?rev_start={0}&rev_end={1}'.format(rev_start,rev_end); |
|
188 | YUD.get('open_new_pr').href = pr_tmpl + '?rev_start={0}&rev_end={1}'.format(rev_start,rev_end); | |
189 |
|
189 | YUD.setStyle('compare_fork','display','none'); | ||
190 | } |
|
190 | } | |
191 | else{ |
|
191 | else{ | |
192 | YUD.setStyle('rev_range_container','display','none'); |
|
192 | YUD.setStyle('rev_range_container','display','none'); | |
193 | YUD.setStyle('rev_range_clear','display','none'); |
|
193 | YUD.setStyle('rev_range_clear','display','none'); | |
|
194 | YUD.setStyle('compare_fork','display',''); | |||
194 | } |
|
195 | } | |
195 | }; |
|
196 | }; | |
196 | YUE.onDOMReady(checkbox_checker); |
|
197 | YUE.onDOMReady(checkbox_checker); |
General Comments 0
You need to be logged in to leave comments.
Login now