matthijs/projects/xerxes.git
16 years agoAllow staff to view anything on the front site.
Matthijs Kooijman [Fri, 31 Oct 2008 18:53:43 +0000 (19:53 +0100)]
Allow staff to view anything on the front site.

In particular, influence_detail and character_detail no longer deny
access to staff members.

16 years agoRemove SITE_ID from settings.
Matthijs Kooijman [Fri, 31 Oct 2008 18:52:03 +0000 (19:52 +0100)]
Remove SITE_ID from settings.

We're not using the sites app, so we don't need this.

16 years agoGive Influence and Character an absolute_url.
Matthijs Kooijman [Fri, 31 Oct 2008 18:51:27 +0000 (19:51 +0100)]
Give Influence and Character an absolute_url.

This enabled the "view in site" button in the admin.

16 years agoDon't pass base to the comment preview template.
Matthijs Kooijman [Fri, 31 Oct 2008 16:51:49 +0000 (17:51 +0100)]
Don't pass base to the comment preview template.

This parameter was added to support embedding previews in the admin as
well, but we'll just keep previews in the frontend for now.

16 years agoAdd hidden "next" fields to the comment forms.
Matthijs Kooijman [Fri, 31 Oct 2008 16:48:48 +0000 (17:48 +0100)]
Add hidden "next" fields to the comment forms.

Previously, commenting would only work because the threadedcomments
application falls back to using HTTP referrer information, which is not
reliable.

16 years agoEnable the preview buttons on comment forms.
Matthijs Kooijman [Fri, 31 Oct 2008 16:48:27 +0000 (17:48 +0100)]
Enable the preview buttons on comment forms.

16 years agoAdd influence_comment_preview template.
Matthijs Kooijman [Fri, 31 Oct 2008 16:47:12 +0000 (17:47 +0100)]
Add influence_comment_preview template.

16 years agoUse parent_id instead of edit_id.
Matthijs Kooijman [Fri, 31 Oct 2008 16:46:00 +0000 (17:46 +0100)]
Use parent_id instead of edit_id.

Previously, edit_id was taken as the message to reply to, but it was
never set, nor appropriate.

16 years agoAdd a custom comment preview view for influences.
Matthijs Kooijman [Fri, 31 Oct 2008 16:44:27 +0000 (17:44 +0100)]
Add a custom comment preview view for influences.

16 years agoGive each comment form a unique prefix.
Matthijs Kooijman [Fri, 31 Oct 2008 16:42:31 +0000 (17:42 +0100)]
Give each comment form a unique prefix.

16 years agoAdd log_error decorator for debugging.
Matthijs Kooijman [Fri, 31 Oct 2008 16:30:34 +0000 (17:30 +0100)]
Add log_error decorator for debugging.

16 years agoEnable the request context processor.
Matthijs Kooijman [Fri, 31 Oct 2008 16:07:03 +0000 (17:07 +0100)]
Enable the request context processor.

16 years agoIntroduce a comments block in the influence_detail.
Matthijs Kooijman [Fri, 31 Oct 2008 13:55:36 +0000 (14:55 +0100)]
Introduce a comments block in the influence_detail.

This allows us to override the comments display for previewing later.

16 years agoMove influence_detail_block into influence_detail.
Matthijs Kooijman [Fri, 31 Oct 2008 13:53:30 +0000 (14:53 +0100)]
Move influence_detail_block into influence_detail.

The influence_detail_block template is only used in the influence_detail
template, so having it separate is not really needed. Additionally, it
turns out that overriding a block in an included template is not
possible, so moving it back in allows us to override the comments block
(which we will introduce in the next commmit).

16 years agoAlways include the showReply/hideReply functions.
Matthijs Kooijman [Fri, 31 Oct 2008 13:38:32 +0000 (14:38 +0100)]
Always include the showReply/hideReply functions.

Previously, these javascript functions were only defined when there were
any comments, but the "add comment" link uses them as well.

16 years agoMove the new comment form to the right template.
Matthijs Kooijman [Fri, 31 Oct 2008 13:25:29 +0000 (14:25 +0100)]
Move the new comment form to the right template.

The "reply to this comment" forms were already in
influence_comments_block, but the "new comment" form was not.

16 years agoLet Influence list and annote its comments itself.
Matthijs Kooijman [Fri, 31 Oct 2008 11:45:38 +0000 (12:45 +0100)]
Let Influence list and annote its comments itself.

Previously, both the admin view and the influence_detail view would
create this list and annotate it with reply forms.

16 years agoMove forms from models.py to a new file forms.py.
Matthijs Kooijman [Fri, 31 Oct 2008 10:49:14 +0000 (11:49 +0100)]
Move forms from models.py to a new file forms.py.

16 years agoAdd a comments view to the InfluenceAdmin.
Matthijs Kooijman [Fri, 31 Oct 2008 10:36:30 +0000 (11:36 +0100)]
Add a comments view to the InfluenceAdmin.

16 years agoMove the comment display into it's own template.
Matthijs Kooijman [Fri, 31 Oct 2008 10:30:47 +0000 (11:30 +0100)]
Move the comment display into it's own template.

16 years agoMove quote_reply out of the influence_detail function.
Matthijs Kooijman [Fri, 31 Oct 2008 10:29:31 +0000 (11:29 +0100)]
Move quote_reply out of the influence_detail function.

16 years agoReplace STATIC_URL_PREFIX by MEDIA_URL.
Matthijs Kooijman [Fri, 31 Oct 2008 10:07:05 +0000 (11:07 +0100)]
Replace STATIC_URL_PREFIX by MEDIA_URL.

STATIC_URL_PREFIX was a custom creation, but it is now clear that
MEDIA_URL is meant for exactly the same thing (and not just for uploaded
files, as I previously thought).

16 years agoRename the static dir to media.
Matthijs Kooijman [Fri, 31 Oct 2008 09:57:44 +0000 (10:57 +0100)]
Rename the static dir to media.

16 years agoMake the enabling of TEMPLATE_DEBUG more clear.
Matthijs Kooijman [Fri, 31 Oct 2008 09:07:07 +0000 (10:07 +0100)]
Make the enabling of TEMPLATE_DEBUG more clear.

TEMPLATE_DEBUG used to be initialized with the value of DEBUG in
settings.py, which was confusing if you change the value of DEBUG in
localsettings.

16 years agoRemove some deprecated options.
Matthijs Kooijman [Thu, 30 Oct 2008 06:53:22 +0000 (07:53 +0100)]
Remove some deprecated options.

These options are no longer supported since Django 1.0.

16 years agoInstantiate the new comment form class.
Matthijs Kooijman [Wed, 29 Oct 2008 20:48:21 +0000 (21:48 +0100)]
Instantiate the new comment form class.

Previously, the class itself was passed to the template, which obviously
didn't work.

16 years agoWrap the free_comment view instead of the comment view.
Matthijs Kooijman [Wed, 29 Oct 2008 10:38:42 +0000 (11:38 +0100)]
Wrap the free_comment view instead of the comment view.

This allows us to work with no changes to threaded_comments at all.

16 years agoImprove influence comment handling.
Matthijs Kooijman [Wed, 29 Oct 2008 10:31:19 +0000 (11:31 +0100)]
Improve influence comment handling.

This adds a number of form classes for commenting, which allow to choose
between public or private comments and can prevent the choice of markup.
Using a wrapper function, the right class can be selected depending on
the logged in user and the comment to reply to.

Each comment to display is annotated with the reply form to reply to it,
so we no longer need changes in threaded_comments to support quoted
replies.

Additionally, a new view is added that handles the selection of the
right form class when saving a comment.

16 years agoMark private comments using a red border.
Matthijs Kooijman [Wed, 29 Oct 2008 10:25:55 +0000 (11:25 +0100)]
Mark private comments using a red border.

16 years agoFix HTML errors.
Matthijs Kooijman [Tue, 28 Oct 2008 23:41:11 +0000 (00:41 +0100)]
Fix HTML errors.

16 years agoAdd a doctype and title tag.
Matthijs Kooijman [Tue, 28 Oct 2008 23:34:55 +0000 (00:34 +0100)]
Add a doctype and title tag.

16 years agoMake ContextForm and ContextModelForm work again.
Matthijs Kooijman [Tue, 28 Oct 2008 22:33:42 +0000 (23:33 +0100)]
Make ContextForm and ContextModelForm work again.

It seems like some stuff changed in django, not sure what exactly. This
commit removes changes the inheritance to inherit from Form and
ModelForm instead of avoiding that and directly inheriting from their
base classes and do some metaclass magic.

16 years agoFix comment tags in the base template.
Matthijs Kooijman [Tue, 28 Oct 2008 17:31:35 +0000 (18:31 +0100)]
Fix comment tags in the base template.

This ensure we really don't link to online copies of the YUI scripting
files.

16 years agoChange newforms to forms.
Matthijs Kooijman [Sun, 14 Sep 2008 13:29:23 +0000 (15:29 +0200)]
Change newforms to forms.

16 years agoUpdate signal handling to work with the changes introduced in django r8223.
Matthijs Kooijman [Mon, 18 Aug 2008 18:48:18 +0000 (20:48 +0200)]
Update signal handling to work with the changes introduced in django r8223.

16 years agoShow only public comments to non-staff.
Matthijs Kooijman [Thu, 31 Jul 2008 22:36:37 +0000 (00:36 +0200)]
Show only public comments to non-staff.

16 years agoMark strings as translatable.
Matthijs Kooijman [Thu, 31 Jul 2008 22:36:18 +0000 (00:36 +0200)]
Mark strings as translatable.

16 years agoPoint base template to local copies of YUI files and css.
Matthijs Kooijman [Thu, 31 Jul 2008 22:35:06 +0000 (00:35 +0200)]
Point base template to local copies of YUI files and css.

16 years agoUpdate translation.
Matthijs Kooijman [Thu, 31 Jul 2008 22:34:30 +0000 (00:34 +0200)]
Update translation.

16 years agoAdd Lextalionis css skin.
Matthijs Kooijman [Thu, 31 Jul 2008 22:25:51 +0000 (00:25 +0200)]
Add Lextalionis css skin.

16 years agoAdd two YUI javascript files.
Matthijs Kooijman [Thu, 31 Jul 2008 22:25:33 +0000 (00:25 +0200)]
Add two YUI javascript files.

16 years agoMigrate applications to the new admin interface.
Matthijs Kooijman [Mon, 28 Jul 2008 16:14:08 +0000 (18:14 +0200)]
Migrate applications to the new admin interface.

16 years agoSwitch the urlconf to use the new django admin interface.
Matthijs Kooijman [Mon, 28 Jul 2008 16:13:45 +0000 (18:13 +0200)]
Switch the urlconf to use the new django admin interface.

16 years ago * Update translations.
Matthijs Kooijman [Sat, 26 Jul 2008 23:01:49 +0000 (01:01 +0200)]
 * Update translations.

16 years ago * Remove preview button, since it doesn't work inline and is ugly.
Matthijs Kooijman [Sat, 26 Jul 2008 11:18:31 +0000 (13:18 +0200)]
 * Remove preview button, since it doesn't work inline and is ugly.

16 years ago * Put a border around comments, makes it slightly clearer.
Matthijs Kooijman [Sat, 26 Jul 2008 11:09:36 +0000 (13:09 +0200)]
 * Put a border around comments, makes it slightly clearer.

16 years ago * Enable threaded comments for influences.
Matthijs Kooijman [Sat, 26 Jul 2008 11:09:20 +0000 (13:09 +0200)]
 * Enable threaded comments for influences.

16 years ago * Include YUI javascript libraries.
Matthijs Kooijman [Sat, 26 Jul 2008 11:08:43 +0000 (13:08 +0200)]
 * Include YUI javascript libraries.

16 years ago * Enable the threadedcomments app (code not included).
Matthijs Kooijman [Tue, 25 Mar 2008 11:11:39 +0000 (12:11 +0100)]
 * Enable the threadedcomments app (code not included).

16 years ago * Remove the sites app from the config, we're not using it.
Matthijs Kooijman [Mon, 24 Mar 2008 16:54:25 +0000 (17:54 +0100)]
 * Remove the sites app from the config, we're not using it.

16 years ago * Remove the Event model from the admin, we're not using it for now.
Matthijs Kooijman [Mon, 24 Mar 2008 16:50:56 +0000 (17:50 +0100)]
 * Remove the Event model from the admin, we're not using it for now.

16 years ago * Rename add.html template to add_influence.html for consistency.
Matthijs Kooijman [Sun, 24 Feb 2008 15:10:13 +0000 (16:10 +0100)]
 * Rename add.html template to add_influence.html for consistency.

16 years ago * Add some filters and search fields to the admin. production-master-something
Matthijs Kooijman [Sun, 24 Feb 2008 14:55:37 +0000 (15:55 +0100)]
 * Add some filters and search fields to the admin.

16 years ago * Put my email in the ADMINS settings, so I get mailed when a server error occurs.
Matthijs Kooijman [Wed, 13 Feb 2008 11:37:08 +0000 (12:37 +0100)]
 * Put my email in the ADMINS settings, so I get mailed when a server error occurs.

16 years ago * Fix grammar error in Dutch translation.
Matthijs Kooijman [Mon, 11 Feb 2008 14:26:19 +0000 (15:26 +0100)]
 * Fix grammar error in Dutch translation.

16 years ago * Update translations.
Matthijs Kooijman [Mon, 11 Feb 2008 14:23:57 +0000 (15:23 +0100)]
 * Update translations.

16 years ago * Add quotes around the href value in the mailto links on the error pages.
Matthijs Kooijman [Mon, 11 Feb 2008 14:23:40 +0000 (15:23 +0100)]
 * Add quotes around the href value in the mailto links on the error pages.

16 years ago * Rename project from ee to xerxes.
Matthijs Kooijman [Mon, 11 Feb 2008 14:05:47 +0000 (15:05 +0100)]
 * Rename project from ee to xerxes.

16 years ago * Add 404 and 500 templates for displaying pretty page not found and server error...
Matthijs Kooijman [Sun, 10 Feb 2008 15:59:26 +0000 (16:59 +0100)]
 * Add 404 and 500 templates for displaying pretty page not found and server error messages in a non-debug system.

16 years ago * Add localsettings.py to .gitignore.
Matthijs Kooijman [Sun, 10 Feb 2008 15:44:33 +0000 (16:44 +0100)]
 * Add localsettings.py to .gitignore.

16 years ago * Add an encode_email tag library used to somewhat encode email addresses. Code...
Matthijs Kooijman [Sun, 10 Feb 2008 15:43:55 +0000 (16:43 +0100)]
 * Add an encode_email tag library used to somewhat encode email addresses. Code taken verbatim from djangosnippets.org/snippets/216/.

16 years ago * Only set notification emails when DEBUG is disabled.
Matthijs Kooijman [Sun, 10 Feb 2008 14:48:24 +0000 (15:48 +0100)]
 * Only set notification emails when DEBUG is disabled.

16 years ago * Let settings import localsettings if it exists, to allow for installation-specific...
Matthijs Kooijman [Sun, 10 Feb 2008 14:46:57 +0000 (15:46 +0100)]
 * Let settings import localsettings if it exists, to allow for installation-specific settings.
 * Add a template for localsettings.
 * Set DEBUG to False (should be set to True in localsettings, if required).

16 years ago * Rename the add views to be a bit more consistent.
Matthijs Kooijman [Sun, 10 Feb 2008 14:37:28 +0000 (15:37 +0100)]
 * Rename the add views to be a bit more consistent.

16 years ago * Don't check if a new influence's character belongs to the currently logged in...
Matthijs Kooijman [Sun, 10 Feb 2008 14:34:39 +0000 (15:34 +0100)]
 * Don't check if a new influence's character belongs to the currently logged in player, form.is_valid now handles this.
 * Add some comments.

16 years ago * Use a relationship spanning lookup to get the list of a player's influences, inste...
Matthijs Kooijman [Sun, 10 Feb 2008 14:19:10 +0000 (15:19 +0100)]
 * Use a relationship spanning lookup to get the list of a player's influences, instead of using two lookups.

16 years ago * Add a influence_list view.
Matthijs Kooijman [Sun, 10 Feb 2008 14:17:29 +0000 (15:17 +0100)]
 * Add a influence_list view.

16 years ago * Split off the detail and list templates into a normal one that generates a full...
Matthijs Kooijman [Sun, 10 Feb 2008 14:17:03 +0000 (15:17 +0100)]
 * Split off the detail and list templates into a normal one that generates a full page, by including the _block variant, which generates the actual content.
 * Make the index template use the character_block and influence_block templates, to reduce duplicate template code.

16 years ago * Don't allow people to view each other's influences and characters.
Matthijs Kooijman [Sat, 9 Feb 2008 22:59:14 +0000 (23:59 +0100)]
 * Don't allow people to view each other's influences and characters.

16 years ago * Fix the approved/not approved display in the character_detail display, it always...
Matthijs Kooijman [Sat, 9 Feb 2008 22:58:51 +0000 (23:58 +0100)]
 * Fix the approved/not approved display in the character_detail display, it always showed approved.

16 years ago * No longer use any generic views, since we will need to add access checks anyway...
Matthijs Kooijman [Sat, 9 Feb 2008 22:50:18 +0000 (23:50 +0100)]
 * No longer use any generic views, since we will need to add access checks anyway, so we will need to redo a most of the stuff that the generic view does for us.

16 years ago * Let the character_template use the url templatetag instead of hardcoded urls.
Matthijs Kooijman [Sat, 9 Feb 2008 22:48:29 +0000 (23:48 +0100)]
 * Let the character_template use the url templatetag instead of hardcoded urls.

16 years ago * Also remove the references to the event views that got removed a few commits back.
Matthijs Kooijman [Sat, 9 Feb 2008 22:39:09 +0000 (23:39 +0100)]
 * Also remove the references to the event views that got removed a few commits back.

16 years ago * Replace some tabs by spaces and put a vim modeline in every python file.
Matthijs Kooijman [Sat, 9 Feb 2008 18:34:17 +0000 (19:34 +0100)]
 * Replace some tabs by spaces and put a vim modeline in every python file.

16 years ago * Remove some old stuff from the events app (such as the "Person" model).
Matthijs Kooijman [Sat, 9 Feb 2008 18:27:28 +0000 (19:27 +0100)]
 * Remove some old stuff from the events app (such as the "Person" model).

16 years ago * Use the lex skin instead of the spring skin.
Matthijs Kooijman [Sat, 9 Feb 2008 10:10:17 +0000 (11:10 +0100)]
 * Use the lex skin instead of the spring skin.

16 years ago * Use h1/h2 instead of h2/h3 in the templates, since there probably won't be a main...
Matthijs Kooijman [Sat, 9 Feb 2008 10:09:07 +0000 (11:09 +0100)]
 * Use h1/h2 instead of h2/h3 in the templates, since there probably won't be a main h1 title.

16 years ago * Use the spring skin instead of the winter skin.
Matthijs Kooijman [Sat, 9 Feb 2008 00:55:17 +0000 (01:55 +0100)]
 * Use the spring skin instead of the winter skin.

16 years ago * Fix error in import.py that caused everybody to be an admin.
Matthijs Kooijman [Sat, 9 Feb 2008 00:54:57 +0000 (01:54 +0100)]
 * Fix error in import.py that caused everybody to be an admin.

16 years ago * Only show the longterm in the email and detail template when it is set to yes.
Matthijs Kooijman [Sat, 9 Feb 2008 00:45:04 +0000 (01:45 +0100)]
 * Only show the longterm in the email and detail template when it is set to yes.

16 years ago * Put a character's status in the email and detail templates.
Matthijs Kooijman [Sat, 9 Feb 2008 00:44:24 +0000 (01:44 +0100)]
 * Put a character's status in the email and detail templates.

16 years ago * Add a status to Characters.
Matthijs Kooijman [Sat, 9 Feb 2008 00:41:04 +0000 (01:41 +0100)]
 * Add a status to Characters.

16 years ago * Also put Evolution Events in the emails' From name.
Matthijs Kooijman [Sat, 9 Feb 2008 00:16:07 +0000 (01:16 +0100)]
 * Also put Evolution Events in the emails' From name.

16 years ago * Change from address and X-mailer header to say Xerxes. Don't know if this will...
Matthijs Kooijman [Sat, 9 Feb 2008 00:15:16 +0000 (01:15 +0100)]
 * Change from address and X-mailer header to say Xerxes. Don't know if this will be the final name for the system, though.

16 years ago * Also sent email notifications to lextalionis@evolution-events.nl (hardcoded for...
Matthijs Kooijman [Sat, 9 Feb 2008 00:02:37 +0000 (01:02 +0100)]
 * Also sent email notifications to lextalionis@evolution-events.nl (hardcoded for now...).

16 years ago * Update translations.
Matthijs Kooijman [Fri, 8 Feb 2008 23:52:23 +0000 (00:52 +0100)]
 * Update translations.

16 years ago * Put some useful content in the character_changed template.
Matthijs Kooijman [Fri, 8 Feb 2008 23:45:41 +0000 (00:45 +0100)]
 * Put some useful content in the character_changed template.
 * Some cosmetic fixes in the influence_changed template.

16 years ago * Update influence_changed template to use the gapless template tag, which makes...
Matthijs Kooijman [Fri, 8 Feb 2008 23:22:24 +0000 (00:22 +0100)]
 * Update influence_changed template to use the gapless template tag, which makes it a tiny bit more readable.

16 years ago * Modify the gapless template tag to preserve wanted empty lines (marked with \\)
Matthijs Kooijman [Fri, 8 Feb 2008 23:15:52 +0000 (00:15 +0100)]
 * Modify the gapless template tag to preserve wanted empty lines (marked with \\)

16 years ago * Add the gapless template tag from http://www.djangosnippets.org/snippets/569/.
Matthijs Kooijman [Fri, 8 Feb 2008 23:01:14 +0000 (00:01 +0100)]
 * Add the gapless template tag from djangosnippets.org/snippets/569/.

16 years ago * Only show the list of influences when there are any characters.
Matthijs Kooijman [Fri, 8 Feb 2008 22:27:21 +0000 (23:27 +0100)]
 * Only show the list of influences when there are any characters.

16 years ago * Disallow adding influences for other users' characters.
Matthijs Kooijman [Fri, 8 Feb 2008 22:22:43 +0000 (23:22 +0100)]
 * Disallow adding influences for other users' characters.

16 years ago * Update translations.
Matthijs Kooijman [Fri, 8 Feb 2008 21:54:55 +0000 (22:54 +0100)]
 * Update translations.

16 years ago * Restructure HTML, add a link to the main EE CSS and add some other CSS (Brenda).
Matthijs Kooijman [Fri, 8 Feb 2008 21:54:00 +0000 (22:54 +0100)]
 * Restructure HTML, add a link to the main EE CSS and add some other CSS (Brenda).

16 years ago * Add some helpful text above the add influence form.
Matthijs Kooijman [Fri, 8 Feb 2008 21:52:25 +0000 (22:52 +0100)]
 * Add some helpful text above the add influence form.

16 years ago * Change some whitespace.
Matthijs Kooijman [Fri, 8 Feb 2008 21:51:59 +0000 (22:51 +0100)]
 * Change some whitespace.

16 years ago * Add wrappers around the generic views, so we can add the @login_required decorator.
Matthijs Kooijman [Fri, 8 Feb 2008 21:44:50 +0000 (22:44 +0100)]
 * Add wrappers around the generic views, so we can add the @login_required decorator.

16 years ago * Make the verbose name of Influence.contact more verbose.
Matthijs Kooijman [Fri, 8 Feb 2008 21:26:18 +0000 (22:26 +0100)]
 * Make the verbose name of Influence.contact more verbose.

16 years ago * Add a message to the login screen.
Matthijs Kooijman [Fri, 8 Feb 2008 20:52:48 +0000 (21:52 +0100)]
 * Add a message to the login screen.

16 years ago * Remove the absolute path from the import script.
Matthijs Kooijman [Fri, 8 Feb 2008 20:50:09 +0000 (21:50 +0100)]
 * Remove the absolute path from the import script.