diff --git a/static/default.css b/static/default.css index 39a2bc7..cea8622 100644 --- a/static/default.css +++ b/static/default.css @@ -786,20 +786,16 @@ kbd { display: inline; } .hypha-info__link { - display: inline-block; color: #999; } .hypha-info__link:hover { color: inherit; } -.hypha-info__link:after { +.hypha-info__entry + .hypha-info__entry { + text-transform: lowercase; +} +.hypha-info__entry:not(:last-child) a::after { content: ", "; - text-decoration: none; display: inline-block; + text-decoration: none; } -.hypha-info__entry:last-of-type a:after { - content: none; -} -.hypha-info__entry:first-of-type a:first-letter { - text-transform: uppercase; -} \ No newline at end of file diff --git a/views/nav.qtpl b/views/nav.qtpl index e295c94..31d6875 100644 --- a/views/nav.qtpl +++ b/views/nav.qtpl @@ -17,11 +17,11 @@ %} {% endfunc %} diff --git a/views/nav.qtpl.go b/views/nav.qtpl.go index df3e025..00fa774 100644 --- a/views/nav.qtpl.go +++ b/views/nav.qtpl.go @@ -106,31 +106,27 @@ func streamhyphaInfo(qw422016 *qt422016.Writer, rq *http.Request, h *hyphae.Hyph diff --git a/web/history.go b/web/history.go index 667f45b..b35519c 100644 --- a/web/history.go +++ b/web/history.go @@ -39,8 +39,10 @@ func handlerHistory(w http.ResponseWriter, rq *http.Request) { } log.Println("Found", len(revs), "revisions for", hyphaName) - util.HTTP200Page(w, - views.BaseHTML(hyphaName, views.HistoryHTML(rq, hyphaName, list), user.FromRequest(rq))) + util.HTTP200Page(w, views.BaseHTML( + fmt.Sprintf("History of \"%s\"", util.BeautifulName(hyphaName)), + views.HistoryHTML(rq, hyphaName, list), + user.FromRequest(rq))) } // handlerRecentChanges displays the /recent-changes/ page. diff --git a/web/mutators.go b/web/mutators.go index ac6a1a5..313d77b 100644 --- a/web/mutators.go +++ b/web/mutators.go @@ -2,11 +2,12 @@ package web import ( "fmt" - "github.com/bouncepaw/mycomarkup" - "github.com/bouncepaw/mycomarkup/mycocontext" "log" "net/http" + "github.com/bouncepaw/mycomarkup" + "github.com/bouncepaw/mycomarkup/mycocontext" + "github.com/gorilla/mux" "github.com/bouncepaw/mycorrhiza/history" @@ -162,7 +163,7 @@ func handlerEdit(w http.ResponseWriter, rq *http.Request) { util.HTTP200Page( w, views.BaseHTML( - "Edit "+hyphaName, + fmt.Sprintf("Edit \"%s\"", util.BeautifulName(hyphaName)), views.EditHTML(rq, hyphaName, textAreaFill, warning), u)) } @@ -197,7 +198,7 @@ func handlerUploadText(w http.ResponseWriter, rq *http.Request) { util.HTTP200Page( w, views.BaseHTML( - "Preview "+hyphaName, + fmt.Sprintf("Preview of \"%s\"", util.BeautifulName(hyphaName)), views.PreviewHTML( rq, hyphaName, diff --git a/web/readers.go b/web/readers.go index f1b797c..d5b25f0 100644 --- a/web/readers.go +++ b/web/readers.go @@ -41,7 +41,7 @@ func handlerAttachment(w http.ResponseWriter, rq *http.Request) { ) util.HTTP200Page(w, views.BaseHTML( - fmt.Sprintf("Attachment of %s", util.BeautifulName(hyphaName)), + fmt.Sprintf("Attachment of \"%s\"", util.BeautifulName(hyphaName)), views.AttachmentMenuHTML(rq, h, u), u)) } @@ -58,7 +58,7 @@ func handlerPrimitiveDiff(w http.ResponseWriter, rq *http.Request) { ) util.HTTP200Page(w, views.BaseHTML( - fmt.Sprintf("Diff of %s at %s", hyphaName, revHash), + fmt.Sprintf("Diff of \"%s\" at %s", util.BeautifulName(hyphaName), revHash), views.PrimitiveDiffHTML(rq, h, u, revHash), u)) }