changeset 2990:0bc7b5895242 beta

small anchor cleanup - fixed readme positioning with fixed bar - added anchor link to inline comment
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 07 Nov 2012 20:50:58 +0100
parents 190e2ff4595d
children 578a152f5ae3
files rhodecode/public/css/style.css rhodecode/templates/changeset/changeset_file_comment.html rhodecode/templates/summary/summary.html
diffstat 3 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/public/css/style.css	Wed Nov 07 19:38:46 2012 +0100
+++ b/rhodecode/public/css/style.css	Wed Nov 07 20:50:58 2012 +0100
@@ -353,9 +353,9 @@
     z-index: auto !important;
 }
 
-.header-pos-fix{
-	margin-top: -44px;
-	padding-top: 44px;
+.header-pos-fix, .anchor{
+	margin-top: -46px;
+	padding-top: 46px;
 }
 
 #header #header-inner #home a {
--- a/rhodecode/templates/changeset/changeset_file_comment.html	Wed Nov 07 19:38:46 2012 +0100
+++ b/rhodecode/templates/changeset/changeset_file_comment.html	Wed Nov 07 20:50:58 2012 +0100
@@ -12,7 +12,7 @@
   			${co.author.username}
   		</div>
   		<div class="date">
-  			${h.age(co.modified_at)}
+  			${h.age(co.modified_at)} <a class="permalink" href="#comment-${co.comment_id}">&para;</a>
   		</div>
         %if co.status_change:
            <div  style="float:left" class="changeset-status-container">
--- a/rhodecode/templates/summary/summary.html	Wed Nov 07 19:38:46 2012 +0100
+++ b/rhodecode/templates/summary/summary.html	Wed Nov 07 20:50:58 2012 +0100
@@ -238,19 +238,21 @@
 </div>
 
 %if c.readme_data:
-<div id="readme" class="box header-pos-fix" style="background-color: #FAFAFA">
-    <div id="readme" class="title" title="${_("Readme file at revision '%s'" % c.rhodecode_db_repo.landing_rev)}">
+<div id="readme" class="anchor">
+<div class="box" style="background-color: #FAFAFA">
+    <div class="title" title="${_("Readme file at revision '%s'" % c.rhodecode_db_repo.landing_rev)}">
         <div class="breadcrumbs">
             <a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a>
             <a class="permalink" href="#readme" title="${_('Permalink to this readme')}">&para;</a>
         </div>
     </div>
-    <div id="readme" class="readme">
+    <div class="readme">
       <div class="readme_box">
         ${c.readme_data|n}
       </div>
     </div>
 </div>
+</div>
 %endif
 
 <script type="text/javascript">