Commit Graph

223 Commits

Author SHA1 Message Date
Haoling
2fb830e293 Fix miss tag 2017-12-19 10:34:21 +09:00
Isaac Bythewood
c71fa17aca Updates to support Python 3 2017-09-23 21:12:54 +00:00
Lapo Luchini
cbcd9c5f8b Ease code readability (and be closer to original too). 2017-04-22 15:46:00 +02:00
Lapo Luchini
ddf2891480 Remove the need for jQuery. 2017-04-22 13:27:39 +02:00
Isaac Bythewood
813ab93c11 Change default of user registrations to True since it is a common problem with new users. 2017-02-11 05:41:24 +00:00
Isaac Bythewood
a55644ba76 Start adding basic admin elements 2017-02-11 05:24:01 +00:00
Isaac Bythewood
af4e7437a3 self.url is not always set, return required fields for pin 2017-02-11 05:23:07 +00:00
Isaac Bythewood
0f7bb8cf84 Remove load line in base template 2017-02-11 04:58:09 +00:00
Isaac Bythewood
d0db375d1f Remove unused RSS feed system, we aren't going to update it anymore 2017-02-11 04:57:00 +00:00
Isaac Bythewood
2d8d92b8b7 Add template_settings back to context processors 2017-02-11 04:32:06 +00:00
Isaac Bythewood
9b71a7449c Remove bower.json and swap to using unpkg 2017-02-11 04:28:52 +00:00
Isaac Bythewood
21a67b341d Swap over to unpkg for CSS requirements 2017-02-11 04:18:46 +00:00
Isaac Bythewood
92120b0629 Remove excessive PINRY comment from base template 2017-02-11 04:15:51 +00:00
Isaac Bythewood
6c9723c506 Merge latest 1.10 django update attempts 2016-11-28 16:58:41 -05:00
Isaac Bythewood
6bb7a96ddc Rework settings, add apps.py, preping for django 1.10 upgrade 2016-11-28 16:58:34 -05:00
Isaac Bythewood
e73ea08f70 Merge pull request #99 from gissehel/https-gravatar
Remove explicit http image for gravatar images
2016-11-28 15:32:51 -05:00
Isaac Bythewood
d2b4cbc8c6 Setup development allowed hosts to be a wildcard, move wsgi and delete bootstrap 2016-11-28 15:22:04 -05:00
gissehel
631314afb4 remove explicit http image for gravatar images because it makes the whole site not https friendly. It works because gravatar support both http & https 2016-10-09 05:38:33 +02:00
Isaac Bythewood
8f66cd719c Reimplement image uploading 2016-02-25 02:26:45 +00:00
Isaac Bythewood
5cb59746df Fixes issue #37 2016-02-04 19:48:31 +00:00
Isaac Bythewood
5cda896eed Fix error message classes 2016-02-04 19:29:48 +00:00
Isaac Bythewood
9185e946ac Fix height of lightbox 2016-02-04 19:26:09 +00:00
Isaac Bythewood
69ccee06cc Merge pull request #83 from lapo-luchini/bookmarklet2
bookmarklet improvements to the image preview
2016-02-03 20:36:24 -05:00
Isaac Bythewood
5802167b72 Fix bug in API now allowing delete or edit of pins 2016-02-04 01:34:19 +00:00
Isaac Bythewood
51c6e58fc5 Use bower to handle js vendor dependencies 2016-02-04 01:28:39 +00:00
Isaac Bythewood
db34087da8 Merge pull request #76 from lapo-luchini/description
Improve description text rendering
2016-02-03 19:34:09 -05:00
Carl van Tonder
1114edc11a Update to Django 1.8 and tastypie 0.12
Closes #38, closes #88
2015-08-26 17:22:08 -04:00
Isaac Bythewood
a7aef9be91 Merge pull request #86 from Delphinator/fix-n+1-queries
Fix N+1 queries in pin loading
2015-04-08 06:40:56 -04:00
Jens Gutermuth
deb04500c5 Only use prefetched thumbnails if there are there
The optimization broke image uploading, this fixes it again.
2015-03-23 03:30:13 +01:00
Jens Gutermuth
9d4791b65a image can be loaded with a join as well (saves another query) 2015-03-23 02:30:54 +01:00
Jens Gutermuth
e4b8769168 DoesNotExist should be ObjectDoesNotExist, oops! 2015-03-23 02:28:21 +01:00
Jens Gutermuth
3bcc6d3152 Loanding pins does no N+1 queries anymore
This saves another three queries per pin, bringing to total query count
down to 8.

