aboutsummaryrefslogtreecommitdiff
path: root/src/guff/views/dialogs/admin/site.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/guff/views/dialogs/admin/site.cr')
-rw-r--r--src/guff/views/dialogs/admin/site.cr4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guff/views/dialogs/admin/site.cr b/src/guff/views/dialogs/admin/site.cr
index 1b6419b..c03cd0a 100644
--- a/src/guff/views/dialogs/admin/site.cr
+++ b/src/guff/views/dialogs/admin/site.cr
@@ -1,5 +1,5 @@
class Guff::Views::Dialogs::Admin::Site < Guff::Views::HTMLView
- TEMPLATES = {
+ OPTION_TEMPLATES = {
y: "<option value='%s' data-slug='%s' selected='selected'>%s</option>",
n: "<option value='%s' data-slug='%s'>%s</option>",
}
@@ -15,7 +15,7 @@ class Guff::Views::Dialogs::Admin::Site < Guff::Views::HTMLView
}
}.map { |row|
tmpl_id = (row[:slug] == "default") ? :y : :n
- TEMPLATES[tmpl_id] % %i{id slug name}.map { |k| row[k] }
+ OPTION_TEMPLATES[tmpl_id] % %i{id slug name}.map { |k| row[k] }
}.join("")
end
end