Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
Fix bug - Find a guide should filter all the guides
Browse files Browse the repository at this point in the history
- Added `guide-search` class to all the guides `div`
  and as javascript code is written in a way that it will start considering
  these new `div` as well for filtering

Fixes gh-1001
  • Loading branch information
beatfreaker authored and bclozel committed Jun 28, 2021
1 parent 6e59467 commit a02f272
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sagan-site/src/main/resources/templates/guides/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2 class='h2 antialiased'>Topical Guides</h2>
<p class='guide-description m-0'>Designed to be read and comprehended in an hour or less, providing more wide-ranging or subjective content than a getting started guide.</p>
</div>
<section id='topical-guides-list' class='flex jc-between flex-wrap'>
<div data-th-each="topical : ${topicals}" class='guide half border-box flex' data-th-attr="data-filterable=${topical.title}+' '+${topical.description}">
<div data-th-each="topical : ${topicals}" class='guide guide-search half border-box flex' data-th-attr="data-filterable=${topical.title}+' '+${topical.description}">
<div class="guide-icon" data-th-insert="~{svg/_icons :: icon-guides-topic}"></div>
<div class='text'>
<a class='guide-link bold blue link-darken antialiased' data-th-href="@{'/guides/topicals/'+${topical.name}+'/'}" data-th-text="${topical.title}">Spring Security Architecture</a>
Expand All @@ -81,7 +81,7 @@ <h2 class='h2 antialiased'>Tutorials</h2>
<p class='guide-description m-0'>Designed to be completed in 2-3 hours, these guides provide deeper, in-context explorations of enterprise application development topics, leaving you ready to implement real-world solutions.</p>
</div>
<section id='tutorials-list' class='flex jc-between flex-wrap'>
<div data-th-each="tutorial : ${tutorials}" class='guide half border-box flex' data-th-attr="data-filterable=${tutorial.title}+' '+${tutorial.description}">
<div data-th-each="tutorial : ${tutorials}" class='guide guide-search half border-box flex' data-th-attr="data-filterable=${tutorial.title}+' '+${tutorial.description}">
<div class="guide-icon" data-th-insert="~{svg/_icons :: icon-guides-tutorial}"></div>
<div class='text'>
<a class='guide-link bold blue link-darken antialiased' data-th-href="@{'/guides/tutorials/'+${tutorial.name}+'/'}" data-th-text="${tutorial.title}">Building REST services with Spring</a>
Expand Down

0 comments on commit a02f272

Please sign in to comment.