# HG changeset patch # User Mads Kiilerich # Date 1362499950 -3600 # Node ID df05806e8a2d8a50fa2999c88db3e479775f2d3e # Parent d253f1b530c878816e3772349ede04b49065c699 changelog: "compare fork with parent" should only be shown when no changesets selected It do not use the selected changeset - showing the option is confusing. Greying out would perhaps be better ... but the button is already grey. diff -r d253f1b530c8 -r df05806e8a2d rhodecode/templates/changelog/changelog.html --- a/rhodecode/templates/changelog/changelog.html Mon Mar 04 18:56:02 2013 +0100 +++ b/rhodecode/templates/changelog/changelog.html Tue Mar 05 17:12:30 2013 +0100 @@ -37,7 +37,7 @@ %if c.rhodecode_db_repo.fork: - ${_('Compare fork with parent')} + ${_('Compare fork with parent')} %endif %if h.is_hg(c.rhodecode_repo): ${_('Open new pull request')} @@ -186,11 +186,12 @@ YUD.setStyle('rev_range_clear','display',''); YUD.get('open_new_pr').href = pr_tmpl + '?rev_start={0}&rev_end={1}'.format(rev_start,rev_end); - + YUD.setStyle('compare_fork','display','none'); } else{ YUD.setStyle('rev_range_container','display','none'); YUD.setStyle('rev_range_clear','display','none'); + YUD.setStyle('compare_fork','display',''); } }; YUE.onDOMReady(checkbox_checker);