Simplify non-active user page
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 3 Sep 2013 15:46:55 +0000 (17:46 +0200)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 3 Sep 2013 15:52:28 +0000 (17:52 +0200)
commit51b4318079d2dce51e58be3f5ea95bc825301e54
tree63111e48f1315e03914dcc6b1e3dbc6dc08bc6b1
parent6375cf735c3cc5b0a2b761545d546106e1de3b2d
Simplify non-active user page

Currently, the logic of whether a user account has been activated is in
the main user.html template. This is not good as: doing that check for all
users from template code is probably not great for performance, but more
severly, the template logic is rather difficult and convoluted.

Split this in a user.html and a user_nonactive.html where user.html is
used for active users and user_nonactive displays all the "you still need
to be activated" blurbs. This makes the templates much easier on the eyes.
mediagoblin/templates/mediagoblin/user_pages/user.html
mediagoblin/templates/mediagoblin/user_pages/user_nonactive.html [new file with mode: 0644]
mediagoblin/user_pages/views.py