-
Notifications
You must be signed in to change notification settings - Fork 21
Wrapped each shared file post in an <article> tag and used <nav> for older / newer navigation controls #850
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
base: master
Are you sure you want to change the base?
Changes from all commits
30a4856
46360a6
a2938e5
1f30094
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,18 +55,21 @@ <h3>Did You Know?</h3> | |
| {% for sharedfile in sharedfiles %} | ||
| {{modules.Image(sharedfile, current_user=current_user_obj, list_view=True, show_attribution_in_title=True)}} | ||
| {% end %} | ||
| </div> | ||
| <div class="linear-navigation"> | ||
| <div class="older"> | ||
|
|
||
| <nav class="linear-navigation timeline-navigation" aria-label="Timeline"> | ||
| {% if older_link %} | ||
| <a class="btn btn-secondary btn-shadow" href="{{ older_link }}">« Older</a> | ||
| <a class="older btn btn-secondary btn-shadow" href="{{ older_link }}">« Older</a> | ||
| {% else %} | ||
| {# Simplify container layout #} | ||
| <div></div> | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would expect simpler to mean fewer DOM elements. Also, this is a block element where the other is inline. But my preference would be to not emit anything if
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Simpler was also referring to CSS complexity. Let me see if there's a way to do nicely with CSS alone ... |
||
| {% end %} | ||
| </div> | ||
| <div class="newer"> | ||
| {% if newer_link %} | ||
| <a class="btn btn-secondary btn-shadow" href="{{ newer_link }}">Newer »</a> | ||
| <a class="newer btn btn-secondary btn-shadow" href="{{ newer_link }}">Newer »</a> | ||
| {% else %} | ||
| {# Simplify container layout #} | ||
| <div></div> | ||
| {% end %} | ||
| </div> | ||
| </nav> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
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.
Is there a purpose for the
timeline-navigationclass? I don't see any reference to it here or over at mltshp-patterns.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.
Feel that timeline is more descriptive than linear for what the navigation does. Hence the aria label. Wanted the classname to reflect that, but with a plan to introduce gradually (phasing out linear-navigation in patterns over time).