* 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
* 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
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.
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.
Questions section require wiki documents created:
* Desktop home for mobile - Common Questions
* Mobile home for mobile - Common Questions
[bug 631622, bug 631624]
* 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.
* 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.
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.
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()