Skip to content

Commit

Permalink
feat: Adding map link in story mode
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Sep 10, 2022
1 parent 29365d0 commit 3869eea
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/fibr/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ <h2 class="small bg-grey no-margin full ellipsis">
{{ end }}
{{ else }}
</span>
{{ if not .Request.Share.Story }}
{{ if .Request.Share.Story }}
{{ if .HasMap }}
<a class="padding" href="#map" download>
<img class="icon" src="{{ url "/svg/map?fill=aliceblue" }}" alt="View on map">
</a>
{{ end }}
{{ else }}
<a class="padding" href="#search" download>
<img class="icon" src="{{ url "/svg/search?fill=" }}{{ if .Search }}limegreen{{ else }}aliceblue{{ end }}" alt="Search files">
</a>
Expand Down

0 comments on commit 3869eea

Please sign in to comment.