-
-
Notifications
You must be signed in to change notification settings - Fork 137
displayed a message when no resources are found matching the filters #305
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: main
Are you sure you want to change the base?
Changes from 3 commits
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 |
|---|---|---|
|
|
@@ -47,6 +47,18 @@ h1 { | |
| list-style: none; | ||
| } | ||
|
|
||
| .hidden{ | ||
| display: none; | ||
| } | ||
|
|
||
| .visible{ | ||
|
Contributor
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. we don't need a class of visible, and should operate off of things being visible until made invisible. |
||
| display: block; | ||
| } | ||
|
|
||
| #noThumbnailsMessage h1{ | ||
| text-align: center; | ||
| } | ||
nandu-99 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| .thumbnailbox { | ||
| grid-column: span 3; | ||
| height: fit-content; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,6 +50,9 @@ <h1>Resources</h1> | |
|
|
||
| <!-- This is the section that shows all the resource cards in the site. | ||
|
Member
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. This documentation should be shifted to just before the |
||
| The homepage shows upto 16 'featured' items ordered (1) to (16 or lesser) --> | ||
| <div id="noThumbnailsMessage" class="hidden"> | ||
| <h1>No resources matched the selected filters.</h1> | ||
nandu-99 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </div> | ||
| <ul id="thumbnaillist"> | ||
| {% for i in (1..16) %} {% for page in site.pages %} {% if page.layout | ||
| =='resource' %} {% if page.featured == i %} | ||
|
|
@@ -91,7 +94,7 @@ <h3 class="thumbnailtitle"> | |
| {% endif %} {% endunless %} {% endif %} {% endif %} {% endfor %} {% | ||
| endfor %} {% endunless %} | ||
| </ul> | ||
| </main> | ||
| </main> | ||
|
|
||
| <!-- The standard CC footer, located at docs/_includes/footer.html --> | ||
| {% include footer.html %} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.