diff --git a/fedireads/static/format.css b/fedireads/static/format.css index 4ecfc51d..85f3b11e 100644 --- a/fedireads/static/format.css +++ b/fedireads/static/format.css @@ -133,3 +133,9 @@ th, td { padding: 1em; text-align: left; } + +.errorlist { + list-style: none; + font-size: 0.8em; + color: #FF1654; +} diff --git a/fedireads/views.py b/fedireads/views.py index f3edf606..2e9e2bd3 100644 --- a/fedireads/views.py +++ b/fedireads/views.py @@ -39,6 +39,7 @@ def home(request): # TODO: handle post privacy activities = models.Activity.objects.filter( user__in=following, + ).select_subclasses().order_by( '-created_date' )[:10] @@ -66,8 +67,7 @@ def user_login(request): # authenticate user form = forms.LoginForm(request.POST) if not form.is_valid(): - # TODO messaging about a login failure - return TemplateResponse(request, 'login.html') + return TemplateResponse(request, 'login.html', {'login_form': form}) username = form.data['username'] username = '%s@%s' % (username, DOMAIN) @@ -76,7 +76,7 @@ def user_login(request): if user is not None: login(request, user) return redirect(request.GET.get('next', '/')) - return TemplateResponse(request, 'login.html') + return TemplateResponse(request, 'login.html', {'login_form': form}) @login_required