From 4f1576e086a26fd0d0b7686f3b983e91759f5d4c Mon Sep 17 00:00:00 2001 From: TheAMM Date: Wed, 24 May 2017 21:54:50 +0300 Subject: [PATCH] Fancy grammar in your anime torrents --- nyaa/templates/layout.html | 3 ++- nyaa/templates/user.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/nyaa/templates/layout.html b/nyaa/templates/layout.html index 4230f74..6abf32b 100755 --- a/nyaa/templates/layout.html +++ b/nyaa/templates/layout.html @@ -57,7 +57,8 @@ {{ config.SITE_NAME }} - {% set search_placeholder = 'Search {}\'s torrents...'.format(user.username) if user_page else 'Search...' %} + {% set search_username = (user.username + ("'" if user.username[-1] == 's' else "'s")) if user_page else None %} + {% set search_placeholder = 'Search {} torrents...'.format(search_username) if user_page else 'Search...' %}