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

assets: fix header + banner placement #331

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

kpsherva
Copy link
Contributor

context = {"featured_communities": featured, "my_communities": my_comms}

context = {"featured_communities": featured}
print(context)
Copy link
Contributor

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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about this?

Copy link
Contributor Author

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

@kpsherva kpsherva force-pushed the ui-buxfix branch 2 times, most recently from 4df14da to 5c87253 Compare January 22, 2025 13:42
Copy link
Contributor

@jrcastro2 jrcastro2 left a 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

site/cds_rdm/views.py Outdated Show resolved Hide resolved
* templates: fix community card link
* closes CERNDocumentServer#324
@jrcastro2 jrcastro2 merged commit 7630444 into CERNDocumentServer:master Jan 23, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

Featured communities: CSS issues
4 participants