-
Notifications
You must be signed in to change notification settings - Fork 971
Move html from javascript to views #5616
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
Comments
Please assign me this issue i would like to work on it |
@Satya900 We do not work with assigns. Just go ahead! :) |
Was ignored by everyone. |
That PR is marked as a draft, so I haven't reviewed it. |
That PR was marked as draft after it was ignored for months and I gave up on maintaining it. |
Would #4335 be reviewed if it would be updated so it works again? |
We have an amount of html building being created using JavaScript code. For example, in
leaflet.share.js
there is a substantial amount of html construction:openstreetmap-website/app/assets/javascripts/leaflet.share.js
Lines 37 to 53 in 7cf9bf0
This makes it harder to find, and much harder to maintain, than having the html in a view like the rest of the site. It's also mostly unnecessary, since html like this isn't dynamic, it's the same for every user.
We should move all of this html into views, and use the javascript only for interactivity like changing content (e.g. taking results of an ajax query and putting them into the html) or to show/hide certain elements after UI interactions.
The text was updated successfully, but these errors were encountered: