scaffold_logic 1.7.5 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.5
1
+ 1.7.6
@@ -117,14 +117,10 @@ module ScaffoldLogic
117
117
  }
118
118
 
119
119
  options[:show] = params[:show] unless params[:show].blank? || params[:show] == 'all'
120
-
121
- html_options = {
122
- :class => "#{classname} #{html_options[:class]}",
123
- :style => "color: white; font-weight: #{params[:by] == field ? "bold" : "normal"}; #{html_options[:style]}",
124
- :title => "Sort by this field"
125
- }
120
+ html_options[:class] = [classname, html_options[:class]].compact * ' ' if classname
126
121
 
127
122
  field_name = params[:labels] && params[:labels][field] ? params[:labels][field] : field.titleize
123
+ html_options[:title] ||= "Sort by #{field_name}"
128
124
 
129
125
  _link = model.is_a?(Symbol) ? eval("#{model}_url(options)") : "/#{model}?#{options.to_params}"
130
126
  link_to(field_name, _link, html_options)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "scaffold_logic"
8
- s.version = "1.7.5"
8
+ s.version = "1.7.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Corey Ehmke"]
12
- s.date = "2011-12-05"
12
+ s.date = "2011-12-11"
13
13
  s.description = "Scaffold and UI generator for SEO Logic applications."
14
14
  s.email = "corey@seologic.com"
15
15
  s.extra_rdoc_files = [
@@ -133,7 +133,7 @@ Gem::Specification.new do |s|
133
133
  ]
134
134
  s.homepage = "http://github.com/ivanoblomov/scaffold_logic"
135
135
  s.require_paths = ["lib"]
136
- s.rubygems_version = "1.8.10"
136
+ s.rubygems_version = "1.8.11"
137
137
  s.summary = "Scaffold and UI generator for SEO Logic applications."
138
138
 
139
139
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scaffold_logic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 7
9
- - 5
10
- version: 1.7.5
9
+ - 6
10
+ version: 1.7.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Corey Ehmke
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-05 00:00:00 Z
18
+ date: 2011-12-11 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Scaffold and UI generator for SEO Logic applications.
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  requirements: []
171
171
 
172
172
  rubyforge_project:
173
- rubygems_version: 1.8.10
173
+ rubygems_version: 1.8.11
174
174
  signing_key:
175
175
  specification_version: 3
176
176
  summary: Scaffold and UI generator for SEO Logic applications.