{% block "body" %}
+{% if not entry.published %}
+ <p class="warning">{% trans "This entry hasn't been published yet." %}</p>
+{% endif %}
+
<div class="entry entry-detail entry-{{ entry.type }}">
<div class="entry-wrapped">
def entry(request, type_db, slug):
lang = request.LANGUAGE_CODE
- args = {'type': type_db, 'slug_%s' % lang: slug, 'published_%s' % lang: True}
- # TODO: preview for admins
+ args = {'type': type_db, 'slug_%s' % lang: slug}
+ if not request.user.has_perm('migdal.change_entry'):
+ args['published_%s' % lang] = True
entry = get_object_or_404(Entry, **args)
templates = ["migdal/entry/entry_detail.html"]
margin: 0 0 .5em 0;
color: #01519a;
font-size: 2em; }
+
+.warning {
+ border: 1px solid #ddd;
+ padding: 1em;
+ background: #ffd;
+ font-size: 1.3em; }
color: #01519a;
font-size: 2em;
}
+
+
+.warning {
+ border: 1px solid #ddd;
+ padding: 1em;
+ background: #ffd;
+ font-size: 1.3em;
+}
.entry-wrapped h1, .entry-wrapped h2 {
margin: 0;
color: #01519a;
- font-size: 1.2em; }
+ font-size: 1.3em; }
.entry-wrapped h1 a, .entry-wrapped h2 a {
color: #01519a; }
.entry-wrapped h2.section {
margin: 2em 0; }
.entry-wrapped .entry-data {
- font-size: 1.2em;
+ font-size: 1.3em;
margin-top: 1.4em;
margin-bottom: 1.4em; }
.entry-wrapped .entry-data .date {
.entry-wrapped .entry-data .categories a {
color: black; }
.entry-wrapped .lead {
- font-size: 1.2em; }
+ font-size: 1.3em; }
.entry-wrapped .body {
- font-size: 1.2em; }
+ font-size: 1.3em; }
.entry-wrapped .more {
clear: both;
float: right;
- font-size: 1.2em;
+ font-size: 1.3em;
font-style: italic;
margin-top: .6em;
margin-bottom: 1.8em; }
border-bottom: 1px solid #8b8b87; }
.submit-link a {
color: black;
- font-size: 1.2em; }
+ font-size: 1.3em; }
.submit-link a:before {
content: url("/static/img/plus.png");
vertical-align: top;
.comments .comment-form {
border-top: 1px solid #494948; }
.comments .comment-data {
- font-size: 1.2em;
+ font-size: 1.3em;
margin-top: 1.4em;
margin-bottom: 1.4em; }
.comments .comment-data .comment-date {
.comments .comment-data .comment-author {
font-weight: bold; }
.comments .body {
- font-size: 1.2em; }
+ font-size: 1.3em; }
h1, h2 {
margin: 0;
color: #01519a;
- font-size: 1.2em;
+ font-size: 1.3em;
a {
color: #01519a;
}
.entry-data {
- font-size: 1.2em;
+ font-size: 1.3em;
margin-top: 1.4em;
margin-bottom: 1.4em;
.date {
}
.lead {
- font-size: 1.2em;
+ font-size: 1.3em;
}
.body {
- font-size: 1.2em;
+ font-size: 1.3em;
+ }
+
+ blockquote {
+ position:relative;
+ left:1em;
+ font-style:italic;
+ margin-left: 1em;
}
.more {
clear: both;
float: right;
- font-size: 1.2em;
+ font-size: 1.3em;
font-style: italic;
margin-top: .6em;
margin-bottom: 1.8em;
a {
color: black;
- font-size: 1.2em;
+ font-size: 1.3em;
}
a:before {
content: url("/static/img/plus.png");
}
.comment-data {
- font-size: 1.2em;
+ font-size: 1.3em;
margin-top: 1.4em;
margin-bottom: 1.4em;
.comment-date {
}
.body {
- font-size: 1.2em;
+ font-size: 1.3em;
}
}