edit_template_controller.rb 301 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 class EditTemplateController < ApplicationController uses_flexible_template :edit => true, :owner => 'owner' def flexible_template_block_dict(str) { 'MainBlock' => _("Main Block"), 'ListBlock' => _("List Block"), 'LinkBlock' => _("Link Block") }[str] || str end end