-
Notifications
You must be signed in to change notification settings - Fork 54
Remove links from projekt sidebar if tasks/views not available #551
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
Remove links from projekt sidebar if tasks/views not available #551
Conversation
|
You mean that they are skipped if the element is not in the template: yes I think so. |
|
Yes, that's what I had in mind. Okay, I'll try to implement this. |
|
Did we miss this in the review of #433? PS |
|
Yes, this should have been part of #433 which I also did not think of. |
|
Hi @jochenklar and @MyPyDavid, I had a chance to look at the Overlay problem a little further. I think the expected behavior would be:
However, there are several problems that need to be solved in order to achieve this behavior:
Do you have any recommendations on the implementation? |
|
Hi @jochenklar and @MyPyDavid, as discussed in the meeting today, I just added a simple JS check that skips the overlay display if it the corresponding element does not exist. If we rename the "Next tip" button towards something more general (not sure what might be the best wording...), we might also remove the entire logic separating the last overlay including this Python function: Lines 4 to 19 in 3e38767
|
|
Hi @m6121 tnaks for the update! I like the solution and I think we can live with the buttons as they are. If people want to adjust the overlays, they just need to take care that the last overlay is always there. We could also add a last overlay with a "thanks for using the overlays" message, somewhere at the bottom (or the top of the page.) I am also for removing the python logic with the settings, much cleaner. |
|
Thanks a lot for your feedback! I really like the idea of "always a last overlay" that is placed somewhere in the central with the content similar to: "Enjoy the use of RDMO. In case of questions, please contact your local FDM support". That might help to make the support contact of the instance available to the users. Should I implement this for this PR? |
|
Yes, but maybe less specific. However we could add a |
|
I added a last overlay by configuring it in the central settings. It is currently linked to the footer section "contact". So instances with a custom design need to adjust it or it will not be displayed. I did not include a new settings as the render function currently did not pass the settings export to the templates: rdmo/rdmo/core/templatetags/core_tags.py Line 43 in 3e38767
|
|
I think this can be reviewed, now. However, for the release the missing translations of the new template need to be added:
|
|
Hey, nice work. As discussed I would use 3 different templates (and with I would also remove the The last overlay is usually about something in the sidebar. (The bottom of the main div would not work since it is usually not very high.) |
|
Hi @jochenklar, thanks a lot for your review. I implemented all requested changes. |
|
Hi @jochenklar thanks a lot for merging and fixing it. I did not notice it during my testing. |
…ews-issues Remove links from projekt sidebar if tasks/views not available
This fixes the sidebar in the projekts view so that task and view update links are not displayed if they are not available. Do we have to adjust the Overlays too?