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

1368 Коммитов

Автор SHA1 Сообщение Дата
James Socol a1c8afeecf Try to pick the best language [bug 639818]
Given Accept-Language: en-gb, en;q=0.8, fr-fr;q=0.6, es;q=0.2, don't pick 'es'.
2011-03-08 13:12:56 -05:00
James Socol 6ff3e25730 Use 301 instead of 302 for locale-based redirects.
Per justdave's report, sending 301 may cause browsers to cache the redirect
stopping future changes to Accept-Language from having an effect.
2011-03-08 13:12:18 -05:00
James Socol b0cb526cc9 Accept mixed case in Accept-Language [bug 621389]
* See bug 638787
2011-03-08 13:12:17 -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
Paul Craciunoiu a48fa43611 Dashboard of dashboards UI. Skeleton for review dashboard. [bug 638470] 2011-03-08 18:48:08 +02:00
Ricky Rosario b029d9c698 Added special cases for SHOWFOR.
* Show android/m4 when desktop browser is selected.
* Show win/fx4 when mobile browser is selected.

[Warning: this is pretty ugly and hard to maintain.]
[bug 638127]
2011-03-07 16:09:31 -05:00
Ricky Rosario 014be0ce9f Added landing pages for Sync and Firefox Home. Includes some refactorings for DRYness. [bug 637334, bug 607988] 2011-03-04 17:55:37 -05:00
Erik Rose 7da71ec366 Merge [bug 634646]. 2011-03-04 13:07:28 -08:00
Erik Rose 8690b469eb Color-code the %-of-top-20-translated graph. 2011-03-04 11:49:48 -08:00
Erik Rose 6c5aac2f30 Add badges to status column of Most Visited L10n Dash.
These make it faster to pick out and prioritize the untranslated articles.
2011-03-04 11:49:48 -08:00
Erik Rose aae620f00c When an untranslated article appears in the Most Visited L10n readout, show Translation Needed in the status column.
Link the new text to the translate view.
2011-03-04 11:49:32 -08:00
Erik Rose 4a64b1d6c2 Include untranslated articles in the Most Visited L10n readout. Show top 20 most visited articles rather than top 10. 2011-03-04 11:49:02 -08:00
James Socol 87b1d38d7a Add content types and permissions to schema.sql. [bug 638471] 2011-03-04 11:33:00 -05:00
Ricky Rosario 38f9adfa93 Made warning and note style apply to home page. [bug 638575]
* To have the warning appear above the division we have to rethink how the page is structured. Perhaps we can just make the content be only one wiki document that is composed of the other two and the warning could be added there?
2011-03-04 11:28:44 -05:00
Ricky Rosario b4327f4702 Fixed some styling issues.
* Overlap of "...your question has been posted..." message
* Style of the question notifications pages for anonymous uesrs
[bug 637918]
2011-03-04 11:24:19 -05:00
Ricky Rosario 38c9673fa3 Moved landing pages to their own app. [bug 638469] 2011-03-04 09:39:17 -05:00
James Socol c886c6a930 Add a background to #related-articles. [bug 634944] 2011-03-03 16:26:27 -05:00
James Socol 92c5252424 Fix migration numbers. 2011-03-03 16:22:32 -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
James Socol 78df39ade8 Create a permission to delete attachments to answers. [bug 600176]
Adds the default permissions for upload.imageattachment and switches the
views to check for the correct permission. Also ensures that del_image_async
returns JSON and improves test coverage of that view.
2011-03-03 14:54:34 -05:00
Ricky Rosario 69926c59cd Delete redirects when the document they redirect to is deleted. Happens in rebuild_kb() task. [bug 635183] 2011-03-03 11:06:45 -05:00
Erik Rose d33a7942f3 [bug 626799] Update the question reply email. They're now slightly different ("personalized") for each user. Send a different mail to the original asker.
In test_answer_notification, change the person who posts the reply to someone other than the asker so an email gets sent to the asker so we can test it.
2011-03-02 15:24:38 -08:00
Erik Rose 7ae1cbbabe [bug 626799] Update the question solution email. 2011-03-02 15:19:06 -08:00
Erik Rose 65e1c8676b Make EmailUser.is_anonymous() return True, and use it rather than isinstance() tests to determine user anonymity.
I have no idea why we had it returning False before.
2011-03-02 15:19:06 -08:00
Erik Rose cc0335ef9f [bug 637836] Delete orphaned reply tweets so adding foreign key contraint doesn't fail. 2011-03-02 14:58:46 -08:00
Ricky Rosario 3ebda3ca48 Pass CSRF Token in XHR headers 2011-03-02 17:41:43 -05:00
Paul Craciunoiu fa13814389 [bug 634345] Upgrade Django to 1.2.5, fix backwards incompatible changes, and flag some AJAX POSTs for update.
* Update to vendor lib required for django and django-taggit.
* Add a note on the auto_delete_files decorator explaining why it's necessary.
2011-03-02 17:41:43 -05:00
James Socol 1d20fa7270 Show the answer and solution counts on questions. [bug 635747]
Put the number of solutions, and number of answers, below the avatar and name
of the person answering a question.

