Commit 1a3e503ac07466e79d1afb9b81c14635ead8c856
1 parent
ea4fab1c
Exists in
master
and in
29 other branches
ActionItem3:
* adding a non-customizable layout for features_controller * creating a default virtual community in migration git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@82 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
5 changed files
with
26 additions
and
3 deletions
Show diff stats
app/controllers/application.rb
... | ... | @@ -52,8 +52,9 @@ class ApplicationController < ActionController::Base |
52 | 52 | end |
53 | 53 | end |
54 | 54 | |
55 | - def self.acts_as_admin_controller | |
55 | + def self.acts_as_virtual_community_admin_controller | |
56 | 56 | before_filter :load_admin_controller |
57 | + layout 'virtual_community_admin' | |
57 | 58 | end |
58 | 59 | def load_admin_controller |
59 | 60 | # TODO: check access control | ... | ... |
app/controllers/features_controller.rb
... | ... | @@ -0,0 +1,20 @@ |
1 | +<html> | |
2 | + <head> | |
3 | + <%= javascript_include_tag :defaults %> | |
4 | + <%= javascript_include_tag_template @chosen_template %> | |
5 | + <%= stylesheet_link_tag_template @chosen_template %> | |
6 | + | |
7 | + </head> | |
8 | + <body> | |
9 | + | |
10 | + <div id='main'> | |
11 | + <%= yield %> | |
12 | + </div> | |
13 | + | |
14 | + <div id="footer"> | |
15 | + footer content | |
16 | + </div> | |
17 | + | |
18 | + </body> | |
19 | + | |
20 | +</html> | ... | ... |
db/migrate/001_create_virtual_communities.rb
test/functional/features_controller_test.rb