-
Notifications
You must be signed in to change notification settings - Fork 17
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
[DO NOT MERGE] Reorder number 10 org page #3795
base: main
Are you sure you want to change the base?
Conversation
51fcc25
to
15b14a5
Compare
15b14a5
to
25f982c
Compare
25f982c
to
29dd040
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.
One minor comment about array manipulation, otherwise it looks good to me.
Makes better use of the `first_featured_news` on the number 10 org page. The `remaining_featured_news` method then does what it says and returns all of the remaining news, rather than actually returning everything. `large: true` is being merged into the first item in `first_featured_news`, so that doesn't need to be repeated in the view. I'm not sure if these changes are having an affect on how the page is rendered.
[WIP] Redesign org page
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!
@@ -17,7 +17,14 @@ | |||
} %> | |||
</div> | |||
</div> | |||
|
|||
<% | |||
@documents.first_featured_news[:context][:text] = "Featured" |
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.
You could theoretically get this from the localisation files, but don't let that be a blocker.
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.
Frontend looks good 👍
What / Why
context
for the image card to say "Featured" as per the designs.first_featured_news
means the thumbnail is rendered at a higher resolution.Screenshots