Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
bluecheese-3334807
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
bluecheese-3334807
Commits
d5f51518
Commit
d5f51518
authored
10 years ago
by
Neil Drumm
Browse files
Options
Downloads
Patches
Plain Diff
#2211741
Update comment new & user picture styling.
parent
10457242
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
sass/partials/common/_comment.scss
+20
-5
20 additions, 5 deletions
sass/partials/common/_comment.scss
template.php
+0
-3
0 additions, 3 deletions
template.php
tpl/comment.tpl.php
+0
-30
0 additions, 30 deletions
tpl/comment.tpl.php
with
20 additions
and
38 deletions
sass/partials/common/_comment.scss
+
20
−
5
View file @
d5f51518
...
...
@@ -3,7 +3,7 @@
margin-top
:
0
.692em
;
padding-top
:
0
.692em
;
h3
.comment-title
{
>
h3
{
margin-bottom
:
0
;
}
.submitted
a
.username
{
...
...
@@ -25,12 +25,27 @@
float
:
right
;
}
.new
{
background-color
:
$light-yellow
;
padding
:
1px
6px
2px
;
float
:
right
;
color
:
$white
;
background-color
:
$darker-grey
;
padding
:
3px
6px
;
margin
:
0
0
0
0
.5em
;
text-transform
:
uppercase
;
font-size
:
0
.8333em
;
line-height
:
1em
;
}
.picture
{
float
:
right
;
margin
:
0
0
1
.5em
1
.5em
;
float
:
left
;
text-align
:
center
;
width
:
40px
;
img
{
max-height
:
40px
;
}
}
&
.with-picture
{
// Move out of the way of the user picture.
>
h3
,
.submitted
,
.content
{
margin-left
:
50px
;
}
}
}
...
...
This diff is collapsed.
Click to expand it.
template.php
+
0
−
3
View file @
d5f51518
...
...
@@ -29,9 +29,6 @@ function bluecheese_preprocess_comment(&$variables) {
$variables
[
'created'
]
=
format_date
(
$variables
[
'comment'
]
->
created
,
'custom'
,
'F j, Y \a\t g:ia'
);
$variables
[
'pubdate'
]
=
'<time pubdate datetime="'
.
$variables
[
'comment'
]
->
created
.
'">'
.
$variables
[
'created'
]
.
'</time>'
;
$variables
[
'submitted'
]
=
t
(
'Posted by !username on !datetime'
,
array
(
'!username'
=>
$variables
[
'author'
],
'!datetime'
=>
$variables
[
'pubdate'
]));
// Add class to comment title
$variables
[
'title_attributes_array'
][
'class'
][]
=
'comment-title'
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
tpl/comment.tpl.php
deleted
100644 → 0
+
0
−
30
View file @
10457242
<div
class=
"
<?php
print
$classes
;
?>
clearfix"
<?php
print
$attributes
;
?>
>
<?php
print
$picture
?>
<?php
print
render
(
$title_prefix
);
?>
<h3
<?php
print
$title_attributes
;
?>
>
<?php
print
$title
?>
</h3>
<?php
print
render
(
$title_suffix
);
?>
<div
class=
"submitted"
>
<?php
print
$permalink
;
?>
<?php
print
$submitted
;
?>
<?php
if
(
$new
)
:
?>
<span
class=
"new"
>
<?php
print
$new
?>
</span>
<?php
endif
;
?>
</div>
<div
class=
"content"
<?php
print
$content_attributes
;
?>
>
<?php
// We hide the comments and links now so that we can render them later.
hide
(
$content
[
'links'
]);
print
render
(
$content
);
?>
<?php
if
(
$signature
)
:
?>
<div
class=
"user-signature clearfix"
>
<?php
print
$signature
?>
</div>
<?php
endif
;
?>
</div>
<?php
print
render
(
$content
[
'links'
])
?>
</div>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment