changeset 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 a16f9a76c26f
children 1f2c4bf348ad
files rhodecode/public/css/style.css rhodecode/templates/changelog/changelog.html
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/public/css/style.css	Sat Sep 29 23:12:30 2012 +0200
+++ b/rhodecode/public/css/style.css	Sat Sep 29 23:19:25 2012 +0200
@@ -2544,8 +2544,8 @@
 }
 
 #graph_content #rev_range_container {
-	padding: 7px 20px;
 	float: left;
+	margin: 0px 0px 0px 3px;
 }
 
 #graph_content .container {
--- a/rhodecode/templates/changelog/changelog.html	Sat Sep 29 23:12:30 2012 +0200
+++ b/rhodecode/templates/changelog/changelog.html	Sat Sep 29 23:19:25 2012 +0200
@@ -33,6 +33,7 @@
 				</div>
 				<div id="graph_content">
                     <div class="info_box" style="clear: both;padding: 10px 6px;vertical-align: right;text-align: right;">
+                    <a href="#" class="ui-btn small" id="rev_range_container" style="display:none"></a>
                     %if c.rhodecode_db_repo.fork:
                         <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>
                     %endif
@@ -48,7 +49,6 @@
 				          ${_('revisions')}
 				        </div>
 				        ${h.end_form()}
-					<div id="rev_range_container" style="display:none"></div>
                     <div style="float:right">${h.select('branch_filter',c.branch_name,c.branch_filters)}</div>
 					</div>
 
@@ -161,15 +161,15 @@
                             var url = url_tmpl.replace('__REVRANGE__',
                             		rev_start+'...'+rev_end);
 
-                        var link = "<a href="+url+">${_('Show selected changes __S -> __E')}</a>"
+                        var link = "${_('Show selected changes __S -> __E')}";
                         link = link.replace('__S',rev_start.substr(0,6));
                         link = link.replace('__E',rev_end.substr(0,6));
+                        YUD.get('rev_range_container').href = url;
                         YUD.get('rev_range_container').innerHTML = link;
                         YUD.setStyle('rev_range_container','display','');
                         }
                         else{
                         	YUD.setStyle('rev_range_container','display','none');
-
                         }
                     });