jrhicks-static-generators 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -81,11 +81,13 @@ rails_generators/static_gen_specs/USAGE
81
81
  rails_generators/static_scaffold/static_scaffold_generator.rb
82
82
  rails_generators/static_scaffold/templates/controller.rb
83
83
  rails_generators/static_scaffold/templates/fake_data.rake
84
+ rails_generators/static_scaffold/templates/filter_session_base.rb
84
85
  rails_generators/static_scaffold/templates/functional_test.rb
85
86
  rails_generators/static_scaffold/templates/helper.rb
86
87
  rails_generators/static_scaffold/templates/helper_test.rb
87
88
  rails_generators/static_scaffold/templates/layout.html.erb
88
89
  rails_generators/static_scaffold/templates/model.rb
90
+ rails_generators/static_scaffold/templates/model_filter_session.rb
89
91
  rails_generators/static_scaffold/templates/paperclip_tokens.rb
90
92
  rails_generators/static_scaffold/templates/partial_work_area_entry_header.html.erb
91
93
  rails_generators/static_scaffold/templates/partial_work_area_index_header.html.erb
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('static-generators', '0.4.1') do |p|
5
+ Echoe.new('static-generators', '0.4.2') do |p|
6
6
  p.project = "staticgenerators"
7
7
  p.description = "Generate attractive interfaces that are easy to edit."
8
8
  p.url = "http://github.com/jrhicks/static-scaffolds"
@@ -1,6 +1,6 @@
1
1
  <%%=render :partial=>"shared/standard_header"%>
2
2
 
3
- <div class="container showgrid" >
3
+ <div class="container" >
4
4
  <img src="/images/spacer.gif" style="border: 1px; height: 1px; width: 950px;">
5
5
 
6
6
  <div>
@@ -38,7 +38,7 @@ class <%= class_name %> < ActiveRecord::Base
38
38
 
39
39
  def self.search(page)
40
40
  page=1 if not page
41
- Client.paginate :per_page => 12, :page => page, :order => order_preference
41
+ <%=gen_spec.model_name%>.paginate :per_page => 12, :page => page, :order => order_preference
42
42
  # :conditions => ['name like ?', "%#{search}%"], :order => 'company'
43
43
  end
44
44
 
@@ -15,21 +15,21 @@
15
15
  <% for cname, specs in gen_spec.safe_table_view_columns -%>
16
16
  <% case specs[:type] -%>
17
17
  <% when :file -%>
18
- <td align="<%=specs[:align]%>"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
18
+ <td style="text-align: <%=specs[:align]%>;"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
19
19
  <% when :integer -%>
20
- <td align="<%=specs[:align]%>"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
20
+ <td style="text-align: <%=specs[:align]%>;"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
21
21
  <% when :float -%>
22
- <td align="<%=specs[:align]%>"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
22
+ <td style="text-align: <%=specs[:align]%>;"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
23
23
  <% when :decimal -%>
24
- <td align="<%=specs[:align]%>"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
24
+ <td style="text-align: <%=specs[:align]%>;"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
25
25
  <% when :string -%>
26
- <td align="<%=specs[:align]%>"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
26
+ <td style="text-align: <%=specs[:align]%>;"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
27
27
  <% when :photo -%>
28
- <td align="<%=specs[:align]%>"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
28
+ <td style="text-align: <%=specs[:align]%>;"><%%=h <%= gen_spec.singular_name %>.<%= cname %> %></td>
29
29
  <% when :foreign_key -%>
30
- <td align="<%=specs[:align]%>"><%%=(h <%= gen_spec.singular_name %>.<%= gen_spec.belongs_to_name(cname) %>.short_name) if <%= gen_spec.singular_name %>.<%= gen_spec.belongs_to_name(cname) %> -%></td>
30
+ <td style="text-align: <%=specs[:align]%>;"><%%=(h <%= gen_spec.singular_name %>.<%= gen_spec.belongs_to_name(cname) %>.short_name) if <%= gen_spec.singular_name %>.<%= gen_spec.belongs_to_name(cname) %> -%></td>
31
31
  <% when :datetime -%>
32
- <td align="<%=specs[:align]%>"><%%=h <%= gen_spec.singular_name %>.<%= cname %> -%></td>
32
+ <td style="text-align: <%=specs[:align]%>;"><%%=h <%= gen_spec.singular_name %>.<%= cname %> -%></td>
33
33
  <% end -%><% end -%>
34
34
  </tr>
35
35
  <%% end -%>
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{static-generators}
5
- s.version = "0.4.1"
5
+ s.version = "0.4.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Jeffrey Hicks"]
9
- s.date = %q{2009-07-13}
9
+ s.date = %q{2009-07-14}
10
10
  s.description = %q{Generate attractive interfaces that are easy to edit.}
11
11
  s.email = %q{jrhicks (at) gmail (dot) com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "lib/static_generators.rb", "LICENSE", "README.md", "tasks/deployment.rake", "TODO"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jrhicks-static-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Hicks
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-13 00:00:00 -07:00
12
+ date: 2009-07-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency