changeset 2606:59fab1f641bf beta

added readme permalink
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 14 Jul 2012 20:31:43 +0200
parents 0dc09191775b
children 7ae36df760ce
files rhodecode/public/css/style.css rhodecode/templates/summary/summary.html
diffstat 2 files changed, 21 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/public/css/style.css	Sat Jul 14 19:59:35 2012 +0200
+++ b/rhodecode/public/css/style.css	Sat Jul 14 20:31:43 2012 +0200
@@ -219,6 +219,23 @@
     margin-bottom: 0;
     margin-top: 5px;
 }
+a.permalink{
+	visibility: hidden;
+}
+
+a.permalink:hover{
+	text-decoration: none;
+}
+
+h1:hover > a.permalink,
+h2:hover > a.permalink,
+h3:hover > a.permalink,
+h4:hover > a.permalink,
+h5:hover > a.permalink,
+h6:hover > a.permalink,
+div:hover > a.permalink {
+    visibility: visible;
+}
 
 #header {
 	margin: 0;
--- a/rhodecode/templates/summary/summary.html	Sat Jul 14 19:59:35 2012 +0200
+++ b/rhodecode/templates/summary/summary.html	Sat Jul 14 20:31:43 2012 +0200
@@ -227,7 +227,10 @@
 %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 class="breadcrumbs"><a href="${h.url('files_home',repo_name=c.repo_name,revision='tip',f_path=c.readme_file)}">${c.readme_file}</a></div>
+        <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_box">