edit_template_controller.rb 301 Bytes
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