Skip to content

Commit

Permalink
Search bar on top, reverse sort versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nobodywasishere committed Jul 19, 2023
1 parent 515714e commit 99d10c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/crystaldoc/db.cr
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ module CrystalDoc

def versions_to_json
{
"versions" => versions.map do |version|
"versions" => versions.reverse.map do |version|
{
"name" => "#{version.commit_id}",
"url" => "#{path}/#{version.commit_id}/",
Expand Down
8 changes: 4 additions & 4 deletions src/views/sidebar.ecr
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
</label>
<div class="sidebar">
<div class="sidebar-header">
<div class="search-box">
<input type="search" class="search-input" placeholder="Search..." spellcheck="false" aria-label="Search">
</div>

<div class="project-summary">
<h1 class="project-name">
<a href="/">
CrystalDoc.info
</a>
</h1>
</div>

<div class="search-box">
<input type="search" class="search-input" placeholder="Search..." spellcheck="false" aria-label="Search">
</div>
</div>

<div class="search-results hidden">
Expand Down

0 comments on commit 99d10c8

Please sign in to comment.