completed manage conference list
This commit is contained in:
+5
-2
@@ -524,14 +524,17 @@ var amContextRecycleBin chan *amContext
|
||||
* Standard Go error status.
|
||||
*/
|
||||
func newContext(ctxt echo.Context) (*amContext, error) {
|
||||
rc := freeContext.Get().(*amContext)
|
||||
if rc == nil {
|
||||
var rc *amContext
|
||||
tmp := freeContext.Get()
|
||||
if tmp == nil {
|
||||
rc = &amContext{
|
||||
rendervars: make(jet.VarMap),
|
||||
frameTitle: "",
|
||||
frameMeta: make(map[int]map[string]string),
|
||||
outputType: "",
|
||||
}
|
||||
} else {
|
||||
rc = tmp.(*amContext)
|
||||
}
|
||||
|
||||
var err error
|
||||
|
||||
@@ -55,3 +55,29 @@ messagedefs:
|
||||
tone: "green"
|
||||
icon: "✗"
|
||||
text: "No, Cancel"
|
||||
- id: "deleteConf"
|
||||
title: "Delete Conference"
|
||||
tone: "red"
|
||||
destructive: true
|
||||
message: "You are about to delete a conference!"
|
||||
warningIcon: "💣"
|
||||
warningLines:
|
||||
- text: "Warning: This action cannot be undone!"
|
||||
bold: true
|
||||
- text: "Deleting this conference will permanently remove it and all its topics from the system."
|
||||
bold: false
|
||||
- text: "Hundreds or even thousands of conference posts will be lost forever."
|
||||
bold: false
|
||||
buttons:
|
||||
- id: "yes"
|
||||
link: "placeholder"
|
||||
confirm: true
|
||||
tone: "red"
|
||||
icon: "✓"
|
||||
text: "Yes, Delete It"
|
||||
- id: "no"
|
||||
link: "placeholder"
|
||||
confirm: false
|
||||
tone: "green"
|
||||
icon: "✗"
|
||||
text: "No, Cancel"
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
{{ end }}
|
||||
</td>
|
||||
<td class="px-4 py-3 whitespace-nowrap text-center w-12">
|
||||
<a href="/TODO" class="text-2xl hover:scale-125 inline-block transition-transform"
|
||||
<a href="{{ baseUrl }}/del/{{ c.Alias }}" class="text-2xl hover:scale-125 inline-block transition-transform"
|
||||
title="Delete Conference">❌</a>
|
||||
</td>
|
||||
<td class="px-4 py-3 text-sm">
|
||||
|
||||
Reference in New Issue
Block a user