-
Notifications
You must be signed in to change notification settings - Fork 3
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
Unused templates, blocks #1259
Comments
The modal was introduced so it can be used by plugins or projects. The bibsonomy plugin uses it for its form. It was also initially used for the new relations, but this was now replaced by a |
Ok, thanks. I don't dislike the idea of including a block for a modal – or other "convenience" blocks for projects – in general. This probably more highlights a problem with code that isn't actively used in Core itself but meant to be used downstream. Other bibsonomy-related if-else blocks in templates come to mind. I think it'd be a good idea if there were a way to test this sort of stuff. I'll move the custom styling as-is for now. |
Sorry, I think my comment was more confusing than helpful. The modal was also meant for plugins and downstream projects, but it was also used in core. The bootstrap modal is an element that is not that easy to inject into the DOM, so it made sense at the time to include it by default. Now that there is the
If such blocks are still present I would consider this to be a bug. We tried hard in the last year to get rid of those |
👍
Ah! I came across a couple again while looking to move the last bits of JavaScript out of templates. But that template code is a(n inherited) mess in general, i.e. not representative, and I didn't look elsewhere, just saw them there (where they are nonsensical anyway because they reference code that doesn't exist anymore). |
Going through the remaining
style
attributes as per #1258, I'm wondering if the following are still needed:The relations template looks like it belonged with
GenericRelationView
, which was removed in e1e2e1e.The modal block doesn't seem to get used by anything – I guess it's from when we used a modal to confirm deletion of an object? For which we're now using htmx, though I don't know if we're intending to keep that or eventually go back to the Bootstrap modal (which is a different discussion to be had). If the modal isn't needed anymore, the custom styling, whose purpose is unclear to me, doesn't need moving, either. ETA: If we wanna keep it, the customisations should be testable somehow.
The text was updated successfully, but these errors were encountered: