Commit Graph

496 Commits

Author SHA1 Message Date
Max Goodman
5e03b19ce8 Don't remove inis in make clean_static 2011-06-20 12:12:23 -07:00
Max Goodman
55617ffc8f Remove static url hash middleware since we now generate named symlinks. 2011-06-20 12:12:23 -07:00
Max Goodman
beb970fd56 Switch to symlinks for unique static filenames.
Disable static hash middleware, since it is no longer necessary.
2011-06-20 12:12:23 -07:00
Max Goodman
02ea20d23f Load the stylesheet before javascript to ensure parallel downloading. 2011-06-20 12:12:23 -07:00
Max Goodman
1733261a52 Add unique hashed filename json mapping file for serving static files.
When make is run, unique filenames are generated for JavaScript and CSS
files in /public/static/. Filenames are generated by appending a 64 bit
truncated SHA1 hash in websafe base64 format before the extension. The
filename mapping is stored in /public/static/names.json. Unique
filenames are now inserted by the static() template helper. Hashed
filenames can be served by Pylons, and hashed names are checked against
the names.json mapping when requested.
2011-06-20 12:12:23 -07:00
Max Goodman
e1f5b3b5ed Add jQuery to static files since it's no longer handled by the Makefile. 2011-06-20 12:12:23 -07:00
Max Goodman
555b5c17e8 Use python2.6 in the Makefile. 2011-06-20 12:12:23 -07:00
Max Goodman
542e22ffa8 New JS compilation, localization, and module system.
Add Google Closure Compiler to contribs for JS compilation.
2011-06-20 12:12:23 -07:00
Max Goodman
9a88e97b22 Add config-free "standalone" option to the 'paster run' command. 2011-06-20 12:11:27 -07:00
Logan Hanks
6c7a5bc18b add vim swap files to .gitignore 2011-06-17 12:10:37 -07:00
Logan Hanks
2734d5800c Add xhtml entity definitions via minimal DTD before parsing markdown output. Fixes issue #38. 2011-06-16 15:18:11 -07:00
Brian Simpson
8995bb1650 Deleting accounts now works in languages other than English 2011-06-16 14:21:06 -07:00
Neil Williams
2cf4b0b5d7 Really don't use comment page cache for moderators 2011-06-09 11:39:37 -07:00
Max Goodman
c90729aa15 Fix ordering of friend user attr flag. 2011-06-08 17:04:51 -07:00
Neil Williams
06913a25a7 Don't die if votes are missing some information. 2011-06-08 17:04:49 -07:00
Max Goodman
12db75ee85 Remove dead code. 2011-06-06 12:36:50 -07:00
Max Goodman
95865f8772 Disable template reload checks upon template rendering. 2011-06-06 12:36:40 -07:00
Neil Williams
b15470271c Update embed.ly domain list. 2011-06-06 12:36:32 -07:00
Neil Williams
46aad179b2 __eq__ must be paired with __ne__ for sanity. 2011-06-06 12:36:13 -07:00
Neil Williams
b14ab0d422 Add Subreddit.__eq__ to fix == comparisons.
This fixes several bugs that were using the default (identity
comparison) to check if two subreddits were the same. Sometimes
the two subreddit objects referred to the same subreddit but
weren't the same instance.

