mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2025-11-01 08:03:01 +00:00
Break a lot of stuff
Starring: * Broken error localization for now (got in the way) * The title for error pages is the same for all errors (who cares anyway) * New bugs * The brand new /rename/ handler
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
{% import "net/http" %}
|
||||
{% import "github.com/bouncepaw/mycorrhiza/l18n" %}
|
||||
|
||||
{% func DeleteAskHTML(rq *http.Request, hyphaName string, isOld bool) %}
|
||||
{% func DeleteAskHTML(rq *http.Request, hyphaName string) %}
|
||||
{% code
|
||||
lc := l18n.FromRequest(rq)
|
||||
%}
|
||||
@@ -16,7 +16,7 @@
|
||||
{%= modalEnd(hyphaName, true, lc) %}
|
||||
{% endfunc %}
|
||||
|
||||
{% func UnattachAskHTML(rq *http.Request, hyphaName string, isOld bool) %}
|
||||
{% func UnattachAskHTML(rq *http.Request, hyphaName string) %}
|
||||
{% code
|
||||
lc := l18n.FromRequest(rq)
|
||||
%}
|
||||
@@ -29,7 +29,7 @@
|
||||
{%= modalEnd(hyphaName, true, lc) %}
|
||||
{% endfunc %}
|
||||
|
||||
{% func RenameAskHTML(rq *http.Request, hyphaName string, isOld bool) %}
|
||||
{% func RenameAskHTML(rq *http.Request, hyphaName string) %}
|
||||
{% code
|
||||
lc := l18n.FromRequest(rq)
|
||||
%}
|
||||
|
||||
@@ -27,7 +27,7 @@ var (
|
||||
)
|
||||
|
||||
//line views/modal.qtpl:5
|
||||
func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
||||
func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
|
||||
//line views/modal.qtpl:5
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
@@ -65,22 +65,22 @@ func StreamDeleteAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:17
|
||||
func WriteDeleteAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
||||
func WriteDeleteAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
|
||||
//line views/modal.qtpl:17
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/modal.qtpl:17
|
||||
StreamDeleteAskHTML(qw422016, rq, hyphaName, isOld)
|
||||
StreamDeleteAskHTML(qw422016, rq, hyphaName)
|
||||
//line views/modal.qtpl:17
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/modal.qtpl:17
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:17
|
||||
func DeleteAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
||||
func DeleteAskHTML(rq *http.Request, hyphaName string) string {
|
||||
//line views/modal.qtpl:17
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/modal.qtpl:17
|
||||
WriteDeleteAskHTML(qb422016, rq, hyphaName, isOld)
|
||||
WriteDeleteAskHTML(qb422016, rq, hyphaName)
|
||||
//line views/modal.qtpl:17
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/modal.qtpl:17
|
||||
@@ -91,7 +91,7 @@ func DeleteAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:19
|
||||
func StreamUnattachAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
||||
func StreamUnattachAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
|
||||
//line views/modal.qtpl:19
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
@@ -124,22 +124,22 @@ func StreamUnattachAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaNam
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:30
|
||||
func WriteUnattachAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
||||
func WriteUnattachAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
|
||||
//line views/modal.qtpl:30
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/modal.qtpl:30
|
||||
StreamUnattachAskHTML(qw422016, rq, hyphaName, isOld)
|
||||
StreamUnattachAskHTML(qw422016, rq, hyphaName)
|
||||
//line views/modal.qtpl:30
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/modal.qtpl:30
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:30
|
||||
func UnattachAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
||||
func UnattachAskHTML(rq *http.Request, hyphaName string) string {
|
||||
//line views/modal.qtpl:30
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/modal.qtpl:30
|
||||
WriteUnattachAskHTML(qb422016, rq, hyphaName, isOld)
|
||||
WriteUnattachAskHTML(qb422016, rq, hyphaName)
|
||||
//line views/modal.qtpl:30
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/modal.qtpl:30
|
||||
@@ -150,7 +150,7 @@ func UnattachAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:32
|
||||
func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
||||
func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName string) {
|
||||
//line views/modal.qtpl:32
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
@@ -201,22 +201,22 @@ func StreamRenameAskHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:49
|
||||
func WriteRenameAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string, isOld bool) {
|
||||
func WriteRenameAskHTML(qq422016 qtio422016.Writer, rq *http.Request, hyphaName string) {
|
||||
//line views/modal.qtpl:49
|
||||
qw422016 := qt422016.AcquireWriter(qq422016)
|
||||
//line views/modal.qtpl:49
|
||||
StreamRenameAskHTML(qw422016, rq, hyphaName, isOld)
|
||||
StreamRenameAskHTML(qw422016, rq, hyphaName)
|
||||
//line views/modal.qtpl:49
|
||||
qt422016.ReleaseWriter(qw422016)
|
||||
//line views/modal.qtpl:49
|
||||
}
|
||||
|
||||
//line views/modal.qtpl:49
|
||||
func RenameAskHTML(rq *http.Request, hyphaName string, isOld bool) string {
|
||||
func RenameAskHTML(rq *http.Request, hyphaName string) string {
|
||||
//line views/modal.qtpl:49
|
||||
qb422016 := qt422016.AcquireByteBuffer()
|
||||
//line views/modal.qtpl:49
|
||||
WriteRenameAskHTML(qb422016, rq, hyphaName, isOld)
|
||||
WriteRenameAskHTML(qb422016, rq, hyphaName)
|
||||
//line views/modal.qtpl:49
|
||||
qs422016 := string(qb422016.B)
|
||||
//line views/modal.qtpl:49
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<nav class="hypha-info">
|
||||
<ul class="hypha-info__list">
|
||||
{%= hyphaInfoEntry(h, u, "history", lc.Get("ui.history_link")) %}
|
||||
{%= hyphaInfoEntry(h, u, "rename-ask", lc.Get("ui.rename_link")) %}
|
||||
{%= hyphaInfoEntry(h, u, "rename", lc.Get("ui.rename_link")) %}
|
||||
{%= hyphaInfoEntry(h, u, "delete-ask", lc.Get("ui.delete_link")) %}
|
||||
{%= hyphaInfoEntry(h, u, "text", lc.Get("ui.text_link")) %}
|
||||
{%= hyphaInfoEntry(h, u, "attachment", lc.Get("ui.attachment_link")) %}
|
||||
|
||||
@@ -122,7 +122,7 @@ func streamhyphaInfo(qw422016 *qt422016.Writer, rq *http.Request, h hyphae.Hypha
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
//line views/nav.qtpl:26
|
||||
streamhyphaInfoEntry(qw422016, h, u, "rename-ask", lc.Get("ui.rename_link"))
|
||||
streamhyphaInfoEntry(qw422016, h, u, "rename", lc.Get("ui.rename_link"))
|
||||
//line views/nav.qtpl:26
|
||||
qw422016.N().S(`
|
||||
`)
|
||||
|
||||
Reference in New Issue
Block a user