Commit Graph

173 Commits

Author SHA1 Message Date
Isaac Bythewood
fc39a075e9 Hide passwords from view on forms 2013-09-24 23:58:38 +00:00
Isaac Bythewood
50d61af22a Move to bootstrap 3, better design, move all vendor items local. 2013-09-24 23:02:00 +00:00
Isaac Bythewood
795a905596 Added Original URL and Pin URL to lightbox of items. 2013-09-24 19:24:12 +00:00
Isaac Bythewood
a4f3adc2df Updated requirements and other items in preps of new pinry version 2013-09-22 03:33:50 +00:00
Isaac Bythewood
70a797c5af Update feeds to meet PEP requirements and minor adjustments to base.html 2013-09-22 00:32:52 +00:00
Isaac Bythewood
85d099fa94 Finish up feed implementation. 2013-09-21 05:21:17 -04:00
Isaac Bythewood
3affd088fa Adding rss feed for latest pins. 2013-09-21 04:28:41 -04:00
Isaac Bythewood
a12a5bd2a4 Fixed missing punctuation in messages css. 2013-09-18 19:10:14 -04:00
Krzysztof Klimonda
7db42bb075 Generate thumbnails when image is being saved
Too lax unique constraints for Thumbnail coped with "on demand" thumbnail
generation may leave database in inconsistent state where two thumbnail for
the same size are saved. We should be able to prevent that from happening
by generating all thumbnails when we save the image. Should fix #24, but
I can't figure out a way to actually test it.
2013-04-16 00:30:43 +02:00
Krzysztof Klimonda
defbd50445 Don't load Pins "in background" when lightbox is active.
Remove the scroll event handler when lightbox is active, so pins are
not loaded in background breaking the page layout.
2013-04-14 15:51:39 +02:00
Isaac Bythewood
cecc88f068 Refactor loading pins part of pinry.js to fix some bugs 2013-04-05 18:50:06 +00:00
Isaac Bythewood
c8f0d6b1d6 Fix bug of multiple of same images loading sometimes 2013-04-05 18:30:14 +00:00
Krzysztof Klimonda
2ecda33fed Apply fix from 3b10868 to users tests too
Repeat after me "I'll run a full test suite before pushing changes"
2013-04-05 19:44:16 +02:00
Krzysztof Klimonda
c0bf9d992e Make sure that users can't impersonate each other when creating pins
We weren't checking if the Pin submitter is the logged user which made it possible
to pass any submitter to the Pin resource create call. Fix it, and make the submitter
optional.
2013-04-05 19:34:31 +02:00
Krzysztof Klimonda
3b10868832 Open binary files in the binary mode
Make sure that we are using binary mode to read binary files like images, this Fixes #20
2013-04-05 19:10:17 +02:00
Krzysztof Klimonda
e71452c68f Use a relative path for the test image
It's part of the issue #20 (weird path on Windows). Django File class used
a full file path which resulted in path like C:\Example\pinry\static\C:\... which
is obviously invalid.
2013-03-27 21:07:22 +01:00
Isaac Bythewood
4f8139f615 Fix bug in sometimes loading the same pins again because the offset is not increased outside of "success" 2013-03-20 21:02:28 -03:00
Isaac Bythewood
310a89f2fe Change default pin load limit to 50 instead of 30 2013-03-20 20:37:04 -03:00
Krzysztof Klimonda
fea9ea2f0e Commit an initial South migration.
It is a milestone of sort, from now on we're commited to write
correct two-way migrations for our code. It's one of the last
things to be done before an official v1.0 release.
2013-03-19 20:41:37 +01:00
Krzysztof Klimonda
51ba441af5 Call lightbox() when new pin is created
We have to call lightbox() when new pin is created so its
onClick listener is registered.
2013-03-19 19:23:50 +01:00
Krzysztof Klimonda
494f7fbd8c Fix test by mocking requests.get function 2013-03-19 15:41:55 +01:00
Krzysztof Klimonda
98876bb0bd Use requests library instead of raw urllib2
This commit is a foundation upon a more robust image fetching code
will be built in the future, and it already fixes at least one weird
issue I've seen.
2013-03-19 15:22:20 +01:00
Krzysztof Klimonda
e0e0ac1679 Remove /by-md5/ prefix from image paths
Use forked django-images for now, until we can communicate with the
upstream about it. Fixes #4
2013-03-19 14:43:31 +01:00
Isaac Bythewood
de9628d863 Added viewport meta tag 2013-03-17 18:47:12 +00:00
Isaac Bythewood
e07a3aa87b Add a noscript message 2013-03-17 18:38:07 +00:00
Krzysztof Klimonda
2f98fc4a57 Change avatar background color to white 2013-03-13 15:51:00 -07:00
Krzysztof Klimonda
8fa7583b0f Call tillLayout when adding a new pin 2013-03-12 15:01:22 -07:00
Isaac Bythewood
026b5dcd88 Now shows messages from django 2013-03-12 06:38:47 +00:00
Isaac Bythewood
28c791fd1e Pins are now editable 2013-03-12 06:12:09 +00:00
Isaac Bythewood
bcf480e639 Add fade to edit buttons and fix queueing of animation 2013-03-12 05:05:43 +00:00
Rober Torkuhl
812358e31b use jQuery.off() instead od deprecated .unbind() function 2013-03-09 21:59:39 +01:00
Rober Torkuhl
0a5ed2b049 remove doubled event listeners 2013-03-09 21:39:40 +01:00
Rober Torkuhl
9bbc0d19ce show edit buttons only on mouse over 2013-03-09 21:39:01 +01:00
Krzysztof Klimonda
c267b55d0c Serve /media/ using Django while in Development
staticfiles_urlpatterns() add only handler for serving /static/ path,
add pattern for /media/.
2013-03-05 14:24:51 -08:00
Isaac Bythewood
1d8b2b151a Scroll bookmarklet to the top 2013-03-05 22:05:04 +00:00
Isaac Bythewood
dedf33183b Improve bookmarklet form 2013-03-05 22:02:35 +00:00
Isaac Bythewood
37de6ecb93 Improve error message system and add errors to basic functions 2013-03-05 21:25:08 +00:00
Isaac Bythewood
1538579fe5 Fix issue with lightbox background not expanding properly and bottom footer being off in lightbox 2013-03-05 20:44:23 +00:00
Krzysztof Klimonda
0cbd5bdaa1 re-enable asset compression with django_compressor
Finally had time to figure out the problem "caused" by django_compressor,
so we can no re-enable it. Fixes #3
2013-03-05 02:42:20 -08:00
Krzysztof Klimonda
4580a700ab Use media/ for files created during tests. Fixes #2 2013-03-05 01:58:11 -08:00
Krzysztof Klimonda
26b6805b6f Replace screenshot.png with logo.png in tests 2013-03-05 01:32:57 -08:00
Krzysztof Klimonda
10c9b35700 Even though not used, import models for Factory Boy 2013-03-05 01:28:39 -08:00
Isaac Bythewood
b63544905e Remove screenshot that is outdated and no longer needed, add full AGPL license and update api.py to use logo image instead of screenshot for testing 2013-03-05 01:53:46 +00:00
Krzysztof Klimonda
26f9c76988 Don't use FACTORY_FOR when not needed 2013-03-04 15:33:09 -08:00
Krzysztof Klimonda
7a85f1b514 Use post_generation hooks to populate models with some data
Factory Boy provides us with a better way of populating complicated
fields (like M2M relations) than overriding _prepare class method,
so we should be using them.
2013-03-04 14:58:54 -08:00
Krzysztof Klimonda
ef818b7f82 Rewrite tests to use a Model mocker library
There has been issues when running a full test suite (for pinry and
the entire Django stack), and test fixtures are hard to maintain anyway,
so rewrite tests to use a Model mocker library (Factory Boy) to populate
database.
2013-03-04 12:06:00 -08:00
Isaac Bythewood
0f9b1639ad Improve the loading of pins and overall speed 2013-03-04 00:50:59 +00:00
Isaac Bythewood
339ea08c3a Improve the look of the uploader 2013-03-03 23:40:00 +00:00
Krzysztof Klimonda
856d2d1e87 Allow filtering pins over submitter.username 2013-03-03 14:51:19 -08:00
Isaac Bythewood
c7e1e1cd83 Move location of users middleware 2013-03-03 22:50:29 +00:00