Commit Graph

11959 Commits

Author SHA1 Message Date
Miles Gould
6fa94e321a Save photos. 2013-05-09 13:12:54 +01:00
Lilly
14021a4fae Redirect to Garden after deleting planting 2013-05-09 13:39:31 +10:00
Ryan Clark
6ddfeb8f41 Merge branch 'dev' of https://github.com/Growstuff/growstuff into dev 2013-05-08 20:23:20 -07:00
Skud
536cf21e3e make it easier to wrangle scientific names 2013-05-09 11:39:22 +10:00
Ryan Clark
1348a2a492 Add validation for name in garden model with test. 2013-05-08 13:15:09 -07:00
Miles Gould
ae785c6f4b Move flickr code into Member model. 2013-05-08 16:44:21 +01:00
Miles Gould
016172f0e1 Delete @flickr_login var in photos controller.
We didn't need any data from it that couldn't be got from @flickr_auth,
and eliminating it makes login_to_flickr less side-effecting and easier
to move around.
2013-05-08 16:23:54 +01:00
Miles Gould
035946edcd "auth" helper method in Member 2013-05-08 15:55:32 +01:00
Miles Gould
2fb8c38019 Removed obsolete test from views/photos/edit
We should consider just deleting this action entirely.
2013-05-08 15:39:17 +01:00
Miles Gould
8af105fad7 Test for photo thumbnails; stub Flickr username/id. 2013-05-08 15:27:10 +01:00
Miles Gould
ce3de63a46 Factor out flickr controller code, for easier stubbing. 2013-05-08 14:59:08 +01:00
Skud
cc6d6633cc Rough attempt at showing photos from flickr.
You can see a list of your recently uploaded Flickr photos at
/photos/new, which is nice!  However the tests are broken and there's a
lot of mess that should be in the model instead of the controller.
Committing as-is because I'm tired.
2013-05-08 22:01:09 +10:00
Skud
acf164990d tell user to connect to flickr 2013-05-08 21:17:03 +10:00
Skud
ffb5d6e7f8 only members can manage photos 2013-05-08 20:54:48 +10:00
Skud
5ae5e0f959 rails g scaffold Photo... 2013-05-08 20:52:35 +10:00
pozorvlak
8daefa7b5e Merge pull request #197 from Skud/empty_subjects
fixed linebreak causing syntax error
2013-05-08 03:33:40 -07:00
Skud
d4e5f0e32a fixed linebreak causing syntax error 2013-05-08 20:23:55 +10:00
pozorvlak
6df9d8b09a Merge pull request #194 from Skud/empty_subjects
*crosses fingers*
2013-05-08 03:21:57 -07:00
Skud
2563787dc7 added Member.current_order method 2013-05-08 15:41:39 +10:00
Skud
ddfafa032a added completed_at field to Order 2013-05-08 15:11:20 +10:00
Skud
85a121c739 only let signed in members buy stuff 2013-05-08 15:05:55 +10:00
Skud
5c96bf1541 added basic index page for shop 2013-05-08 15:05:38 +10:00
Skud
42ea14a8e5 added shop page at /shop 2013-05-08 14:02:33 +10:00
Skud
42cfa17b7e order HABTM product 2013-05-07 22:10:23 +10:00
Skud
2d444423e4 moved member post feed to HAML 2013-05-07 22:09:48 +10:00
Skud
26d16b9d86 only admins can mess with products/orders for now 2013-05-07 21:24:26 +10:00
Skud
245115fd7f rails g scaffold Order... 2013-05-07 21:14:08 +10:00
Skud
af38f8574e rails g scaffold Product... 2013-05-07 21:13:23 +10:00
Skud
3eef44cce7 added products to seeds.rb in dev/test environments 2013-05-07 21:00:10 +10:00
Skud
cad5f453fa rails g scaffold Product... 2013-05-07 20:56:10 +10:00
Skud
a29debff22 Merge pull request #196 from Growstuff/dev
Production push: search nearby by distance, connect to twitter and flickr, etc
2013-05-07 03:16:16 -07:00
pozorvlak
5ee8f216a4 Merge pull request #192 from Skud/roleseeds
create admin and wrangler users in dev environment
2013-05-07 03:08:33 -07:00
pozorvlak
e01cd33b3b Merge pull request #195 from Skud/plantingcounts
added planting counts to crop pages
2013-05-07 03:04:59 -07:00
Skud
c95e722f99 added planting counts to crop pages 2013-05-03 15:09:29 +10:00
Skud
ad8a0110c5 One-off rake task to clean up empty notification subjects
Also fixed admin_user task to use login_name (case sensitive) rather
than the id-like stub generated by friendlyid (always lowercase).
2013-05-03 12:35:02 +10:00
Skud
e5526a3292 added validation for en_wikipedia_url 2013-05-02 13:27:12 +10:00
Lilly
4d372ab8f8 Added crop wrangling hints to crops form. 2013-05-02 12:13:28 +10:00
Skud
949821a947 create admin and wrangler users in dev environment 2013-05-02 11:18:46 +10:00
Miles Gould
6ab098c015 Move reply_link into a helper.
- keep @reply_link as an instance var, for testability
 - always use fully-qualified URLs, to reduce code duplication
2013-05-01 23:45:07 +01:00
Miles Gould
c46ba2f16b Delete unused helpers. 2013-05-01 16:27:29 +01:00
Cesy
7869e29682 Merge pull request #191 from Skud/flickr-connect
Flickr connect
2013-04-30 08:20:09 -07:00
Skud
e4dd0cba5b added flickr link to profile page 2013-04-30 23:07:21 +10:00
Skud
45935c6e38 connect to flickr 2013-04-30 23:01:18 +10:00
Skud
d006854a6c added omniauth-flickr gem 2013-04-30 22:55:40 +10:00
Skud
df1cded83c added flickr key/secret 2013-04-30 22:10:05 +10:00
Skud
e0782c2346 fixed failing notifications tests
(our non-DRY code, which we just pasted into the mailer, was breaking
this in a roundabout way. this is a quick and not very nice fix. The
whole problem is resolved by @pozorvlak's recent "no subject" fix for
notifications, anyway.)
2013-04-30 21:56:42 +10:00
Miles Gould
aab0a438fd Replace blank/nil notification subjects with (no subject) 2013-04-30 12:39:03 +01:00
gnattery
9d4caaa2b5 Do validation for empty and spaces-only strings 2013-04-30 12:23:17 +01:00
gnattery
939a10d2f4 Post subjects cannot be nil 2013-04-30 12:20:26 +01:00
Skud
c2dbebb046 Merge pull request #189 from pozorvlak/nearby
Find users within a given distance; allow specification of units.
2013-04-30 03:04:29 -07:00