97 Commits

Author SHA1 Message Date
Matt Lee
01ce8b5810 Expando: Use sprites for new expando icons 2016-10-07 17:48:11 -04:00
Matt Lee
749ee7c22e Expando: Update icons under feature flag 2016-10-07 17:42:42 -04:00
Matt Lee
ba39e8fdbb SubredditRules: Force modtools.less to rebuild.
Items in LESS_STYLESHEETS do not automatically rebuild when imported files
change. Items in SPRITED_STYLESHEETS automatically build when any other less
file updates, so that works for now.  Stylesheets run through the spriter
will throw an error if they don't actually contain any sprites, so I added a
dummy sprite rule to modtools.less.
2016-01-25 13:17:24 -08:00
Matt Lee
f062de4f0c ModTools: Add base templates for new modtools pages.
Adds a new js module and css file for mod tools, and a new page that
includes them.  This is so that, moving forward, we don’t have to cram
everything into the reddit.js package.
2016-01-25 12:58:02 -08:00
Neil Williams
6e60419984 Add early baseplate integration
This adds simple integration with the new baseplate library so we can
use thrift clients. Further down the line we can hopefully replace
config parsing and metrics with the baseplate equivalents.
2015-12-16 16:22:07 -08:00
Brian Simpson
c902b60293 js: Don't use paster to build.
It's unnecessary to setup the Pylons app context for building.
2015-09-24 17:34:56 -04:00
Brian Simpson
40067773b1 generated_strings: Don't require the app and cleanup rand_strings.
All that happens in `make i18n` is creating a .py file with
a bunch of automated messages that are marked for translation. Also
simplify rand_strings (now get_funny_translated_string).
2015-09-24 17:34:41 -04:00
Matt Lee
78326b452d markdown: Remove feature flags and import markdown.less directly.
Conflicts:
	r2/r2/public/static/css/old-markdown.less
2015-03-03 15:59:54 -08:00
David Wick
47edd7e3d2 Comment embeds: add new framable template 2015-02-23 17:37:58 -08:00
Neil Williams
af09fa8dee Update license headers to 2015.
The highlight of each year for me.
2015-01-08 13:35:03 -08:00
Matt Lee
49f0c7900a Feature-flagged new markdown styles. 2014-12-02 11:04:31 -08:00
Matt Lee
7863ec737d Add markdown.less 2014-12-02 11:04:30 -08:00
Neil Williams
da249e8459 static build: Put nymph output in css/ subdirectory.
This keeps nymphified and unnymphified LESS inputs in the same location
so that "../whatever.png" references work with uncompressedJS true or
false and we can use the LESS `data-uri` function.
2014-10-09 14:25:05 -07:00
Jason Harvey
68857e1a7d Remove gzipping of static files. 2014-07-16 13:42:05 -08:00
John Eckhart
0c3288baa3 Remove reddit-ie6-hax.css and reddit-ie7-hax.css from the Makefile.
The source files were removed.
2014-07-09 12:39:05 -07:00
Matt Lee
4ad980fc43 Move advertising page from core to about plugin. 2014-06-20 14:19:39 -07:00
Neil Williams
90cfcaaecc Update license headers to 2014.
Ok, now I'm getting some angst in my commit messages like my
predecessors had.  I understand now.  It's a terrible burden.  Why must
the calendar progress?  Why must numbers increment?  The world is
forever turning.

The future is here.

It is 2014.
2014-05-02 16:26:31 -04:00
Matt Lee
fdc19edc17 Migrate advertising page styles to LESS. 2014-04-25 15:34:05 -07:00
Brian Simpson
130cc6bee3 Makefile: fix typo in clean_names. 2014-04-14 13:09:53 -04:00
Brian Simpson
44108dd8b1 Delete RTL-specific styles. 2014-04-14 13:09:48 -04:00
Chad Birch
3458468355 Gold: move about/partners to plugin 2013-11-06 13:03:34 -08:00
Neil Williams
c20db7e11d Use cythonize to manage translation of .pyx -> .c.
This removes the need to run `make pyx` before running setup.py on an
initial install which had stopped working due to various imports needed
for the makefile. Additionally, cythonize is capable of tracking
dependencies the cython files have, such as external headers or other
cython files.

I had to upgrade setuptools to distribute to get v0.6.16 which is the
minimum required to properly use `cythonize` due to a bug in setuptools:

