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

207 Коммитов

Автор SHA1 Сообщение Дата
James Socol 20818db279 Make 'Reply' links in the forums quote the post. [bug 634600] 2011-04-01 11:33:59 -04:00
Erik Rose d98e4d6728 Move notifications app into its own repo, and rename it "tidings". 2011-03-31 11:16:22 -07:00
Erik Rose 23580bb06a [bug 644396] Decouple notifications app from SUMO.
* Make several SUMO-centric substitutions (of reverse(), ModelBase, etc.) customizable through settings.
* Don't freak out if there's no `uncached` manager.
2011-03-24 10:57:50 -07:00
Paul Craciunoiu 067c97bc7c [bug 638472] Announcements app, used in review/questions dashboards.
* Announcement model + migration.
* Model utils: get_for_group, get_side_wide, is_visible
* Site-wide announcements are in no group.
* Minimally formatted and styled for review/question dashboards.
2011-03-17 19:19:49 +02:00
Erik Rose a3cae9f32f [bug 640309] Stop swallowing celery exceptions during tests. 2011-03-10 09:15:35 -08:00
James Socol dabcad0cbe Use AdminPlus instead of custom admin URL hacks. 2011-03-09 11:18:47 -05:00
Ricky Rosario 1b03a4de54 Integrated QUnit via django-qunit. Let the js testing begin! [bug 638856] 2011-03-08 17:24:32 -05:00
James Socol c9b96adaaa Install Waffle 0.2. [bug 638306] 2011-03-08 14:05:29 -05:00
James Socol a33e4b36b7 Add 'activity' app and Activity model [bug 639526]
* Adds a model representing an activity stream object.
* Includes a mixin to add the bi-directional generic relation.
2011-03-08 11:49:37 -05:00
Ricky Rosario 38c9673fa3 Moved landing pages to their own app. [bug 638469] 2011-03-04 09:39:17 -05:00
James Socol 78317b2da3 Create a PostCrash API for Socorro. [bug 631341]
The API is available at /postcrash. There is one required GET parameter: s.

A request without an `s` parameter is a 400.
A request with an `s` parameter that does not return a result is a 404.
A request with an `s` parameter that returns a result is a 200. (Or 304.)

All responses are cached for 24 hours and have Content-type: text/plain.

If an article matching a crash signature is found, its URL isreturned without
a locale. This will cause SUMO to use our Accept-Language localization
fallback when a user visits the URL.
2011-03-03 15:59:52 -05:00
James Socol ebbd99c8c5 Add a Signature model for postcrash. [bug 631341] 2011-03-03 15:59:51 -05:00
Ricky Rosario 3ebda3ca48 Pass CSRF Token in XHR headers 2011-03-02 17:41:43 -05:00
Ricky Rosario 02b6b20d20 Added inline SVG fallback for mobile webkit. [bug 633226] 2011-02-28 18:44:46 -05:00
Ricky Rosario fd151585d7 Fixed bundling issue. Use unminimized modernizr, add some missing semicolons,...
[bug 637433]
2011-02-28 16:40:59 -05:00
Paul Craciunoiu 7bbdcc770c [bug 633003] Fallback if Django's jsi18n fails to load, e.g. if there are gettext errors in locales. 2011-02-28 11:51:23 -08:00
Ricky Rosario 2eaed51032 Upgraded to modernizr 1.7. [bug 636718] 2011-02-25 12:07:03 -05:00
Ricky Rosario 50dc64d687 Broke out prepopulation of system info into aaq.js for use on both desktop and mobile site 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
James Socol 841d543cb0 Style buttons in IE. [bug 633276] 2011-02-22 18:20:40 -05:00
Fred Wenzel 8dac105b96 Remove tweets button for Army of Awesome. Bug 624464. 2011-02-17 15:16:28 -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
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
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
Paul Craciunoiu 70af103d9c [bug 631625] Liberate ShowFor js from wiki.js 2011-02-08 10:08:53 -08: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
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
Ricky Rosario c9b106aec9 * Created kbox type and jquery plugin.
* Used it to replace our pop-in and fixed-modal code in wiki and questions.
* Replace jquery.ui.dialog in Army of Awesome
2011-02-02 09:43:32 -05:00
James Socol 44c77f4e71 Inproduct redirect view. [bug 625387] 2011-01-31 11:24:13 -05:00
James Socol a53fab2b35 Add models for inproduct redirects [bug 625386] 2011-01-31 11:19:16 -05:00
Ricky Rosario 3607918fea Updated Army of Awesome to new sidebar and subheader. (Pending feedback from stakeholders) [bug 625365]
* Also made 1-2-3 bubbles localizable.
2011-01-24 17:25:51 -05:00
Paul Craciunoiu 8f57f629fb [bug 623341] Localized canned responses.
Also add and use LocaleField. [bug 625937]
2011-01-21 14:55:43 -08:00
Ricky Rosario 54b713634b Fixes advanced search UI and js errors elsewhere. [bug 627564] 2011-01-21 15:20:17 -05:00
James Socol b7fb1dab63 You can't extract strings from settings.py. [bug 614305] 2011-01-15 12:24:47 -05:00
James Socol 4899fc6e03 Django's CSRF processor is fine as of 1.2.3. [bug 625181] 2011-01-14 15:19:00 -05:00
James Socol e0d2ef56ec Add /services/monitor to track the site infrastructure. [bug 604083]
Both human-readable and machine-readable:
* Returns 200 OK if everything looks OK.
* Returns 500 ISE if anything is wrong.

