- Patch #819214 by bleen18: the '#' marking comment permalinks is just weird and untranslatable.

merge-requests/26/head
Dries Buytaert 2010-09-23 19:47:31 +00:00
parent 7bf8499835
commit cd9a37e50d
3 changed files with 9 additions and 2 deletions

View File

@ -2204,8 +2204,10 @@ function template_preprocess_comment(&$variables) {
$variables['signature'] = $comment->signature; $variables['signature'] = $comment->signature;
$uri = entity_uri('comment', $comment); $uri = entity_uri('comment', $comment);
$uri['options'] += array('attributes' => array('class' => 'permalink', 'rel' => 'bookmark'));
$variables['title'] = l($comment->subject, $uri['path'], $uri['options']); $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. // Preprocess fields.
field_attach_preprocess('comment', $comment, $variables['elements'], $variables); field_attach_preprocess('comment', $comment, $variables['elements'], $variables);

View File

@ -572,6 +572,7 @@ h1#page-title,
position: relative; position: relative;
} }
#comments .attribution { #comments .attribution {
padding-top: 20px;
float: left; /* LTR */ float: left; /* LTR */
width: 110px; width: 110px;
} }
@ -588,6 +589,10 @@ h1#page-title,
font-size: 70%; font-size: 70%;
color: #68696b; color: #68696b;
} }
#comments .permalink {
font-size: 80%;
text-transform: lowercase;
}
#comments .content { #comments .content {
font-size: 90%; font-size: 90%;
} }

View File

@ -63,13 +63,13 @@
<?php print $picture; ?> <?php print $picture; ?>
<div class="submitted"> <div class="submitted">
<?php print $permalink; ?>
<p class="commenter-name"> <p class="commenter-name">
<?php print $author; ?> <?php print $author; ?>
</p> </p>
<p class="comment-time"> <p class="comment-time">
<?php print $created; ?> <?php print $created; ?>
</p> </p>
<?php print $permalink; ?>
</div> </div>
</div> </div>