https://bitbucket.org/tarek/distribute/issue/195/
2013-09-27 14:05:38 -07:00
Brian Simpson
ed18fc5b21 Delete g.countries. 2013-09-27 15:20:41 -04:00
Neil Williams
e535646372 Switch to a packaged version of LESS.
Assuming the package from our PPA is used, this upgrades to LESS
v1.4.2.1 in the process.
2013-09-20 10:49:02 -07:00
Neil Williams
a3c8867525 i18n: Extract messages from all installed plugins.
This makes "make i18n" extract messages for translation from all
installed plugins as well.
2013-07-24 13:54:41 -07:00
Max Goodman
4b53396821 Privacy policy and user agreement viewer. 2013-05-01 14:10:50 -07:00
Neil Williams
8af415476b Update and fix license headers for 2013.
Angst!
2013-03-19 20:03:40 -07:00
Max Goodman
b793f20a3a Add admin bar: top bar UI for status info/stats/tools. 2013-02-27 14:25:31 -08:00
Max Goodman
b770a4b1e2 reddit.css -> reddit.less
Note: you'll need to update your .ini stylesheet name to have a .less
extension.
2013-02-27 14:25:30 -08:00
Max Goodman
4e24bff045 Add js.py/strings.py as deps to JS modules.
If either python file changes, we may need to change the compiled JS
files. We'll take the conservative approach and always rebuild.
2013-02-27 14:25:29 -08:00
Neil Williams
ce57835394 Avoid loading pycountry in the app.
It takes a tonne of memory. If the countries.json file is present
(generated by "make countries") then the app will prefer to use it
saving itself megabytes of space.
2013-02-27 13:37:55 -08:00
Andre D
61d9da0f3c wiki: Replace wiki css with less. 2013-01-07 13:54:57 -08:00
Keith Mitchell
3c2356c1a5 Changes to example.ini should trigger "make ini" 2013-01-03 14:26:56 -08:00
Max Goodman
a900e4e325 Shiny new gold info page. 2012-11-08 10:12:51 -08:00
Max Goodman
f52f223bcc Add temporary bundled copy of less.js.
This is for use until we have less.js packaged in production.
2012-11-08 10:12:50 -08:00
Max Goodman
0b88e33b59 Add support for LESS compiled stylesheets. 2012-11-08 10:12:50 -08:00
Neil Williams
09de367263 Subreddit CSS: Make /about/stylesheet show unminified CSS.
This is for non-moderators to be able to view the commented / unminified
CSS so they can learn / cherry-pick bits from it.

This uses highlight.js from
isagalaev/highlight.js@45c03cd045.
2012-09-27 16:01:02 -07:00
Neil Williams
5c2679fbf6 static: Use rCSSMin to minify CSS files during static file compilation.
This shows a 10% reduction in size of the compressed results on the
current reddit.css stylesheet.
2012-09-25 13:01:37 -07:00
Keith Mitchell
01146c301e Remove unused r2.po and friends from repo
Note that pylons.wsgiapp uses pylons.i18n's get_lang()
and friends, instead of our modified versions in
r2.lib.translation. This means that setting 'lang' in the
conf causes it to try and 'help' us by looking up PO files
in r2/i18n. Changing the ini files to use 'site_lang' as the
key gets around that.
2012-08-14 12:19:20 -07:00
Max Goodman
768663b032 Abort Makefile if Makefile.py fails. 2012-08-08 13:47:03 -07:00
Max Goodman
bcbba69a7e Simplify handling/mangling of should_compile special case.
or: How I Learned to Stop Worrying and Love the Mangling.
2012-07-19 16:25:55 -07:00
Keith Mitchell
07af98ff4f Make each of the JS files individually responsible
Make will still only build once
2012-07-19 16:25:55 -07:00
Max Goodman
05afaf6580 Fix jQuery gzipping in the Makefile. 2012-07-18 14:48:07 -04:00
Neil Williams
94945f7341 Overhaul traffic pages (and update a few self-serve pages).
* Upgrade flot and include the new timeseries flot plugin.
  (flot/flot@ca050b26c2)

* All times mentioned by traffic are now in UTC, not "local."

* Traffic data is generated as actual tables and JavaScript
  generates the Flot charts from the tables for accessibility.

* Many pieces of traffic data that were only accessible from the
  old traffic app are now moved into the reddit app.

* Traffic backend lag time is indicated on the graphs for clarity.

* Use excanvas with Flot instead of Google Charts for old-IE fallback.
2012-07-12 14:56:27 -07:00
Neil Williams
914b949286 Update / add license headers.
I'm actually quite excited to do this.
2012-06-19 14:02:42 -07:00
Max Goodman
8b4f584f76 Move plugin Makefile extensions to Makefile.plugin include. 2012-06-12 15:36:31 -07:00
Max Goodman
cdd8177622 Speed up Makefile by combining python portions. 2012-06-12 15:36:31 -07:00
Max Goodman
c20ca4e5d5 Remove mangled js output symlinks.
Fixes issue with JS files / names falling out of sync.
2012-06-12 15:36:31 -07:00
Max Goodman
ea9d33177c Clean up plugin static buildstamps when make cleaning static. 2012-06-12 15:36:31 -07:00
Max Goodman
f48eb3bf31 Locate, build, and merge plugin statics in the Makefile. 2012-06-12 15:36:30 -07:00