Not the prettiest thing ever but it does the job until we can get some love
and time from UX.
2011-03-02 15:33:48 -05:00
Ricky Rosario e968756b64 Added option for using a different email template/subject during registration. Using the option for AAQ. [bug 627914] 2011-03-02 14:50:20 -05:00
Paul Craciunoiu fba2179c66 [bug 630686] Re-open reply modal after signing in to tweet.
This was broken when we switched from using JS ints to strings for twitter IDs.
2011-03-02 11:38:11 -08:00
Paul Craciunoiu fef7802c53 Clean up customercare.js using jshint.com 2011-03-02 11:23:48 -08:00
James Socol f419f91127 Update build script for hudson slave. 2011-03-02 10:05:13 -05:00
James Socol 0ff64be422 Push.txt. 2011-03-01 18:54:18 -05:00
James Socol 217cc7ad68 Update build.sh to use vendor as a submodule. 2011-03-01 18:36:52 -05:00
James Socol 2ebcd976b8 Remove unused files. Vendor lib is the only way. 2011-03-01 18:10:48 -05:00
James Socol 80f1ca98d4 Make the vendor lib a submodule. [bug 637313] 2011-03-01 18:10:47 -05:00
Ricky Rosario 7ac8d46d2a Fixed tweet text overflow to underneath the avatar. [bug 629110] 2011-03-01 16:32:29 -05:00
Paul Craciunoiu e995a83ccb [bug 637522] 'Remove' tweet is not well positioned in [de]. 2011-02-28 17:41:22 -08:00
Paul Craciunoiu 2cc7a3af74 [bug 629773] Localize 'ago' in AoA tweet. 2011-02-28 17:41:17 -08:00
Erik Rose 2d0bbc6552 Add missing migration from 602144100. 2011-02-28 17:23:30 -08:00
Erik Rose 674e6ed48f Switch _get_tweets() to the uncached manager so filter changes take the user's replies into account immediately. 2011-02-28 16:52:08 -08:00
Erik Rose 0dec600a7d [bug 624472] Add filters to Army of Awesome landing page.
* Move the "busy" spinner outside the Refresh button (but still close enough to catch the eye after clicking Refresh) so we can re-use it for Filter menu changes.
* Grey out hidden tweets when they show up in using the All filter.
2011-02-28 16:28:58 -08:00
Erik Rose 602144100c Massage customercare models to make tweet replies more traversible.
Tweet now uses tweet_id as its pkey. The surrogate key wasn't really useful, and this makes it simple to turn reply_to into a Django ForeignKey so we can traverse it for the Answered and Unanswered filters. Cascading deletes are okay for replies; it doesn't make sense (UI or otherwise) to hang onto replies to tweets we no longer have.
2011-02-28 16:28:57 -08:00
Ricky Rosario 02b6b20d20 Added inline SVG fallback for mobile webkit. [bug 633226] 2011-02-28 18:44:46 -05:00
Paul Craciunoiu bfec4ddf6b Fix table of contents - looks like some CSS changes made it need to be more specific. 2011-02-28 14:21:37 -08: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
Paul Craciunoiu 5df7e82d56 [bug 636316] AAQ search does not include wiki documents if no categories are excluded.
Solution: ignore exclude filter if no values are excluded. Sphinx seems to eagerly exclude *everything*, the opposite of what we want.
2011-02-28 10:57:50 -08:00
Ricky Rosario a3c6751518 Apply placeholder text fallback to all inputs with placeholder attribute.
[bug 634717]
2011-02-28 12:31:41 -05:00