Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
f37c0225
Verified
Commit
f37c0225
authored
Jul 09, 2019
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pedagogy: put report button at left and author at right
parent
5229628d
Pipeline
#1909
passed with stage
in 22 minutes and 48 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
34 deletions
+36
-34
core/static/core/style.scss
core/static/core/style.scss
+34
-32
pedagogy/templates/pedagogy/uv_detail.jinja
pedagogy/templates/pedagogy/uv_detail.jinja
+2
-2
No files found.
core/static/core/style.scss
View file @
f37c0225
...
...
@@ -2029,40 +2029,46 @@ $pedagogy-white-text: #f0f0f0;
grid-area
:
comment-end-bar
;
display
:
grid
;
grid-template-columns
:
auto
auto
auto
;
grid-template-columns
:
33%
auto
auto
;
grid-template-rows
:
2
.5em
;
grid-template-areas
:
"
rep
or
t
date
auth
or"
;
grid-template-areas
:
"
auth
or date
rep
or
t
"
;
background-color
:
$pedagogy-blue
;
margin-top
:
-1px
;
@media
screen
and
(
max-width
:
$large-devices
){
grid-template-columns
:
auto
;
grid-template-rows
:
auto
;
grid-template-rows
:
auto
auto
auto
;
grid-template-areas
:
"
auth
or"
"
rep
or
t
"
"date"
"
rep
or
t
"
;
"
auth
or"
;
margin-top
:
0px
;
text-align
:
center
;
}
.report
{
grid-area
:
report
;
padding-top
:
8px
;
.author
{
grid-area
:
author
;
padding-top
:
6px
;
padding-left
:
20px
;
background-color
:
$white-color
;
clip-path
:
polygon
(
0
0%
,
0
200%
,
300px
200%
,
250px
0
);
background-color
:
$pedagogy-orange
;
clip-path
:
polygon
(
0
10px
,
0
100%
,
300px
200%
,
250px
10px
);
@media
screen
and
(
max-width
:
$large-devices
){
clip-path
:
none
;
text-align
:
center
;
padding-top
:
6px
;
padding-bottom
:
6px
;
padding-left
:
0px
;
padding
:
0px
;
padding-bottom
:
7px
;
}
&
a
{
color
:
$black-color
;
a
{
color
:
$pedagogy-white-text
;
font-weight
:
bold
;
}
a
:hover
{
color
:
$pedagogy-hover-blue
;
}
}
...
...
@@ -2072,40 +2078,36 @@ $pedagogy-white-text: #f0f0f0;
color
:
$pedagogy-white-text
;
@media
screen
and
(
max-width
:
$large-devices
){
text-align
:
center
;
padding-bottom
:
7px
;
}
}
.
auth
or
{
grid-area
:
auth
or
;
.
rep
or
t
{
grid-area
:
rep
or
t
;
justify-self
:
right
;
padding-right
:
30px
;
padding-left
:
30px
;
background-color
:
$pedagogy-light-blue
;
a
{
color
:
$pedagogy-orange
;
font-weight
:
bold
;
color
:
$pedagogy-white-text
;
}
a
:hover
{
color
:
$
black-color
;
color
:
$
pedagogy-hover-blue
;
}
@media
screen
and
(
max-width
:
$large-devices
){
text-align
:
center
;
justify-self
:
inherit
;
padding-right
:
0px
;
padding-bottom
:
10px
;
background-color
:
$pedagogy-blue
;
padding-bottom
:
7px
;
background-color
:
$white-color
;
a
{
color
:
$pedagogy-white-text
;
font-weight
:
bold
;
}
border-left
:
solid
;
border-right
:
solid
;
border-color
:
$pedagogy-blue
;
a
:hover
{
color
:
$
pedagogy-light-blue
;
a
{
color
:
$
black-color
;
}
}
}
...
...
pedagogy/templates/pedagogy/uv_detail.jinja
View file @
f37c0225
...
...
@@ -182,9 +182,9 @@
</div>
<div
class=
"comment-end-bar"
>
<
p
class=
"report"
><a
href=
"
{{
url
(
'pedagogy:comment_report'
,
comment_id
=
comment.id
)
}}
"
>
{%
trans
%}
Report this comment
{%
endtrans
%}
</a></p>
<
div
class=
"report"
><
p><
a
href=
"
{{
url
(
'pedagogy:comment_report'
,
comment_id
=
comment.id
)
}}
"
>
{%
trans
%}
Report this comment
{%
endtrans
%}
</a></p>
</div>
<
p
class=
"date"
>
{{
comment.publish_date.strftime
(
'%d/%m/%Y'
)
}}
</p>
<
div
class=
"date"
>
<p>
{{
comment.publish_date.strftime
(
'%d/%m/%Y'
)
}}
</p>
</div>
<div
class=
"author"
><p>
{{
user_profile_link
(
comment.author
)
}}
</p></div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment