Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
398fa5da
Commit
398fa5da
authored
Sep 28, 2013
by
fred
Browse files
news: add category labels to main news
parent
0219a2a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/css/specifics.css
View file @
398fa5da
...
@@ -745,6 +745,11 @@ body{
...
@@ -745,6 +745,11 @@ body{
border
:
2px
solid
black
;
border
:
2px
solid
black
;
}
}
.news
.special
a
{
position
:
relative
;
}
.special
.labels
.item
,
.newsRoll
.labels
.item
{
.newsRoll
.labels
.item
{
display
:
block
;
display
:
block
;
background
:
#0000FF
;
background
:
#0000FF
;
...
...
panikweb_templates/templates/news/inline.html
View file @
398fa5da
...
@@ -2,6 +2,12 @@
...
@@ -2,6 +2,12 @@
{% load staticfiles %}
{% load staticfiles %}
<div
class=
"content content-inline {% if class != "
special
"
%}
inline
{%
endif
%}
cf
{{
class
}}"
>
<div
class=
"content content-inline {% if class != "
special
"
%}
inline
{%
endif
%}
cf
{{
class
}}"
>
<a
class=
"block cf"
href=
"{% url 'newsitem-view' slug=content.slug %}"
>
<a
class=
"block cf"
href=
"{% url 'newsitem-view' slug=content.slug %}"
>
{% if class == "special" and content.category %}
<div
class=
"label labels absolute"
>
<span
class=
"item inBlock"
>
{{ content.category.title }}
</span>
</div>
{% endif %}
<div
class=
"logo"
>
<div
class=
"logo"
>
{% if class == "special" and content.image %}
{% if class == "special" and content.image %}
<img
class=
"normal"
src=
"{{ content.image|thumbnail:'640x480' }}"
/>
<img
class=
"normal"
src=
"{{ content.image|thumbnail:'640x480' }}"
/>
...
...
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