summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/comment/comment.module4
-rw-r--r--themes/bartik/css/style.css5
-rw-r--r--themes/bartik/templates/comment.tpl.php2
3 files changed, 9 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index e5d1337ba..fd46cd7c0 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 5c607ff83..b1fbc71f3 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 07555da8d..416995154 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>