Tracks:
* Memcache servers.
* Library installations.
* File system permissions.

TODO:
* Ping Celery.
2011-01-13 12:32:42 -05:00
Paul Craciunoiu a56e857b35 [bug 584776] Lazy load jqueryui JS.
* Include generic function to lazy load scripts and stylesheets.
* Add TODO for removing dependency on jqueryui CSS.

TODO: (future, if needed)
Lazy load jquery ui everywhere, and use a callback to resume running JS code that depends on it. (AMO is already doing this.)
2011-01-11 18:04:08 -08:00
Paul Craciunoiu aace2413c6 [bug 584776] Liberate jqueryui and load it separately. 2011-01-11 18:04:08 -08:00
Erik Rose 72adb1f051 Uncomment WEBTRENDS_* settings so tests pass even if they aren't defined in settings_local.py. 2011-01-11 17:43:44 -08:00
Erik Rose 8d2863081c [bug 610527] Implement Most Recent/Most Viewed switching on L10n and Contributor Dashboards. 2011-01-11 17:08:34 -08:00
Erik Rose a814221dea [bug 610527] Implement very tolerant fetching and storing of WebTrends stats. Expose a cron job for refreshing them. Also...
* Valign table headers to the bottom and table data to the middle.
* Add a test for number() Jinja function.
2011-01-11 17:08:34 -08:00
James Socol c421b4677a Add Burmese to locales [bug 621890] 2011-01-10 14:46:50 -05:00
Paul Craciunoiu b2bc6de1f6 [bug 621737] Use AMO's RemoveSlashMiddleware and update all our URLs to get rid of trailing slashes. 2011-01-04 14:48:23 -08:00
James Socol 6113cda85e Serve robots.txt from Django. [bug 616147]
Since the only content we try to disallow is forums, this lists all locales
instead of /*/forums, since wildcards are not part of the standard, and it
was easy.
2011-01-03 13:33:02 -05:00
Paul Craciunoiu 118c6d3ca1 [bug 616561] Remove unused settings. 2010-12-27 14:16:13 -08:00
Paul Craciunoiu 5f41630cb0 [bug 617096] Better public emails. 2010-12-27 12:19:26 -08:00
Paul Craciunoiu cdd18718f8 [bug 596116] Rename uploaded files to something in ascii.
Define our own storage system and use it throughout.
2010-12-20 15:00:06 -08:00
James Socol 77760abdc1 Push Celery logs to syslog, for real this time.
On a personal note: VICTORY.
2010-12-10 16:09:28 -05:00
Paul Craciunoiu 854f009b22 [615818] Upgrade modernizr to 1.6 2010-12-08 15:53:15 -08:00