Commit 834e8e3
authored
Consolidate image display (#606)
* Decorate
* Change redirect_to_external to use noopener noreferrer
* Don't support external urls for Resources anymore
* Allow stories to open show page if no_redirect param is passed
* Fix leader_spotlights to be found correctly
* Remove the old main_image_url and instead use display_image and default_display_image methods
* Support pdf's for main_image and gallery_image
* Remove main_image_url method
* Add back in resource kinds for now
* Separate directly-associated resources from resources through: workshop_resources
* Delete bookmarks flex, since it's unused
* Remove unused index.js.erb
* Consolidate media/image partials so there's a shared interface
* No need to conditionally check responds to title, since all decorators have title implemented
* Delete bookmarks/index.js.erb
* Replace quotes
* Show bookmarks personal_row on bookmarks show
* Don't update led_count via turbo stream anymore since it's a static value
* Move all dashboard content 'cards' to their respective views folder
* Add new media partials for a consolidated interface for image display
* Update event_registration displays
* Update resources form -- url field needs to be re-attached. and, attachments need to be reattached as 'images'
* Don't show cursor-pointer for the whole resource card
* Remove external_link reference from resource bc the 'url' field is being used for pdf's rn, not external links
* Move the Resource kind_display logic to the decorator
* Allow sizes and variants to be sent to the resource_icon svg partial
* Show resource windows_type, if present
* Fix indentation
* Don't show Attachments on Resource show anymore
* Only iterate over present attachments
* Change form_image_field partials and related calls to them
* Add organizations and facilitators to nav
* Pre-select story details from params
* Make stories index view button pass param to open show page rather than external link
* Show image on story_ideas index
* Correct color call on workshop_ideas index
* Fix indentation
* Add /n
* Fix LeaderSpotlight display on Workshop show show_associations
* Change capitalization and indentation of workshop sections, and add spanish translation for Age range
* Tweak image storage settings to support pdf previews in dev, prod, staging (will prob need to install some libraries on DO)
* WIP rake task to convert resource pdf's stored in 'url' field into real image uploads
* Futz w names of resource assns on workshop
* Fix tests that refer to alt titles
* Don't validate external url for resources anymore
* Test on classes not alt text
* Properly assign decorated index collection in tests
* Replace tabs w spaces
* Fix tabs and spacing
* Adjust decorator so we don't need to call html_safe anymore to appease rubocop1 parent 0a93b4b commit 834e8e3
File tree
93 files changed
+1010
-1112
lines changed- app
- controllers
- concerns
- decorators
- models
- images
- views
- bookmarks
- community_news
- dashboard
- event_registrations
- events
- facilitators
- media
- projects
- resources
- stories
- story_ideas
- taggings
- tutorials
- workshop_ideas
- workshop_logs
- workshop_variations
- workshops
- config/environments
- lib/tasks
- spec
- requests
- system
- views
- story_ideas
- workshop_ideas
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
93 files changed
+1010
-1112
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | | - | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 44 | | |
50 | 45 | | |
51 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
4 | 16 | | |
5 | 17 | | |
6 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 15 | | |
0 commit comments