diff --git a/db.sqlite3 b/db.sqlite3 index de9576d..5ac2eab 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ diff --git a/news/__pycache__/urls.cpython-37.pyc b/news/__pycache__/urls.cpython-37.pyc index d4a18e7..a5938bb 100644 Binary files a/news/__pycache__/urls.cpython-37.pyc and b/news/__pycache__/urls.cpython-37.pyc differ diff --git a/news/__pycache__/views.cpython-37.pyc b/news/__pycache__/views.cpython-37.pyc index ff1fc45..4a38b52 100644 Binary files a/news/__pycache__/views.cpython-37.pyc and b/news/__pycache__/views.cpython-37.pyc differ diff --git a/news/templates/base.html b/news/templates/base.html index c5fe7ab..c1d82d0 100644 --- a/news/templates/base.html +++ b/news/templates/base.html @@ -26,6 +26,8 @@


{% if user.is_authenticated %} + [ {{ user.username }} ] +
Submit
Log out diff --git a/news/templates/news/index.html b/news/templates/news/index.html index 58d422b..97a782f 100644 --- a/news/templates/news/index.html +++ b/news/templates/news/index.html @@ -79,7 +79,7 @@ - +

{{ post.date }} - {{ post.author.username }} - {% if post.comment_set.count > 0 %}{{ post.comment_set.count }} comments{% else %}write comment{% endif %}
@@ -99,6 +99,18 @@ {% endfor %} + +