Skip to content

Conversation

@matyikriszta
Copy link
Contributor

@matyikriszta matyikriszta commented May 4, 2021

Description

This PR updates the sponsors index view to use the shared sponsors partial.

Status

Ready for Review

Related Github issue

Fixes #1523

Screenshots

Sponsors page Before Sponsors page After
Screenshot_2021-05-03 codebar(1) Screenshot_2021-05-03 codebar

@matyikriszta matyikriszta force-pushed the improvement/update-sponsors-page-to-use-sponsors-partial branch from e336c88 to eb804b2 Compare May 4, 2021 04:42
@matyikriszta matyikriszta changed the base branch from master to staging-remove-foundation-replace-with-bootstrap May 4, 2021 04:45
- grouped_sponsors.compact.each do |sponsor|
.medium-2.small-4.columns.sponsor-image
= link_to image_tag(sponsor.avatar, class: "small-image", alt: sponsor.name), sponsor.website
= render partial: 'shared/sponsors', object: @sponsor_levels[level].compact
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice spot! If you want to take this one step further, I noticed that app/views/chapter/show.html.haml could br DRYed up as well using this partial…

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gnclmorais yep, it's coming up in a future PR

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:happy_dance:

@matyikriszta matyikriszta merged commit e44ba5a into staging-remove-foundation-replace-with-bootstrap May 10, 2021
@matyikriszta matyikriszta deleted the improvement/update-sponsors-page-to-use-sponsors-partial branch May 10, 2021 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update /sponsors page to use the shared sponsors partial

3 participants