Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
blog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cubicweb
cubes
blog
Commits
0ab3a2e44be3
Commit
0ab3a2e44be3
authored
14 years ago
by
Sandrine Ribeau
Browse files
Options
Downloads
Patches
Plain Diff
ticket #914504, fix blogentry title by moving date below separating line
parent
4ebf5a6d1a54
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
data/cubes.blog.css
+6
-6
6 additions, 6 deletions
data/cubes.blog.css
views/secondary.py
+3
-2
3 additions, 2 deletions
views/secondary.py
with
9 additions
and
8 deletions
data/cubes.blog.css
+
6
−
6
View file @
0ab3a2e4
...
@@ -56,5 +56,5 @@
...
@@ -56,5 +56,5 @@
float
:
right
;
float
:
right
;
}
}
span
.author
{
div
.author
_date
span
{
float
:
right
;
float
:
right
;
...
@@ -60,4 +60,3 @@
...
@@ -60,4 +60,3 @@
float
:
right
;
float
:
right
;
font-size
:
1.2em
;
}
}
...
@@ -62,4 +61,4 @@
...
@@ -62,4 +61,4 @@
}
}
div
.
creation
_date
{
div
.
author
_date
{
font-size
:
1.2em
;
font-size
:
1.2em
;
...
@@ -65,5 +64,6 @@
...
@@ -65,5 +64,6 @@
font-size
:
1.2em
;
font-size
:
1.2em
;
border-bottom-style
:
ridge
;
font-style
:
italic
;
border-bottom-color
:
#CCC
;
border-top-style
:
ridge
;
border-bottom-width
:
thin
;
border-top-color
:
#CCC
;
border-top-width
:
thin
;
}
}
This diff is collapsed.
Click to expand it.
views/secondary.py
+
3
−
2
View file @
0ab3a2e4
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
_
=
self
.
_cw
.
_
_
=
self
.
_cw
.
_
w
(
u
'
<div class=
"
post
"
>
'
)
w
(
u
'
<div class=
"
post
"
>
'
)
w
(
u
'
<h1>%s</h1>
'
%
entity
.
view
(
'
incontext
'
))
w
(
u
'
<h1>%s</h1>
'
%
entity
.
view
(
'
incontext
'
))
w
(
u
'
<div class=
"
creation_date
"
>%s</div>
'
%
w
(
u
'
<div class=
"
author_date
"
><span>%s
'
%
self
.
_cw
.
format_date
(
entity
.
creation_date
))
self
.
_cw
.
format_date
(
entity
.
creation_date
))
creator
=
entity
.
creator
creator
=
entity
.
creator
if
creator
:
if
creator
:
...
@@ -141,5 +141,5 @@
...
@@ -141,5 +141,5 @@
rql
=
'
Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y,
'
\
rql
=
'
Any X ORDERBY D DESC WHERE X is BlogEntry, X created_by Y,
'
\
'
Y eid %s, X creation_date D
'
%
creator
.
eid
'
Y eid %s, X creation_date D
'
%
creator
.
eid
url
=
self
.
_cw
.
build_url
(
'
view
'
,
rql
=
rql
,
vtitle
=
vtitle
,
page_size
=
10
)
url
=
self
.
_cw
.
build_url
(
'
view
'
,
rql
=
rql
,
vtitle
=
vtitle
,
page_size
=
10
)
w
(
u
'
<span class=
"
author
"
>
%s <a title=
"
%s
"
href=
"
%s
"
>%s</a>
</span>
'
%
(
w
(
u
'
%s <a title=
"
%s
"
href=
"
%s
"
>%s</a>
'
%
(
_
(
'
by
'
),
xml_escape
(
vtitle
),
xml_escape
(
url
),
creator
.
name
()))
_
(
'
by
'
),
xml_escape
(
vtitle
),
xml_escape
(
url
),
creator
.
name
()))
...
@@ -145,4 +145,5 @@
...
@@ -145,4 +145,5 @@
_
(
'
by
'
),
xml_escape
(
vtitle
),
xml_escape
(
url
),
creator
.
name
()))
_
(
'
by
'
),
xml_escape
(
vtitle
),
xml_escape
(
url
),
creator
.
name
()))
w
(
u
'
</span></div>
'
)
w
(
u
'
<div class=
"
entry
"
>
'
)
w
(
u
'
<div class=
"
entry
"
>
'
)
body
=
entity
.
printable_value
(
'
content
'
)
body
=
entity
.
printable_value
(
'
content
'
)
w
(
body
)
w
(
body
)
...
...
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