mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-31 03:09:06 -04:00
* Add authentication dialogs for sign in and sign up - Implemented AuthDialog component to manage sign in and sign up modals. - Created SignInModal and SignUpModal components for handling respective authentication processes. - Added AuthFields component for reusable form fields and error handling. - Updated various views to utilize the new authentication dialogs instead of traditional links. - Enhanced user experience by allowing sign in and sign up actions to occur without full page reloads. - Added feature specs for testing the functionality of the new dialogs. * Refactor modals and input fields for improved accessibility and styling; adjust button sizes and text formatting * Refactor authentication forms and modals for improved usability and accessibility; integrate reCAPTCHA handling and enhance error messaging * Refactor SignUpModal layout for improved responsiveness and accessibility; organize fields into rows and enhance styling * Refactor session view spec to streamline field checks; remove redundant test and retain essential content expectations
33 lines
1.4 KiB
Plaintext
33 lines
1.4 KiB
Plaintext
-# What the seed library shows under its controls: the notes, then the shelves
|
|
-# or list, then the pages. The seed library fetches this alone when a control
|
|
-# changes.
|
|
- if @crop && !member_signed_in?
|
|
%p
|
|
= link_to 'Sign in', new_member_session_path, data: { auth_dialog: 'sign_in' }
|
|
or
|
|
= link_to 'sign up', new_member_registration_path, data: { auth_dialog: 'sign_up' }
|
|
to see seed traders near you.
|
|
- elsif @sort_by_distance
|
|
%p.text-muted Sorted by distance from your location.
|
|
- if @everyone && @shared_totals
|
|
.seed-tip
|
|
%div
|
|
%b= "#{pluralize @shared_totals[:packets], 'packet'} from #{pluralize @shared_totals[:gardeners], 'gardener'}."
|
|
A seed shows here only when the gardener chose to share it. We show a gardener's city, never their address.
|
|
Each packet has its gardener's avatar beside it. Open a packet to see the seed and ask for some.
|
|
- if @past_count.positive? || params[:past] == '1'
|
|
= render 'seeds/past_sow_by'
|
|
- if @search_crop
|
|
= render 'seeds/search_summary'
|
|
- if @seeds.blank? && @search_crop
|
|
= render 'seeds/none'
|
|
- elsif @seeds.blank?
|
|
= render 'seeds/empty'
|
|
- elsif @list_view
|
|
= render 'seeds/list', shelves: @shelves
|
|
- else
|
|
- @shelves.each_with_index do |(shelf, seeds), position|
|
|
= render 'seeds/shelf', shelf: shelf, seeds: seeds, position: position, owned: @owner.present? && @owner == current_member, everyone: @everyone
|
|
|
|
= will_paginate @piles || @seeds
|