summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Minko <vitaly.minko@gmail.com>2019-09-15 08:02:35 +0300
committerVitaly Minko <vitaly.minko@gmail.com>2019-09-15 08:02:35 +0300
commitbe78e11dae1ed64fddb65bfa8fc2365737c60cf7 (patch)
treef8206bfe736608f80f8565571f115546a796a447
parentca7e5449d768235c7c21c884778a012d7338ad58 (diff)
Fixed a bug in the Web UI for listing operations on messages.HEADmaster
-rw-r--r--cmd/dscuss-web/controller/handle_thread.go2
-rw-r--r--cmd/dscuss-web/view/thread.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/dscuss-web/controller/handle_thread.go b/cmd/dscuss-web/controller/handle_thread.go
index bc8b2c9..199c346 100644
--- a/cmd/dscuss-web/controller/handle_thread.go
+++ b/cmd/dscuss-web/controller/handle_thread.go
@@ -76,7 +76,7 @@ func handleThread(w http.ResponseWriter, r *http.Request, l *dscuss.LoginHandle,
view.Render(w, "thread.html", map[string]interface{}{
"Common": cd,
"IsFound": isFound,
- "ID": t.ID,
+ "ID": idStr,
"Subject": t.Subject,
"Text": t.Text,
"DateWritten": t.DateWritten,
diff --git a/cmd/dscuss-web/view/thread.go b/cmd/dscuss-web/view/thread.go
index 98dab79..a581290 100644
--- a/cmd/dscuss-web/view/thread.go
+++ b/cmd/dscuss-web/view/thread.go
@@ -43,7 +43,7 @@ const threadHTML = `
{{ else }}
<div class="row">
<div class="alert">Requested thread was not found.</div>
- <a href="/oper/list?id={{ .ID }}">View operations</a> on this thread.
+ <a href="/oper/list?type=msg&id={{ .ID }}">View operations</a> on this thread.
</div>
{{ end }}