Граф коммитов

907 Коммитов

Автор SHA1 Сообщение Дата
Paul Craciunoiu 9ae7975462 AAQ Mobile tests. 2011-02-23 16:11:51 -08:00
Paul Craciunoiu d48d3ce683 Email confirmation template turns mobile. 2011-02-23 14:33:48 -08:00
Ricky Rosario d8693fa582 Don't show selections/change when we are already showing the form 2011-02-23 14:33:48 -08:00
Paul Craciunoiu c0809df138 * Clean up some unnecessary CSS
* Pass 'host' to aaq_search_form.
* Fix no-JS 'Go' in footer.
2011-02-23 14:33:48 -08:00
Ricky Rosario 1c459fb7d2 Prettified desktop AAQ with icons.
* Fixed home page to use product logo sprite
* Need the wiki_syntax styles to be last so they don't get overriden easily
* Tweak so only div.selections renders when it is needed
2011-02-23 14:33:48 -08:00
Paul Craciunoiu 21ef2fc630 [bug 635912] Mobile login/registration, styling of most things... TODO below:
* Confirmation email
* Post-AAQ page for already active users is the DESKTOP question, what to do??
* First-step icons
* OS/Fxver/plugins
* (optional?) One-line Ask bar (like search box, submit label is "Ask")
* mobile tests
2011-02-23 14:33:48 -08:00
Ricky Rosario 47c4433bd6 Added AAQ mobile template.
* Done with mobile/new_question.html general structure.
* TODO: lots of CSS, new_question_login.html, confirm_email.html
2011-02-23 14:33:47 -08:00
Paul Craciunoiu 29f9bd8d6e [bug 635997] Add macros for login and register forms and use them. 2011-02-23 14:33:47 -08:00
James Socol 3c8619d11e Make test_translate_rejected_parent less fragile [bug 634461]
Still asserts the existence of the notice, including both the
DOM element and the text, but does not insist that the text be
in any particular language.
2011-02-22 11:01:42 -05:00
Paul Craciunoiu c697b73b4f [bug 602057] Delete user upon registration if sending email fails. 2011-02-18 12:03:32 -08:00
Paul Craciunoiu c362bf4fbf [bug 626638] Catch SMTP exception in password reset form. 2011-02-17 18:02:54 -08:00
Paul Craciunoiu 211b95e048 [bug 625737, 624755] Catch SMTPExceptions during registration and resendconfirmation and let the user know. 2011-02-17 16:04:52 -08:00
James Socol 86c930b512 Admin view with the current schema version. [bug 635043] 2011-02-17 18:36:47 -05:00
Fred Wenzel 4aeb3c4f58 Fixed awkward linebreak. 2011-02-17 15:26:22 -08:00
Fred Wenzel 8dac105b96 Remove tweets button for Army of Awesome. Bug 624464. 2011-02-17 15:16:28 -08:00
Paul Craciunoiu 9cf8a1e050 Video does not need to have a set width/height. Only flash fallback does. 2011-02-17 13:11:10 -08:00
Paul Craciunoiu 3d21eb80c3 [bug 632415] Liberate syntax styling to wiki_syntax.css and style Table of Contents.
Also clean up unnecessary call in wiki.views.py [bug 632165]
And style document properly: #wiki-doc and #doc-content stuff.
Fix showfor JS to use <ul> properly.
2011-02-17 13:11:09 -08:00
Ricky Rosario b98f42048d Created document template for mobile, liberated article voting js for
reuse. [bug 632415]
2011-02-17 13:11:09 -08:00
Erik Rose 2193a653dd Add some docstrings to Dashboard readouts. 2011-02-17 13:09:45 -08:00
Erik Rose a46c5dadb5 [bug 626143] Make "123 of 456" localizable on L10n Dashboard.
Change the markup so it's less tricky for localizers.
2011-02-17 13:09:33 -08:00
James Socol 804c7993ec Remove EventWatch model and table. [bug 632184] 2011-02-16 15:08:28 -05:00
James Socol 3c3c1a37bc Accept non-ASCII titles in notification emails. [bug 634608] 2011-02-16 12:11:55 -05:00
Ricky Rosario cd6e88ebe1 Implemented search results for mobile. [bug 632413] 2011-02-15 16:33:40 -05:00
Erik Rose a2d94c8040 [bug 633628] Add admin UIs for Watch and WatchFilter for QA.
Also add a unicode representation for WatchFilters so they show up in the admin UI informatively.
2011-02-14 12:39:01 -08:00
Ricky Rosario a1fd7ef506 Implemented mobile templates for desktop and mobile landing pages. Common
Questions section require wiki documents created:
* Desktop home for mobile - Common Questions
* Mobile home for mobile - Common Questions

