parent
479caef353
commit
cbd287e20e
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"local/notes-server/config"
|
"local/notes-server/config"
|
||||||
"local/notes-server/filetree"
|
"local/notes-server/filetree"
|
||||||
"log"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"path"
|
"path"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
@ -104,7 +103,6 @@ func (s *Server) htmlAttachments(w http.ResponseWriter, urlPath string) {
|
||||||
lines[i] = strings.ReplaceAll(lines[i], `href="/notes`, `href="/raw`)
|
lines[i] = strings.ReplaceAll(lines[i], `href="/notes`, `href="/raw`)
|
||||||
}
|
}
|
||||||
files = strings.Join(lines, "\n")
|
files = strings.Join(lines, "\n")
|
||||||
log.Println(files)
|
|
||||||
fmt.Fprintf(w, `<div style='display:inline-block' class="attachments">
|
fmt.Fprintf(w, `<div style='display:inline-block' class="attachments">
|
||||||
<details>
|
<details>
|
||||||
<summary style="display: flex">
|
<summary style="display: flex">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue