Commit Graph
35 Commits
Author SHA1 Message Date
Daniel O'Connor d663d0ffa3 Drop use of h5 2024-01-20 04:28:10 +00:00
Daniel O'Connor 78eaf0b4c9 Address minor accessibility issues: Image elements do not have [alt] attributes (#3561)
* Add alt tags

* Update app/views/members/_tiny.haml

* Update app/views/home/_plantings.html.haml

* Use crop_name as this is a searchkick record
2024-01-17 22:02:09 +10:30
Brenda WallaceandMartina a5c770c2b5 Update app/views/crops/_thumbnail.html.haml
Co-Authored-By: Martina  <922964+simicic@users.noreply.github.com>
2020-02-27 09:42:09 +13:00
Brenda 9abb84ccba Harvesting modal form 2020-02-24 11:51:37 +13:00
Brenda Wallace aea0d5877d use object instead of hash for displaying crops 2019-12-25 16:28:27 +13:00
Brenda 500dd5e57b Reduce queries per thumbnail. 2019-12-04 20:59:56 +13:00
Brenda Wallace 1c2a88da55 Added lots of caching 2019-11-24 08:45:23 +13:00
Brenda Wallace 7b5698f977 👩‍🌾 Import openfarm data (#2177)
* Pull in openfarm icons, photos, info
* Truncating member location
* tidying up harvest display, and reducing duplication in css styles
* Tiny crop chip
* only show crop charts if there is data to show
* Make the styles more Growstuff
* Fixed links to openfarm
* Updating specs to cope with new photo sources
fix broken garden timeline on some pages
* Update homepage blurb
* Import crop companions
* More fluid page
* use thumbnail unless the source is flickr
* Messing with homepage
* Added crop growing_degree_days
* expect full size url on photos helper spec
* formatted dates from seeds#show
* tidy up places#show
* Move progress bar
* Quicker buttons for approve/reject crops
* Remove kaminari gem
* use crop cards on hierarchy page
* more crops on crops#index
* Wrap photo creation in transaction
* Wrap crop companions in a transaction
2019-09-28 17:23:25 +12:00
Brenda Wallace f5d48d1b56 Removing bootstrap 3 - only bootstrap 4
because both isn't particularly clever
2019-05-13 07:52:38 +12:00
Brenda Wallace 3cb6fb90f7 Fix crop display 2019-04-29 15:31:39 +12:00
Brenda Wallace 3316514a7a More material bits 2019-04-25 23:41:34 +12:00
Brenda Wallace 3ed173ebcd Material design changes 2019-02-17 21:33:36 +13:00
Brenda Wallace 3967e68038 More info on a crop's varieties, and parent 2019-02-15 09:13:08 +13:00
Brenda Wallace 1bf1076076 Photos helper 2018-03-14 19:28:18 +13:00
Brenda Wallace f9d4e1d6ae Ancestry of food. Seeds -> Planting -> Seeds -> Planting (#1550)
* Add seed ancestry, and seeds.finished_at
* Plantings and seeds produce each other
* Permissions for seeds actions
* View update, for seed actions, and planting ancestry
* Routes for seeds
* Scopes for harvests
* Spec updates for seeds
* Removed in-line style
* Add seed ancestry, and seeds.finished_at
* Plantings and seeds produce each other
* Permissions for seeds actions
* View update, for seed actions, and planting ancestry
* Routes for seeds
* Scopes for harvests
* Spec updates for seeds
* Moved finishable to a concern
* Seeds.finished_at
* rubocop fixes
* Made seeds sown migration the most recent
* Specs for home page
* Only show current seeds on home page
* Seeds appear for logged in or not
* Buttons to mark seeds finished
* JS for marking seeds finished
* Some actions only appear if seed or planting is active
* Fixed up display of home page
* Fixed typo in admin members#index
* Tidying up actions on all the things
* Harvest description in #index
* Truncate garden description if long
* Updated link label in view spec
* Show planted_from always, becuase it might be a parent seed
* find correct link in spec adding photos to garden
* fixed spec finding link to edit garden
* Better harvest description truncation
* Helping spec find the edit button
* specs for the home page
* Re-instate crops js, but in the correct file now
* Fixed link to garden in actions
* Tweaking mobile view
2018-03-12 08:39:32 +13:00
Brenda Wallace 6478d9cb1b Haml clean up for crops views 2017-02-06 10:31:45 +13:00
Brenda Wallace 8ddf36fed9 Haml clean up for (some of) crops views 2017-02-04 15:04:07 +13:00
Mackenzie Morgan e1a2b168c9 rename scientific_names.scientific_name to scientific_names.name
this mirrors alternate_names.name and allows making code more DRY
2016-11-28 21:57:51 -05:00
Cesy e784ec9b33 Making it trigger the crop thumbnail cache properly 2015-08-12 11:45:18 +00:00
Cesy 1df0c36e72 Keying the cache correctly 2015-08-12 10:49:48 +00:00
Cesy a5e7a8d315 Cache crop thumbnails 2015-08-12 10:49:48 +00:00
Cjay Billones bb88041fef [Refactoring] Replace .count and .length with .size for collections
Improved program efficiency (in querying in particular) by replacing .count and .length with .size for collections.

Fix error in refactoring

Reverted some .size into .count
2015-06-25 12:09:03 +08:00
Skud 628d5b24c1 Fixed CSS errors with text wrapping 2015-01-17 21:27:08 +11:00
Skud bb6e798bce Fix stylesheets for various thumbnail displays 2015-01-16 21:46:44 +11:00
Skud a5c226d128 Tweaked homepage crop display to match resized columns
- made columns 8/4 rather than 6/6
- show 8 interesting crops, not 12
- show 6 recent plantings, not 4
- use crop thumbnail with visible name/info/etc, rather than popup
version
- tweaked aforementioned thumbnail to have no border, and centre-align
the text
2015-01-16 21:37:15 +11:00
emmawinston 58728f6a61 Made crop thumbnail markup more semantic 2014-12-05 02:45:39 +00:00
Miles Gould 9c5b6f6192 Rename Crop.system_name to Crop.name 2013-10-18 11:52:05 +01:00
Skud 99bfc704dc Added plantings_count (i.e. counter_cache) to Member
Also removed the superfluous .plantings_count method on Crop, which was
causing some confusion.

A thing we learned today: we should use .size to find the size of
ActiveRecord collections, not .count, because .count doesn't use the
cache (while .size does).
2013-08-26 13:54:09 +10:00
Skud 43798231dd added crop photos and a new placeholder image 2013-06-04 12:22:31 +10:00
Skud c95e722f99 added planting counts to crop pages 2013-05-03 15:09:29 +10:00
Skud efb3c1cf50 Added a display of interesting members to the homepage.
Also merged in the latest dev (hence some minor changes to non-homepage,
non-member stuff).  I think I messed up the merge a bit :-/
2013-04-02 13:59:34 +11:00
gnattery d81306e7d2 linkify crop image 2013-03-23 18:35:24 +11:00
Skud 1503cbddad Plantings show on members, gardens, and crops pages
Created a thumbnail to standardise the display.  It's not pretty but it
has the basic info.
2013-01-18 13:40:30 +11:00
Skud 91e24e4ac2 fixed broken tests 2012-11-26 22:36:50 +11:00
Skud 1d6fedf712 extracted crop thumbnail into a partial 2012-11-26 20:53:00 +11:00