[bug 631622, bug 631624]
2011-02-11 17:23:32 -05:00
James Socol 46ef0388dc Fix KBforums. 2011-02-11 14:20:54 -05:00
James Socol 4ba117b8ed Fix the rookie mistake. [bug 633037] 2011-02-10 18:52:49 -05:00
Paul Craciunoiu 904deaaab6 [bug 624427] Avoid IOError due to race between image deletion and thumbnail generation. 2011-02-10 13:06:09 -08:00
Ricky Rosario dfaa7c6967 Don't show reply button if question is locked. [bug 633015] 2011-02-10 13:16:16 -05:00
James Socol afd32a70e1 Answers should use their own created date. [bug 633011] 2011-02-10 12:51:18 -05:00
Erik Rose b1b4935acd [bug 623961] Switch to SQL-based migrations for notifications. 2011-02-09 17:06:56 -08:00
Ricky Rosario 7ed3ab799c Fixed style of subscribe to changes button. [bug 632849] 2011-02-09 15:05:49 -05:00
Paul Craciunoiu 201474c335 [bug 631618] Base mobile template with header and footer. Footer could potentially be shared with AMO.
Also update to a new revision from django-moz-header.
2011-02-09 11:28:22 -08:00
James Socol fe2f9981a8 Temporary admin for EventWatches. 2011-02-08 13:43:45 -05:00
James Socol fe725af920 migrate_watches management command [bug 623961] 2011-02-08 13:43:45 -05:00
Ricky Rosario 95d65a0f6a Enabled mobile views and templates. Thanks to jbalogh's django-mobility. [bug 631617] 2011-02-08 12:15:57 -05:00
Erik Rose c28c1aa858 [bug 630116] Compare email addresses case-insensitively when de-duping. 2011-02-07 19:02:20 -08:00
Paul Craciunoiu 24a13e54fd [bug 623982, bug 629520] Anonymous watches. Delete watch when delivery fails.
* Add an is_active column.
* Add stub implementation for confirmation email.
* Update .notify() to send a confirmation email and raise an ActivationRequestFailed exception if the email message fails to send.
* Add function Event._activation_email, which receives a watch and an email and returns an EmailMessage.
* Make questions anonymous watches work, add extra views for confirming/unsubscribing from watches.
* Add Event.get_activation_url() for use in email templates.
* Add Event.get_watch_description() for events to describe their watches in string form. This comes in handy when sending out emails, to explain why the receiver is getting this.
* Catch SMTPRecipientsRefused exception and show message about it.
* Update wiki tests.
2011-02-07 17:15:46 -08:00
Erik Rose fc33d57eeb [bug 623960] Delete dead code from old notification system.
Leave EventWatch there for the moment so migrations can use it.
2011-02-07 14:29:21 -08:00
Erik Rose 598af656f1 Add NotificationsMixin to model classes that can be watched. Rely on Django cascading deletes to remove watches to deleted objects. 2011-02-07 14:24:15 -08:00
Erik Rose dd08a1a845 [bug 628752] Port wiki app to new notification system. 2011-02-07 14:24:15 -08:00
Paul Craciunoiu 7a91f72626 [bug 627451] Claim anonymous watches upon user activation.
Add a task and fire it off on user activation, i.e. after we know email is valid.
2011-02-07 13:40:46 -08:00
Ricky Rosario dc4091b07a Added `link-btn` CSS class for buttons that are styled to look like links. Fixes bug 632041. 2011-02-07 12:16:37 -05:00
James Socol 4b247e21d6 Make test_generate_thumbnail_twice less brittle. [bug 628367] 2011-02-04 18:16:51 -05:00
Paul Craciunoiu 3b6bcc13b4 [bug 628751] Question ported to new notifications API.
* QuestionEvent abstraction for common __init__() stuff
* QuestionReplyEvent, QuestionSolvedEvent for new answers/new solutions.
* WatchQuestionForm tests, also don't allow logged-in users to override what email the notification goes to. (I.e. improve WatchQuestionForm validation)
* Update templates to reflect new notification.
2011-02-04 12:37:22 -08:00
Ricky Rosario 58817ce195 Re-themed the questions pages. [bug 623904] 2011-02-04 13:35:31 -05:00
James Socol a340b2d840 Add L10n comment to template recursion. [bug 624416] 2011-02-03 18:28:42 -05:00
James Socol 5670dc779c Link to media upload from gallery pages. [bug 629410] 2011-02-03 18:28:41 -05:00
James Socol 27839242ad Edit a localized document based on a previous revision [bug 624416]
When you edit a localized document 'based on' a previous revision of the
*localized* document (i.e. not of the English doc) we were setting the
'based_on' value to a revision of the localized doc, not the English doc.

Now we set the 'based_on' revision to the correct English document but
still prefill the form with the revision of the localized document you're
editing.

Whew.

STR:

* Go to any localized article's history.
* Pick any revision and 'edit based on this revision'.
* Attempt to submit.

Without this patch, you'll see an error. With it, everything should work.

Also worth noting that the new test fails on master but passes here.
2011-02-02 19:01:47 -05:00
Paul Craciunoiu 3e9b5cdff2 [bug 628749] KBForums notifications ported to new API.
Mostly copied from forums notifications, including tests.

* Refactor tests, add a test_views.py, like in forums app.
* Add visual notification as in forums.
* Add an attrs_eq to sumo.utils for checking email outputs.
* Rename forums/kbforums events for clarity, now they are NewPostEvent, NewThreadEvent.
* Fix some tests that weren't failing on this branch but were failing on master, by mock patching Site.objects.get_current()
2011-02-02 13:42:48 -08:00