PeterCoulton-rotten-generators 0.7.0 → 0.7.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,7 @@
4
4
  %head
5
5
  %meta{"http-equiv" => 'Content-Type', :content => 'text/html;charset=utf-8'}
6
6
 
7
- %title
8
- = h(yield(:title) || "Untitled")
7
+ %title= h( "<%= app_title %> | " + (yield(:title) || "Untitled"))
9
8
 
10
9
  =stylesheet_link_tag ["screen"], :media => "screen"
11
10
  =stylesheet_link_tag ["print"], :media => "print"
@@ -19,12 +18,28 @@
19
18
  %body
20
19
  #doc
21
20
  #hd
22
- = render :partial => "shared/flash_messages"
23
-
21
+ = render :partial => "shared/header"
22
+
24
23
  #bd
25
- = yield
24
+ = yield(:content) || yield
26
25
 
27
26
  #ft
28
27
  = render :partial => "shared/footer"
29
-
28
+
30
29
  = render :partial => "shared/analytics"
30
+
31
+
32
+ - unless yield(:javascript).nil?
33
+
34
+ - if protect_against_forgery?
35
+ :javascript
36
+ var AUTH_TOKEN = encodeURIComponent(#{form_authenticity_token.inspect})
37
+
38
+ = javascript_include_tag 'jquery-1.3.2.min', 'jquery-iu-1.7.2.min.js'
39
+
40
+ = yield(:javascript_includes)
41
+
42
+ = javascript_include_tag 'application'
43
+
44
+ :javascript
45
+ #{yield(:javascript)}
@@ -0,0 +1,11 @@
1
+ - content_for :layout_name, "one_column"
2
+ - content_for :content do
3
+ = render :partial => "shared/flash_messages"
4
+ .main
5
+ .content
6
+ - if show_title?
7
+ %h2=h yield(:title)
8
+ = yield(:one_column_content) || yield
9
+
10
+ = render :file => 'layouts/application'
11
+
@@ -5,6 +5,6 @@
5
5
 
6
6
  :javascript
7
7
  try {
8
- var pageTracker = _gat._getTracker("UA-231207-7");
8
+ var pageTracker = _gat._getTracker("UA-231207-?");
9
9
  pageTracker._trackPageview();
10
10
  } catch(err) {}
@@ -1,2 +1,12 @@
1
- - flash.each do |name, msg|
2
- = content_tag :div, msg, :id => "flash_#{name}"
1
+ - if flash.length > 0
2
+ .flash_messages
3
+ - flash.each do |name, msg|
4
+ = content_tag :div, msg, :id => "flash_#{name}"
5
+
6
+ - content_for :javascript do
7
+ :plain
8
+ $(".flash_messages").wait(3000, function() {
9
+ $(this).slideUp('slow');
10
+ }
11
+ )
12
+
@@ -1 +1,15 @@
1
+ %ul#navigation
2
+ %li#links
3
+ %ul
4
+ %li= link_to "Help/Support"
5
+ %li.last= link_to "Feedback"
6
+ %li#info
7
+ %ul
8
+ %li#copyright Copyright &copy; 2009 Peter Coulton
9
+ %li#version= version
10
+ %li#validators
11
+ = link_to image_tag("http://www.w3.org/Icons/valid-xhtml10-blue", :alt => "Valid XHTML 1.0 Strict" ), "http://validator.w3.org/check?uri=referer"
12
+ = link_to image_tag("http://jigsaw.w3.org/css-validator/images/vcss-blue", :alt => "Valid CSS!" ), "http://jigsaw.w3.org/css-validator/check/referer"
13
+
14
+
1
15
 
@@ -0,0 +1,5 @@
1
+ %h1
2
+ = yield(:heading) || "<%= app_title %>"
3
+ %span.beta Beta
4
+
5
+ = render :partial => "shared/navigation"
@@ -0,0 +1,3 @@
1
+ %ul#navigation
2
+ %li.first= link_to "Home"
3
+
@@ -0,0 +1,13 @@
1
+ - unless yield(:sidebar)
2
+ :maruku
3
+ ### Sidebar
4
+
5
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
6
+ incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
7
+ exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
8
+ irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
9
+ nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa
10
+ qui officia deserunt mollit anim id est laborum.
11
+
12
+ - else
13
+ = yield(:sidebar)
@@ -0,0 +1,15 @@
1
+ - content_for :layout_name, "two_column_right"
2
+ - content_for :content do
3
+ = render :partial => "shared/flash_messages"
4
+ .main
5
+ .content
6
+ - if show_title?
7
+ %h2=h yield(:title)
8
+ = yield(:two_column_content) || yield
9
+
10
+ .sidebar
11
+ .content
12
+ = render :partial => "shared/sidebar"
13
+
14
+ = render :file => 'layouts/application'
15
+
@@ -0,0 +1,14 @@
1
+ - content_for :layout_name, "two_column_left"
2
+ - content_for :content do
3
+ = render :partial => "shared/flash_messages"
4
+ .main
5
+ .content
6
+ - if show_title?
7
+ %h2=h yield(:title)
8
+ = yield(:two_column_content) || yield
9
+
10
+ .sidebar
11
+ .content
12
+ = render :partial => "shared/sidebar"
13
+
14
+ = render :file => 'layouts/application'
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rotten-generators}
5
- s.version = "0.7.0"
5
+ s.version = "0.7.12"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Peter Coulton"]
@@ -49,7 +49,10 @@ Gem::Specification.new do |s|
49
49
  "rails_generators/rotten_layout/USAGE",
50
50
  "rails_generators/rotten_layout/rotten_layout_generator.rb",
51
51
  "rails_generators/rotten_layout/templates/helper.rb",
52
+ "rails_generators/rotten_layout/templates/js/jquery-1.3.2.min.js",
53
+ "rails_generators/rotten_layout/templates/js/jquery-ui-1.7.2.min.js",
52
54
  "rails_generators/rotten_layout/templates/layout.html.haml",
55
+ "rails_generators/rotten_layout/templates/one_column.html.haml",
53
56
  "rails_generators/rotten_layout/templates/sass/colour.sass",
54
57
  "rails_generators/rotten_layout/templates/sass/form.sass",
55
58
  "rails_generators/rotten_layout/templates/sass/handheld.sass",
@@ -62,6 +65,11 @@ Gem::Specification.new do |s|
62
65
  "rails_generators/rotten_layout/templates/shared_analytics.html.haml",
63
66
  "rails_generators/rotten_layout/templates/shared_flash_messages.html.haml",
64
67
  "rails_generators/rotten_layout/templates/shared_footer.html.haml",
68
+ "rails_generators/rotten_layout/templates/shared_header.html.haml",
69
+ "rails_generators/rotten_layout/templates/shared_navigation.html.haml",
70
+ "rails_generators/rotten_layout/templates/shared_sidebar.html.haml",
71
+ "rails_generators/rotten_layout/templates/two_column_left.html.haml",
72
+ "rails_generators/rotten_layout/templates/two_column_right.html.haml",
65
73
  "rails_generators/rotten_scaffold/USAGE",
66
74
  "rails_generators/rotten_scaffold/rotten_scaffold_generator.rb",
67
75
  "rails_generators/rotten_scaffold/templates/actions/create.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: PeterCoulton-rotten-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Coulton
@@ -59,7 +59,10 @@ files:
59
59
  - rails_generators/rotten_layout/USAGE
60
60
  - rails_generators/rotten_layout/rotten_layout_generator.rb
61
61
  - rails_generators/rotten_layout/templates/helper.rb
62
+ - rails_generators/rotten_layout/templates/js/jquery-1.3.2.min.js
63
+ - rails_generators/rotten_layout/templates/js/jquery-ui-1.7.2.min.js
62
64
  - rails_generators/rotten_layout/templates/layout.html.haml
65
+ - rails_generators/rotten_layout/templates/one_column.html.haml
63
66
  - rails_generators/rotten_layout/templates/sass/colour.sass
64
67
  - rails_generators/rotten_layout/templates/sass/form.sass
65
68
  - rails_generators/rotten_layout/templates/sass/handheld.sass
@@ -72,6 +75,11 @@ files:
72
75
  - rails_generators/rotten_layout/templates/shared_analytics.html.haml
73
76
  - rails_generators/rotten_layout/templates/shared_flash_messages.html.haml
74
77
  - rails_generators/rotten_layout/templates/shared_footer.html.haml
78
+ - rails_generators/rotten_layout/templates/shared_header.html.haml
79
+ - rails_generators/rotten_layout/templates/shared_navigation.html.haml
80
+ - rails_generators/rotten_layout/templates/shared_sidebar.html.haml
81
+ - rails_generators/rotten_layout/templates/two_column_left.html.haml
82
+ - rails_generators/rotten_layout/templates/two_column_right.html.haml
75
83
  - rails_generators/rotten_scaffold/USAGE
76
84
  - rails_generators/rotten_scaffold/rotten_scaffold_generator.rb
77
85
  - rails_generators/rotten_scaffold/templates/actions/create.rb