-
Notifications
You must be signed in to change notification settings - Fork 11
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
assets: fix header + banner placement #331
Conversation
kpsherva
commented
Jan 22, 2025
- templates: fix community card link
- closes Featured communities: CSS issues #324
site/cds_rdm/views.py
Outdated
context = {"featured_communities": featured, "my_communities": my_comms} | ||
|
||
context = {"featured_communities": featured} | ||
print(context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover?
featured = featured_communities_search.to_dict()["hits"]["hits"] | ||
if current_user.is_authenticated: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it does not matter if the user is authenticated or not, we will get on featured communities, by default the current identity will see only the ones it can see (by permissions) even if it is anonymous. It was not needed at all, so I removed this
4df14da
to
5c87253
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just left a comment about the idenitty user for the featured communities search
* templates: fix community card link * closes CERNDocumentServer#324