|
@@ -194,7 +194,11 @@ func show(model string, id uint, format ...string) string {
|
|
|
plural := inflection.Plural(strings.ToLower(model))
|
|
|
|
|
|
args := []string{"tpl_layout", "base", "tpl_content", fmt.Sprintf("%s_%s", plural, action)}
|
|
|
- args = append(args, format...)
|
|
|
+
|
|
|
+ if len(format) > 0 {
|
|
|
+ args = append(args, []string{"format", format[0]}...)
|
|
|
+ }
|
|
|
+
|
|
|
// q := query("tpl_layout", "base", "tpl_content", fmt.Sprintf("%s_%s", plural, action))
|
|
|
q := query(args...)
|
|
|
|