blogdetail layout tuning, other mini fixes
This commit is contained in:
parent
83b28f4475
commit
408a8275c4
|
@ -24,15 +24,16 @@
|
||||||
<input type="submit" value="Submit" />
|
<input type="submit" value="Submit" />
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<br/><br/>
|
||||||
{% for comment in blogentry.blogcomment_set.all %}
|
{% for comment in blogentry.blogcomment_set.all %}
|
||||||
{% if comment.user %}
|
{% if comment.user %}
|
||||||
<h3>{{ comment.user.username }} says:</h3>
|
<big><b>{{ comment.user.username }}</b> says:</big>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>{{ comment.guestname }} says:</h3>
|
<big>{{ comment.guestname }} says:</big>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ comment.body|linebreaks }}<br/>
|
<br/><small>{{ comment.date }}</small><br/>
|
||||||
<small>{{ comment.date }}</small>
|
{{ comment.body|linebreaks }}
|
||||||
|
<hr width="25%" align="left"/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if false %}
|
{% if false %}
|
||||||
<table class="forumentry">
|
<table class="forumentry">
|
||||||
|
|
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
|
@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||||
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
|
# See https://docs.djangoproject.com/en/1.9/howto/deployment/checklist/
|
||||||
|
|
||||||
# SECURITY WARNING: keep the secret key used in production secret!
|
# SECURITY WARNING: keep the secret key used in production secret!
|
||||||
SECRET_KEY = 'c=62ybp2ppak&@1r+x(cc)u+iw9%ljsq8-w10h9a14##)51yh3'
|
SECRET_KEY = 'somesecretkey'
|
||||||
|
|
||||||
# SECURITY WARNING: don't run with debug turned on in production!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
|
@ -76,3 +76,7 @@ div#footer{
|
||||||
display: table;
|
display: table;
|
||||||
clear: both;
|
clear: both;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
|
@ -41,7 +41,9 @@ Blog Post Categories:<br/>
|
||||||
Recent Posts:<br/>
|
Recent Posts:<br/>
|
||||||
<ul>
|
<ul>
|
||||||
{% for post in blogentries %}
|
{% for post in blogentries %}
|
||||||
|
{% if post.published %}
|
||||||
<li> <a href="{% url 'detail' post.id %}">{{ post }}</a> </li>
|
<li> <a href="{% url 'detail' post.id %}">{{ post }}</a> </li>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue