ixtlan 0.2.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. data/History.txt +49 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Manifest.txt +73 -48
  4. data/Rakefile +1 -1
  5. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/gwt_ixtlan_datamapper_rspec_scaffold_generator.rb +3 -3
  6. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/AbstractApplicationResourceTestGwt.java +1 -1
  7. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Fields.java +1 -1
  8. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Model.java +2 -2
  9. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/ModelFactory.java +2 -2
  10. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Screen.java +2 -2
  11. data/generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/TestGwt.java +2 -2
  12. data/generators/ixtlan_datamapper_rspec_model/ixtlan_datamapper_rspec_model_generator.rb +1 -1
  13. data/generators/ixtlan_datamapper_rspec_scaffold/ixtlan_datamapper_rspec_scaffold_generator.rb +4 -4
  14. data/generators/ixtlan_datamapper_rspec_scaffold/templates/guard.rb +7 -7
  15. data/generators/ixtlan_datamapper_rspec_scaffold/templates/i18n.rb +1 -1
  16. data/generators/ixtlan_datamapper_rspec_scaffold/templates/layout.html.erb +20 -0
  17. data/ixtlan_rails_templates.rb +537 -0
  18. data/lib/ixtlan/audit_config.rb +5 -5
  19. data/lib/ixtlan/child_path.rb +2 -2
  20. data/lib/ixtlan/cms_script.rb +4 -4
  21. data/lib/ixtlan/controllers/authentications_controller.rb +7 -2
  22. data/lib/ixtlan/controllers/configurations_controller.rb +15 -6
  23. data/lib/ixtlan/controllers/domains_controller.rb +99 -0
  24. data/lib/ixtlan/controllers/groups_controller.rb +105 -0
  25. data/lib/ixtlan/controllers/locales_controller.rb +99 -0
  26. data/lib/ixtlan/controllers/permissions_controller.rb +5 -0
  27. data/lib/ixtlan/controllers/phrases_controller.rb +26 -22
  28. data/lib/ixtlan/controllers/search_query.rb +24 -0
  29. data/lib/ixtlan/controllers/texts_controller.rb +5 -5
  30. data/lib/ixtlan/controllers/users_controller.rb +117 -0
  31. data/lib/ixtlan/controllers/word_bundles_controller.rb +13 -8
  32. data/lib/ixtlan/digest.rb +3 -3
  33. data/lib/ixtlan/guard.rb +11 -12
  34. data/lib/ixtlan/logger_config.rb +11 -11
  35. data/lib/ixtlan/mailer/error_notification.erb +1 -0
  36. data/lib/ixtlan/mailer/password.erb +1 -0
  37. data/lib/ixtlan/mailer.rb +27 -0
  38. data/lib/ixtlan/models/authentication.rb +9 -6
  39. data/lib/ixtlan/models/configuration.rb +21 -37
  40. data/lib/ixtlan/models/configuration_locale.rb +3 -3
  41. data/lib/ixtlan/models/domain.rb +44 -0
  42. data/lib/ixtlan/models/domain_group_user.rb +22 -0
  43. data/lib/ixtlan/models/group.rb +82 -16
  44. data/lib/ixtlan/models/group_locale_user.rb +4 -4
  45. data/lib/ixtlan/models/group_user.rb +7 -7
  46. data/lib/ixtlan/models/i18n_text.rb +26 -26
  47. data/lib/ixtlan/models/locale.rb +17 -5
  48. data/lib/ixtlan/models/permission.rb +3 -2
  49. data/lib/ixtlan/models/phrase.rb +15 -15
  50. data/lib/ixtlan/models/role.rb +5 -5
  51. data/lib/ixtlan/models/translation.rb +9 -9
  52. data/lib/ixtlan/models/update_children.rb +74 -0
  53. data/lib/ixtlan/models/user.rb +108 -16
  54. data/lib/ixtlan/models/word.rb +2 -1
  55. data/lib/ixtlan/models.rb +1 -0
  56. data/lib/ixtlan/modified_by.rb +9 -7
  57. data/lib/ixtlan/monkey_patches.rb +5 -5
  58. data/lib/ixtlan/optimistic_persistence.rb +2 -2
  59. data/lib/ixtlan/optimistic_persistence_module.rb +3 -3
  60. data/lib/ixtlan/optimistic_persistence_validation.rb +2 -2
  61. data/lib/ixtlan/passwords.rb +15 -13
  62. data/lib/ixtlan/rails/error_handling.rb +41 -40
  63. data/lib/ixtlan/rails/guard.rb +0 -1
  64. data/lib/ixtlan/rails/migrations.rb +75 -0
  65. data/lib/ixtlan/rails/session_timeout.rb +16 -14
  66. data/lib/ixtlan/rails/timestamps_modified_by_filter.rb +1 -1
  67. data/lib/ixtlan/rails/unrestful_authentication.rb +4 -4
  68. data/lib/ixtlan/rolling_file.rb +3 -3
  69. data/lib/ixtlan/session.rb +4 -3
  70. data/lib/ixtlan/user_logger.rb +13 -9
  71. data/lib/ixtlan/version.rb +1 -1
  72. data/spec/authentication_spec.rb +1 -1
  73. data/spec/guard_spec.rb +4 -4
  74. data/spec/guards/samples.rb +7 -7
  75. data/spec/modified_by_spec.rb +82 -0
  76. data/spec/optimistic_persistence_spec.rb +58 -0
  77. data/spec/phrase_spec.rb +119 -0
  78. data/spec/session_timeout_spec.rb +59 -0
  79. data/spec/spec_helper.rb +6 -5
  80. data/spec/text_collection_spec.rb +88 -0
  81. data/spec/text_spec.rb +105 -0
  82. data/spec/unrestful_authentication_spec.rb +142 -0
  83. data/spec/user_logger_spec.rb +105 -0
  84. data/spec/user_spec.rb +249 -0
  85. data/whitespace.rb +31 -0
  86. metadata +76 -50
  87. data/lib/ixtlan/error_notifier/error_notification.rhtml +0 -1
data/History.txt ADDED
@@ -0,0 +1,49 @@
1
+ === 0.3.0 / 2010-05-24
2
+
3
+ * allow model with to_log to have nice log output
4
+
5
+ * made all controllers nice modules including before_filters
6
+
7
+ * domains/locales work with guard
8
+
9
+ * added migration class for ixtlan models
10
+
11
+ * all models have an ID now
12
+
13
+ * helper for n-m-relations
14
+
15
+ * added search module with helper methods
16
+
17
+ * better audit log
18
+
19
+ === 0.2.4 / 2010-02-22
20
+
21
+ * fixed phrases controller to work
22
+
23
+ === 0.2.3 / 2010-02-03
24
+
25
+ * little fixes to use ixtlan with MRI rails !
26
+
27
+ * adjust generator to new packages of the restful-gwt jars
28
+
29
+ === 0.2.2 / 2010-01-29
30
+
31
+ * symbolize internal map of guard
32
+
33
+ * gwt generator: parametrizied package generated java classes - find client directory and use this as base package
34
+
35
+ * make phrases to work
36
+
37
+ * added code to add screen and testcase for gwt_scaffolding
38
+
39
+ === 0.2.1 / 2009-12-07
40
+
41
+ * stay logged in when deleting a resource
42
+
43
+ * lot's of work to get restful-gwt version 0.2.1 working with login, and basic i18n = dictonory gets loaded after login or in case the a i18n entry is missing a new one gets created if the permissions allow it
44
+
45
+ * the rails template had a lot of version problems after a major refactoring, so lot's of little fixes there
46
+
47
+ === 0.2.0 / 2009-12-07
48
+
49
+ * intial import
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2008 Kristian Meier
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Manifest.txt CHANGED
@@ -1,3 +1,16 @@
1
+ History.txt
2
+ MIT-LICENSE
3
+ Manifest.txt
4
+ README.txt
5
+ Rakefile
6
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/gwt_ixtlan_datamapper_rspec_scaffold_generator.rb
7
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/AbstractApplicationResourceTestGwt.java
8
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Fields.java
9
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/GwtTestSuite.java
10
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Model.java
11
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/ModelFactory.java
12
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Screen.java
13
+ generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/TestGwt.java
1
14
  generators/ixtlan_datamapper_model/ixtlan_datamapper_model_generator.rb
2
15
  generators/ixtlan_datamapper_model/templates/model.rb
3
16
  generators/ixtlan_datamapper_rspec_model/ixtlan_datamapper_rspec_model_generator.rb
@@ -7,72 +20,84 @@ generators/ixtlan_datamapper_rspec_scaffold/templates/controller.rb
7
20
  generators/ixtlan_datamapper_rspec_scaffold/templates/controller_spec.rb
8
21
  generators/ixtlan_datamapper_rspec_scaffold/templates/guard.rb
9
22
  generators/ixtlan_datamapper_rspec_scaffold/templates/i18n.rb
10
- generators/gwt_ixtlan_datamapper_rspec_scaffold/gwt_ixtlan_datamapper_rspec_scaffold_generator.rb
11
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Model.java
12
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/ModelFactory.java
13
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Fields.java
14
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/Screen.java
15
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/TestGwt.java
16
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/GwtTestSuite.java
17
- generators/gwt_ixtlan_datamapper_rspec_scaffold/templates/AbstractApplicationResourceTestGwt.java
18
- lib/models.rb
19
- lib/ixtlan.rb
23
+ generators/ixtlan_datamapper_rspec_scaffold/templates/layout.html.erb
24
+ ixtlan_rails_templates.rb
20
25
  lib/dm-serializer.rb
26
+ lib/dm-serializer/common.rb
27
+ lib/dm-serializer/to_xml.rb
28
+ lib/dm-serializer/xml_serializers.rb
21
29
  lib/dm-serializer/xml_serializers/libxml.rb
22
30
  lib/dm-serializer/xml_serializers/nokogiri.rb
23
31
  lib/dm-serializer/xml_serializers/rexml.rb
24
- lib/dm-serializer/common.rb
25
- lib/dm-serializer/xml_serializers.rb
26
- lib/dm-serializer/to_xml.rb
32
+ lib/ixtlan.rb
33
+ lib/ixtlan/audit_config.rb
34
+ lib/ixtlan/child_path.rb
35
+ lib/ixtlan/cms_script.rb
36
+ lib/ixtlan/controllers/authentications_controller.rb
37
+ lib/ixtlan/controllers/configurations_controller.rb
38
+ lib/ixtlan/controllers/permissions_controller.rb
39
+ lib/ixtlan/controllers/domains_controller.rb
40
+ lib/ixtlan/controllers/groups_controller.rb
41
+ lib/ixtlan/controllers/locales_controller.rb
42
+ lib/ixtlan/controllers/phrases_controller.rb
43
+ lib/ixtlan/controllers/search_query.rb
44
+ lib/ixtlan/controllers/texts_controller.rb
45
+ lib/ixtlan/controllers/users_controller.rb
46
+ lib/ixtlan/controllers/word_bundles_controller.rb
47
+ lib/ixtlan/digest.rb
48
+ lib/ixtlan/guard.rb
49
+ lib/ixtlan/logger_config.rb
50
+ lib/ixtlan/mailer.rb
51
+ lib/ixtlan/mailer/error_notification.erb
52
+ lib/ixtlan/mailer/password.erb
53
+ lib/ixtlan/models.rb
54
+ lib/ixtlan/models/authentication.rb
55
+ lib/ixtlan/models/configuration.rb
56
+ lib/ixtlan/models/configuration_locale.rb
57
+ lib/ixtlan/models/domain.rb
58
+ lib/ixtlan/models/domain_group_user.rb
59
+ lib/ixtlan/models/group.rb
27
60
  lib/ixtlan/models/group_locale_user.rb
28
- lib/ixtlan/models/role.rb
61
+ lib/ixtlan/models/group_user.rb
62
+ lib/ixtlan/models/i18n_text.rb
63
+ lib/ixtlan/models/locale.rb
64
+ lib/ixtlan/models/permission.rb
29
65
  lib/ixtlan/models/phrase.rb
66
+ lib/ixtlan/models/role.rb
30
67
  lib/ixtlan/models/translation.rb
68
+ lib/ixtlan/models/update_children.rb
31
69
  lib/ixtlan/models/user.rb
32
- lib/ixtlan/models/permission.rb
33
- lib/ixtlan/models/locale.rb
34
- lib/ixtlan/models/configuration_locale.rb
35
70
  lib/ixtlan/models/word.rb
36
- lib/ixtlan/models/configuration.rb
37
- lib/ixtlan/models/authentication.rb
38
- lib/ixtlan/models/i18n_text.rb
39
- lib/ixtlan/models/group_user.rb
40
- lib/ixtlan/models/group.rb
41
- lib/ixtlan/rolling_file.rb
42
- lib/ixtlan/cms_script.rb
43
- lib/ixtlan/child_path.rb
44
- lib/ixtlan/logger_config.rb
45
- lib/ixtlan/models.rb
46
- lib/ixtlan/audit_config.rb
47
- lib/ixtlan/session.rb
48
- lib/ixtlan/optimistic_persistence.rb
49
- lib/ixtlan/monkey_patches.rb
50
71
  lib/ixtlan/modified_by.rb
72
+ lib/ixtlan/monkey_patches.rb
73
+ lib/ixtlan/optimistic_persistence.rb
51
74
  lib/ixtlan/optimistic_persistence_module.rb
52
75
  lib/ixtlan/optimistic_persistence_validation.rb
53
- lib/ixtlan/error_notifier/error_notification.rhtml
54
- lib/ixtlan/controllers/texts_controller.rb
55
- lib/ixtlan/controllers/phrases_controller.rb
56
- lib/ixtlan/controllers/permissions_controller.rb
57
- lib/ixtlan/controllers/authentications_controller.rb
58
- lib/ixtlan/controllers/configurations_controller.rb
59
- lib/ixtlan/controllers/word_bundles_controller.rb
60
- lib/ixtlan/guard.rb
76
+ lib/ixtlan/passwords.rb
61
77
  lib/ixtlan/rails/audit.rb
62
78
  lib/ixtlan/rails/error_handling.rb
63
- lib/ixtlan/rails/unrestful_authentication.rb
79
+ lib/ixtlan/rails/guard.rb
80
+ lib/ixtlan/rails/migrations.rb
64
81
  lib/ixtlan/rails/session_timeout.rb
65
82
  lib/ixtlan/rails/timestamps_modified_by_filter.rb
66
- lib/ixtlan/rails/guard.rb
67
- lib/ixtlan/passwords.rb
68
- lib/ixtlan/digest.rb
69
- lib/ixtlan/version.rb
83
+ lib/ixtlan/rails/unrestful_authentication.rb
84
+ lib/ixtlan/rolling_file.rb
85
+ lib/ixtlan/session.rb
70
86
  lib/ixtlan/user_logger.rb
71
- Manifest.txt
72
- Rakefile
73
- README.txt
87
+ lib/ixtlan/version.rb
88
+ lib/models.rb
74
89
  spec/authentication_spec.rb
75
90
  spec/guard_spec.rb
76
91
  spec/guards/samples.rb
77
- spec/spec_helper.rb
92
+ spec/modified_by_spec.rb
93
+ spec/optimistic_persistence_spec.rb
94
+ spec/phrase_spec.rb
95
+ spec/session_timeout_spec.rb
78
96
  spec/spec.opts
97
+ spec/spec_helper.rb
98
+ spec/text_collection_spec.rb
99
+ spec/text_spec.rb
100
+ spec/unrestful_authentication_spec.rb
101
+ spec/user_logger_spec.rb
102
+ spec/user_spec.rb
103
+ whitespace.rb
data/Rakefile CHANGED
@@ -40,7 +40,7 @@ YARD::Rake::YardocTask.new
40
40
 
41
41
  module Datamapper4Rails
42
42
  class IntegrationTest
43
- def command(command)
43
+ def command(command)
44
44
  FileUtils.cd(@directory) do
45
45
  unless system("#{command}")
46
46
  puts
@@ -15,7 +15,7 @@ class GwtIxtlanDatamapperRspecScaffoldGenerator < IxtlanDatamapperRspecScaffoldG
15
15
  def find_client_dir(dir)
16
16
  dir.entries.each do |entry|
17
17
  path = File.join(dir.path, entry)
18
- if File.directory? path
18
+ if File.directory? path
19
19
  if entry == "client"
20
20
  return path
21
21
  elsif entry != ".." && entry != "."
@@ -32,7 +32,7 @@ class GwtIxtlanDatamapperRspecScaffoldGenerator < IxtlanDatamapperRspecScaffoldG
32
32
  m = super
33
33
 
34
34
  base = "src/main/java/"
35
-
35
+
36
36
  basedir = find_client_dir(Dir.new(base))
37
37
  basedir_test = basedir.sub(/main/, 'test')
38
38
 
@@ -76,7 +76,7 @@ module Rails
76
76
  "#{match}"
77
77
  end
78
78
  sentinel = 'ActionController::Routing::Routes.draw do |map|'
79
-
79
+
80
80
  logger.route "map.resources #{resource_list}" + (skip_route ? " - skipped" : " - added")
81
81
  unless skip_route
82
82
  gsub_file 'config/routes.rb', /(#{Regexp.escape(sentinel)})/mi do |match|
@@ -10,4 +10,4 @@ abstract class AbstractApplicationResourceTestGwt<E extends Resource<E>>
10
10
  public String getModuleName() {
11
11
  return "<%= package.sub(/\.client/, '') %>.Application";
12
12
  }
13
- }
13
+ }
@@ -40,4 +40,4 @@ public class <%= class_name %>Fields extends ResourceFields<<%= class_name %>> {
40
40
  }<% if attribute.type == :integer %>, 0, 123456<% elsif attribute.type == :boolean %><% else %>, true, 64<% end -%>);
41
41
  <% end -%>
42
42
  }
43
- }
43
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ *
3
3
  */
4
4
  package <%= package %>.models;
5
5
 
@@ -100,4 +100,4 @@ public class <%= class_name %> extends ResourceWithID<<%= class_name %>> {
100
100
  return builder.toString();
101
101
  }
102
102
 
103
- }
103
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ *
3
3
  */
4
4
  package <%= package %>.models;
5
5
 
@@ -47,4 +47,4 @@ public class <%= class_name %>Factory extends ResourceFactory<<%= class_name %>>
47
47
  return null;
48
48
  }
49
49
 
50
- }
50
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ *
3
3
  */
4
4
  package <%= package %>.views.<%= plural_name %>;
5
5
 
@@ -57,4 +57,4 @@ public class <%= class_name %>Screen extends ResourceScreen<<%= class_name %>> {
57
57
  notifications);
58
58
  }
59
59
 
60
- }
60
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- *
2
+ *
3
3
  */
4
4
  package <%= package %>.models;
5
5
 
@@ -48,7 +48,7 @@ public class <%= class_name %>TestGwt extends AbstractApplicationResourceTestGwt
48
48
  @Override
49
49
  protected ResourceFactory<<%= class_name %>> factorySetUp() {
50
50
  return new <%= class_name %>Factory(this.repository,
51
- this.notifications<% unless options[:skip_modified_by] -%>, this.userFactory<% end -%>);
51
+ this.notifications<% unless options[:skip_modified_by] -%>, this.userFactory<% end -%>);
52
52
  }
53
53
 
54
54
  @Override
@@ -8,7 +8,7 @@ class IxtlanDatamapperRspecModelGenerator < DatamapperRspecModelGenerator
8
8
  overlay_dirs.add_generator("ixtlan_datamapper_model")
9
9
  super
10
10
  end
11
-
11
+
12
12
  def add_options!(opt)
13
13
  opt.separator ''
14
14
  opt.separator 'Options:'
@@ -9,13 +9,13 @@ class IxtlanDatamapperRspecScaffoldGenerator < DatamapperRspecScaffoldGenerator
9
9
  overlay_dirs.add_generator("datamapper_rspec_scaffold")
10
10
 
11
11
  m = super
12
-
13
- unless options[:skip_guard]
12
+
13
+ unless options[:skip_guard]
14
14
  m.directory(File.join('app/guards', controller_class_path))
15
15
  m.template 'guard.rb', File.join('app/guards', controller_class_path, "#{table_name}_guard.rb")
16
16
  end
17
-
18
- if options[:i18n]
17
+
18
+ if options[:i18n]
19
19
  m.directory(File.join('config/locales', controller_class_path))
20
20
  m.template 'i18n.rb', File.join('config/locales', controller_class_path, "#{table_name}.yml")
21
21
  end
@@ -1,8 +1,8 @@
1
- Ixtlan::Guard.initialize(:<%= table_name %>,
2
- { :index => [],
3
- :show => [],
4
- :edit => [],
5
- :update => [],
6
- :new => [],
7
- :create => [],
1
+ Ixtlan::Guard.initialize(:<%= table_name %>,
2
+ { :index => [],
3
+ :show => [],
4
+ :edit => [],
5
+ :update => [],
6
+ :new => [],
7
+ :create => [],
8
8
  :destroy => [] })
@@ -8,4 +8,4 @@ en:
8
8
  list: <%= singular_name %>list
9
9
  <% for attribute in attributes -%>
10
10
  <%= attribute.column.name %>: <%= attribute.column.human_name %>
11
- <% end -%>
11
+ <% end -%>
@@ -0,0 +1,20 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
7
+ <%% if controller.send :current_user %>
8
+ <meta http-equiv="refresh" content="<%%= controller.send(:session_timeout) * 60 %>" />
9
+ <%% end -%>
10
+ <title><%= controller_class_name %>: <%%= controller.action_name %></title>
11
+ <%%= stylesheet_link_tag 'scaffold' %>
12
+ </head>
13
+ <body>
14
+
15
+ <p style="color: green"><%%= flash[:notice] %></p>
16
+
17
+ <%%= yield %>
18
+
19
+ </body>
20
+ </html>