Skip to content

Commit

Permalink
Show <nav> only if the page has an associated version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayosec committed Sep 15, 2024
1 parent 51a5cf5 commit 0323199
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/ffdocs/view/templates/_layout.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
- if project_url
!= link_to project_url, "Source"

%nav
- if release
- if release
%nav
.current-version
.version-label= release.version

Expand Down Expand Up @@ -57,12 +57,12 @@
%label.show-all-label{for: show_all_id} Show All
%input.show-all{id: show_all_id, type: "checkbox"}

- if releases.size > 1
%details.other-versions
%summary Other
- releases.each do |it_release|
- if release != it_release
!= link_to_file versioned_target(it_release, item), it_release.version, class: "version"
- if releases.size > 1
%details.other-versions
%summary Other
- releases.each do |it_release|
- if release != it_release
!= link_to_file versioned_target(it_release, item), it_release.version, class: "version"

%main{class: main_class}
!= main_body

0 comments on commit 0323199

Please sign in to comment.