Fixes:
https://github.com/reddit/reddit/issues/42
https://github.com/reddit/reddit/issues/47
2011-06-03 10:18:20 -07:00
Max Goodman
9194116766 Update the footer link to the reddit source code. 2011-06-02 12:31:38 -07:00
Max Goodman
279a0dbc74 Fix comments panel toggling logic. 2011-06-02 12:27:16 -07:00
Max Goodman
bb7e1b6921 Add toolbar comments panel as an external frame so hide/show requests work. 2011-06-02 12:27:16 -07:00
Max Goodman
8b0e4c07af Remove dead code that was causing a JS exception. 2011-06-02 12:27:16 -07:00
Max Goodman
f99959c7eb Skip firing a tracking pixel if we're on a secure domain. 2011-06-01 13:57:36 -07:00
Max Goodman
c6f0b6ffa8 Display powered_by_reddit logo in https if on a secure domain. 2011-06-01 13:57:36 -07:00
Max Goodman
20069e7c93 Use https urls for s3 hosted header images when we're on a secure domain. 2011-06-01 13:57:36 -07:00
Max Goodman
d89e79ad66 Include the host ports in the secure_domains set. 2011-06-01 13:57:35 -07:00
Max Goodman
6a7ebd7e7b Load jQuery from a secure source on secure domains. 2011-06-01 13:57:31 -07:00
Neil Williams
2ed20d4b1a Display removed selftext as "[deleted]".
When a self-post is manually removed (via the "remove" button)
by an admin or a moderator, the text of that self post will be
displayed as "[deleted]" unless the viewer is an admin, mod of
the subreddit the post is in, or the author of the content.
2011-06-01 13:39:30 -07:00
Max Goodman
8c56f89663 Load unauthed button requests via JSONP from buttons.reddit.com. 2011-05-27 16:01:14 -07:00
Max Goodman
d1ae1650bf Pass buttons.reddit.com requests through the subreddit redirect logic. 2011-05-27 16:01:13 -07:00
Max Goodman
6087bddfe5 Move buttons to jQuery 1.6.1. 2011-05-27 16:01:13 -07:00
Max Goodman
2d6e16014f Point buttons to compressed assets. Clean up headers. 2011-05-27 16:01:13 -07:00
Max Goodman
99b2839032 Add site speed tracking to Google Analytics. 2011-05-27 16:01:13 -07:00
Max Goodman
77b7cfac36 Add loggedin/logged out differentiation to Google Analytics. 2011-05-27 16:01:13 -07:00
Neil Williams
a34347914b code.reddit.com -> github.com/reddit 2011-05-25 10:40:36 -07:00
Neil Williams
3e4df6cb10 Merge pull request #77 from andre-d/bugfix2
Fix #62
2011-05-23 11:10:57 -07:00
Andre D
d0b285e9fd Fixed https://github.com/reddit/reddit/issues/55 2011-05-20 15:52:11 -07:00
Neil Williams
e992c16d99 Fix incorrect use of abort in submit perms check 2011-05-20 15:05:00 -07:00
Neil Williams
cf00e28619 Better handle invalid IndexTank queries. 2011-05-20 15:04:27 -07:00
Andre d
cbb217cbc5 Fixed https://github.com/reddit/reddit/issues/62 2011-05-20 15:36:20 -04:00
Andre D
5a33ecca90 Fixed searching for a url without being logged in 2011-05-19 15:10:13 -07:00
Max Goodman
319dbc036a Properly handle a nonexistent shortlink. 2011-05-18 12:55:26 -07:00
Max Goodman
d7d608e240 Fix the type of the fetch_links links parameter.
Since updating jQuery, the library has new behavior for deep serializing
objects and arrays. This old code accidentally passed in an array, which
triggered the new serialization code. The old code was taking advantage
of the older shallow jQuery parameter serialization, which calls
toString(), combined with the fact that singleton Arrays in JS stringify
into their first item stringified.
2011-05-18 12:55:26 -07:00
Max Goodman
0506b124c5 Fix /submit captcha 404 on reddit mobile. 2011-05-17 17:42:01 -07:00
Max Goodman
f685046d13 Update mobile to jQuery 1.6.1. 2011-05-17 16:13:19 -07:00
Max Goodman
81c7705556 Merge pull request #67 from jsocol/master
Add protocol to <link rel="shorturl">
2011-05-17 15:54:09 -07:00
James Socol
fb7fedee2e Add protocol to shorturl header link. 2011-05-17 18:36:49 -04:00
Max Goodman
18cdeee38d Add is_gold parameter to user JSON. 2011-05-17 15:17:45 -07:00