Commit a6a70bfecedd08c27d46cf63de0dee7361013ea1
1 parent
202d2745
Exists in
staging
and in
42 other branches
ActionItem0: updating block and boxes
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@163 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
11 additions
and
1 deletions
Show diff stats
app/controllers/application.rb
app/controllers/edit_template_controller.rb
| ... | ... | @@ -6,4 +6,13 @@ class EditTemplateController < ApplicationController |
| 6 | 6 | Profile.find(1) |
| 7 | 7 | end |
| 8 | 8 | |
| 9 | + def flexible_template_dict(str) | |
| 10 | + { | |
| 11 | + 'MainBlock' => _("Main Block"), | |
| 12 | + 'ListBlock' => _("List Block"), | |
| 13 | + 'LinkBlock' => _("Link Block") | |
| 14 | + }[str] || str | |
| 15 | + end | |
| 16 | + | |
| 17 | + | |
| 9 | 18 | end | ... | ... |
db/migrate/005_manage_template_migration.rb