Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a modal to show sponsors #465

Merged
merged 9 commits into from
Apr 21, 2023
Merged

Use a modal to show sponsors #465

merged 9 commits into from
Apr 21, 2023

Conversation

Splines
Copy link
Member

@Splines Splines commented Apr 17, 2023

About

This adds a new feature: we now use a modal to show sponsors at /#sponsors. Due to the newly introduced login/landing page in #444, we do not have a navbar anymore which led to an error since the sponsor route was previously accessible without authentication. However, in the new navbar, we do not even consider if the user is logged in anymore as the navbar is per se only shown when the user is logged in. A hotfix was employed in #461.

Todo

  • Redirect old sponsors route to new route
  • Remove "#sponsors" slug upon close

Preview

image

@Splines Splines self-assigned this Apr 17, 2023
@Splines Splines marked this pull request as ready for review April 17, 2023 08:49
@Splines Splines requested a review from fosterfarrell9 April 17, 2023 08:49
Copy link
Collaborator

@fosterfarrell9 fosterfarrell9 left a comment

Choose a reason for hiding this comment

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

One more thing besides the other comments is that I had thought that footer_modal.js should have been required in app/assets/javascripts/application.js but it seems to work fine without this.

app/assets/javascripts/footer_modal.js Outdated Show resolved Hide resolved
app/views/shared/_footer.html.erb Outdated Show resolved Hide resolved
config/routes.rb Outdated Show resolved Hide resolved
@Splines Splines requested a review from fosterfarrell9 April 17, 2023 19:09
@Splines
Copy link
Member Author

Splines commented Apr 18, 2023

One more thing besides the other comments is that I had thought that footer_modal.js should have been required in app/assets/javascripts/application.js but it seems to work fine without this.

Webpacker probably handles this already and serves the whole assets folder. Rethinking the JS pipeline is then part of #454.

@Splines Splines merged commit 03b6c00 into mampf-next Apr 21, 2023
@Splines Splines deleted the feature/sponsors-modal branch April 21, 2023 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants