From cd9a37e50dfd2aec75db08a3eac00c46082b5dbc Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Thu, 23 Sep 2010 19:47:31 +0000
Subject: [PATCH] - Patch #819214 by bleen18: the '#' marking comment
 permalinks is just weird and untranslatable.

---
 modules/comment/comment.module          | 4 +++-
 themes/bartik/css/style.css             | 5 +++++
 themes/bartik/templates/comment.tpl.php | 2 +-
 3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index e5d1337baf7b..fd46cd7c0b6e 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2204,8 +2204,10 @@ function template_preprocess_comment(&$variables) {
   $variables['signature'] = $comment->signature;
 
   $uri = entity_uri('comment', $comment);
+  $uri['options'] += array('attributes' => array('class' => 'permalink', 'rel' => 'bookmark'));
+
   $variables['title']     = l($comment->subject, $uri['path'], $uri['options']);
-  $variables['permalink'] = l('#', $uri['path'], $uri['options']);
+  $variables['permalink'] = l(t('Permalink'), $uri['path'], $uri['options']);
 
   // Preprocess fields.
   field_attach_preprocess('comment', $comment, $variables['elements'], $variables);
diff --git a/themes/bartik/css/style.css b/themes/bartik/css/style.css
index 5c607ff83b31..b1fbc71f3994 100644
--- a/themes/bartik/css/style.css
+++ b/themes/bartik/css/style.css
@@ -572,6 +572,7 @@ h1#page-title,
   position: relative;
 }
 #comments .attribution {
+  padding-top: 20px;
   float: left; /* LTR */
   width: 110px;
 }
@@ -588,6 +589,10 @@ h1#page-title,
   font-size: 70%;
   color: #68696b;
 }
+#comments .permalink {
+  font-size: 80%;
+  text-transform: lowercase;
+}
 #comments .content {
   font-size: 90%;
 }
diff --git a/themes/bartik/templates/comment.tpl.php b/themes/bartik/templates/comment.tpl.php
index 07555da8db7c..416995154841 100644
--- a/themes/bartik/templates/comment.tpl.php
+++ b/themes/bartik/templates/comment.tpl.php
@@ -63,13 +63,13 @@
     <?php print $picture; ?>
 
     <div class="submitted">
-      <?php print $permalink; ?>
       <p class="commenter-name">
         <?php print $author; ?>
       </p>
       <p class="comment-time">
         <?php print $created; ?>
       </p>
+      <?php print $permalink; ?>
     </div>
   </div>
 
-- 
GitLab