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

Place | Add detail page for Places and add click animation to it from wordclouds #69

Open
1 of 4 tasks
giobber opened this issue Sep 6, 2023 · 0 comments
Open
1 of 4 tasks

Comments

@giobber
Copy link
Member

giobber commented Sep 6, 2023

  • Add model for place with description, ...
  • Add view and template with a simple page showing place details and top words
  • Use django.shortcut.reverse to retrieve the Place view url for each index/slug of each place and add to places structure
  • Add js method to add that link as onclick
_addOnClickActions(url_template) {
  for (const [index, {url}] of this.places) {
    $(`.word-cloud-${index}`).on("click", () => window.open(url, "_blank"))
  }
}
@giobber giobber self-assigned this Sep 13, 2023
@giobber giobber modified the milestone: FF2023 Sep 13, 2023
@giobber giobber changed the title Add page for single Places with links from map Place | Add detail page for Places and add click animation to it from wordclouds Sep 14, 2023
@giobber giobber removed their assignment Sep 14, 2023
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

No branches or pull requests

1 participant