Skip to content

Commit

Permalink
feat(story): Adding upload from the story, please @simrobin
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jan 30, 2023
1 parent 8467afc commit 1338711
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions cmd/fibr/templates/story.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@

<link rel="preload" as="image" href="{{ url "/svg/link?fill=%23272727" }}">

{{ if .Request.CanEdit }}
<link rel="preload" as="image" href="{{ url "/svg/upload?fill=aliceblue" }}">

{{ template "upload-modal" . }}
{{ end }}

{{ if not .Request.Share.Story }}
<link rel="preload" as="image" href="{{ url "/svg/list?fill=aliceblue" }}">
<link rel="preload" as="image" href="{{ url "/svg/grid?fill=aliceblue" }}">
Expand Down Expand Up @@ -41,6 +47,15 @@
overflow: auto;
}

.upload-modal:target {
display: flex;
z-index: 5;
}

.upload-modal:target ~ .content {
pointer-events: none;
}

#story-display {
background-color: var(--primary);
}
Expand Down Expand Up @@ -152,6 +167,12 @@

<span class="flex-grow"></span>

{{ if .Request.CanEdit }}
<a id="upload-button-link" href="#upload-modal" class="button button-icon" title="Upload file">
<img class="icon" src="{{ url "/svg/upload?fill=aliceblue" }}" alt="upload">
</a>
{{ end }}

{{ if .HasMap }}
<a class="padding" href="#map" title="View on map">
<img class="icon" src="{{ url "/svg/map?fill=aliceblue" }}" alt="map">
Expand Down

0 comments on commit 1338711

Please sign in to comment.