diff --git a/boards/templates/boards/notifications.html b/boards/templates/boards/notifications.html --- a/boards/templates/boards/notifications.html +++ b/boards/templates/boards/notifications.html @@ -4,6 +4,7 @@ {% load i18n %} {% block head %} + {{ site_name }} - {% trans 'Notifications' %} - {{ notification_username }} {% endblock %} diff --git a/boards/templates/boards/posting_general.html b/boards/templates/boards/posting_general.html --- a/boards/templates/boards/posting_general.html +++ b/boards/templates/boards/posting_general.html @@ -6,6 +6,8 @@ {% load static %} {% block head %} + + {% if tag %} {{ tag.name }} - {{ site_name }} {% else %} diff --git a/boards/templates/boards/settings.html b/boards/templates/boards/settings.html --- a/boards/templates/boards/settings.html +++ b/boards/templates/boards/settings.html @@ -4,6 +4,7 @@ {% load humanize %} {% block head %} + {% trans 'Settings' %} - {{ site_name }} {% endblock %} diff --git a/boards/templates/boards/thread_gallery.html b/boards/templates/boards/thread_gallery.html --- a/boards/templates/boards/thread_gallery.html +++ b/boards/templates/boards/thread_gallery.html @@ -6,6 +6,7 @@ {% load board %} {% block head %} + {{ thread.get_opening_post.get_title|striptags|truncatewords:10 }} - {{ site_name }} {% endblock %} diff --git a/boards/templates/search/search.html b/boards/templates/search/search.html --- a/boards/templates/search/search.html +++ b/boards/templates/search/search.html @@ -3,6 +3,10 @@ {% load board %} {% load i18n %} +{% block head %} + +{% endblock %} + {% block content %}
diff --git a/boards/views/thread/thread.py b/boards/views/thread/thread.py --- a/boards/views/thread/thread.py +++ b/boards/views/thread/thread.py @@ -1,18 +1,16 @@ -from django.core.urlresolvers import reverse from django.core.exceptions import ObjectDoesNotExist -from django.db import transaction from django.http import Http404 from django.shortcuts import get_object_or_404, render, redirect from django.views.generic.edit import FormMixin from boards import utils, settings from boards.forms import PostForm, PlainErrorList -from boards.models import Post, Ban -from boards.views.banned import BannedView +from boards.models import Post from boards.views.base import BaseBoardView, CONTEXT_FORM from boards.views.posting_mixin import PostMixin import neboard + TEMPLATE_GALLERY = 'boards/thread_gallery.html' TEMPLATE_NORMAL = 'boards/thread.html'