-
Notifications
You must be signed in to change notification settings - Fork 0
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
Zfin 8317: publications page variations #4
base: main
Are you sure you want to change the base?
Conversation
<c:if test="${empty navigationMenu}"> | ||
<c:forEach var="section" items="${sections}" varStatus="loop"> | ||
<z:navigationItem title="${section}" | ||
useNavigationCounter="${useNavigationCounter}" |
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.
probably could remove this and just use the navigationMenu properties
protected List<NavigationItem> navigationItems; | ||
protected boolean root = false; | ||
|
||
public NavigationMenu(NavigationItem.NavigationItemBuilder ...navigationItemBuilders) { |
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.
should this be a constructor? Maybe a static fromBuilders method?
|
||
/** | ||
* Determine which sections to include based on each Menu Item's properties (isRequireRoot, isHidden, etc.) | ||
* @return |
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.
flesh out these javadocs
return include(option.toString()); | ||
} | ||
|
||
public boolean include(String option) { |
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.
javadoc
Introduce navigation based on a NavigationMenu class with subclass PublicationNavigationMenu for publication-view page. Use the same class to handle the logic of when to show various navigation items / sections and their counts. Hide errata if no errata. Styling changes: - align numbers to the right - change the border Add option for a feature flag to be enabled by default.
e829d03
to
7de3475
Compare
Use the parentheses style of showing numbers without the pill shape. Expand the width of the left navigation, but only for publication pages.
Fix linting issues.
No description provided.