See issue #85 .
2015-03-23 02:22:35 +01:00
Jens Gutermuth
60cf2dcbd7 Fix three N+1 queries in pin loading
Fetch the submitter with a join and get all the images and tags in one
query each. This reduces the total query count for loading 50 pins from
304 to 158.

See issue #85.
2015-03-23 02:03:31 +01:00
Jens Gutermuth
58ea025c03 Case insensitive sorting of tags in javascript 2015-03-22 23:59:42 +01:00
Lapo Luchini
ac8419d749 Improvements to the image preview:
- show the image size on top of the preview.
- scale down the preview to view (most) of the image instead of just the center.
2015-01-20 10:24:27 +01:00
Lapo Luchini
9e901485ee Allow closing pinry with ESC or clicking on header.
On close, remove the script as well as the images.
2015-01-20 10:18:58 +01:00
Lapo Luchini
259d699551 Remove race condition waiting for proper event instead of fixed time. 2014-11-23 20:25:59 +01:00
Lapo Luchini
212dd7f819 Make links clickable and only show the domain in the text. 2014-11-23 20:14:20 +01:00
Lapo Luchini
0f62f70f79 Fix long descriptions from overflowing the area. 2014-11-23 20:14:10 +01:00
Razzi Abuissa
7c553e2e52 Remove unused ugettext import 2014-07-28 02:47:25 -04:00
Isaac Bythewood
d6c515ed0a Merge pull request #62 from tomwys/patch-2
Fix url regexp.
2014-07-21 23:54:29 -04:00
Lapo Luchini
e2f61176dd Properly encode query string parameters. 2014-05-28 16:10:08 +02:00
Lapo Luchini
e1e2c07f2b getUrlParameter fixes as in http://stackoverflow.com/a/8764051/166524 2014-05-28 16:09:22 +02:00
Lapo Luchini
a2ab9a2b8c Use .src to get absolute URL as calculated by the browser. 2014-05-28 15:58:00 +02:00
Lapo Luchini
0549bb5113 Use jQuery as soon as it is loaded. 2014-05-28 15:47:55 +02:00
Krzysztof Klimonda
b79e6249ea Fixed tests not passing on postgresql. 2014-04-03 11:20:33 +02:00
Tomasz Wysocki
bd984f9fd2 Fix url regexp.
\d allows numbers from other digit systems, so urls like: http://demo.getpinry.com/१७/ are possible. This could lead to some nasty security issues in the future (ie. if you try to use pin number without using `int(...)`).
2014-04-03 11:12:39 +02:00
Tomasz Wysocki
25c02407ba "keys" is optional. 2014-04-03 10:09:11 +02:00
Tyler Stalder
c3d998654f Use jQuery because you're checking for window.jQuery
Some sites put jQuery into noConflict mode and don't bind to $. One example is http://shop.timberland.com/ so the pinry bookmarklet would not work. It will throw a 'document does not have a method ready' error. This change just wraps all of the jQuery specific code to use the current jQuery as $.

http://api.jquery.com/jQuery.noConflict/
2013-11-24 17:51:08 -08:00
Isaac Bythewood
8a0b577f16 Fix SITE_URL being used in title when that feature was removed. 2013-09-25 22:45:42 +00:00