diff --git a/views/modal.qtpl b/views/modal.qtpl index 3d07c29..30994d6 100644 --- a/views/modal.qtpl +++ b/views/modal.qtpl @@ -11,8 +11,10 @@ hyphaName, ` method="post"`, fmt.Sprintf(lc.Get("ui.ask_delete"), beautifulLink(hyphaName))) %} -{%= modalReallyWant(hyphaName, lc.Get("ui.ask_delete_verb"), lc) %} -
{%s lc.Get("ui.ask_delete_tip") %}
++ {%s= lc.Get("ui.ask_really", &l18n.Replacements{"verb": lc.Get("ui.ask_delete_verb"), "name": fmt.Sprintf("%s", hyphaName)}) %} +
+{%s lc.Get("ui.ask_delete_tip") %}
{%= modalEnd(hyphaName, true, lc) %} {% endfunc %} @@ -25,7 +27,9 @@ hyphaName, ` method="post"`, fmt.Sprintf(lc.Get("ui.ask_remove_media"), beautifulLink(hyphaName))) %} -{%= modalReallyWant(hyphaName, lc.Get("ui.ask_remove_media_verb"), lc) %} ++ {%s= lc.Get("ui.ask_really", &l18n.Replacements{"verb": lc.Get("ui.ask_remove_media_verb"), "name": fmt.Sprintf("%s", hyphaName)}) %} +
{%= modalEnd(hyphaName, true, lc) %} {% endfunc %} @@ -50,10 +54,6 @@ bloody hell !! {%= modalEnd(hyphaName, false, lc) %} {% endfunc %} -{% func modalReallyWant(hyphaName, verb string, lc *l18n.Localizer) %} -{%s= lc.Get("ui.ask_really", &l18n.Replacements{"verb": verb, "name": fmt.Sprintf("%s", hyphaName)}) %}
-{% endfunc %} - {% func modalBegin(path, hyphaName, formAttrs, legend string) %}