comfortable_mexican_sofa 1.0.18 → 1.0.19

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.18
1
+ 1.0.19
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{comfortable_mexican_sofa}
8
- s.version = "1.0.18"
8
+ s.version = "1.0.19"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Oleg Khabarov", "The Working Group Inc"]
12
- s.date = %q{2010-11-09}
12
+ s.date = %q{2010-11-10}
13
13
  s.description = %q{}
14
14
  s.email = %q{oleg@theworkinggroup.ca}
15
15
  s.extra_rdoc_files = [
@@ -1,7 +1,7 @@
1
1
  Rails.application.routes.draw do
2
2
 
3
- namespace :cms_admin, :path => 'cms-admin', :except => :show do
4
- get '/' => redirect('/cms-admin/pages')
3
+ namespace :cms_admin, :path => ComfortableMexicanSofa.config.admin_route_prefix, :except => :show do
4
+ get '/' => redirect("/#{ComfortableMexicanSofa.config.admin_route_prefix}/pages")
5
5
  resources :pages do
6
6
  member do
7
7
  match :form_blocks
@@ -10,11 +10,16 @@ class ComfortableMexicanSofa::Configuration
10
10
  # data from the database. Not active if not specified.
11
11
  attr_accessor :seed_data_path
12
12
 
13
+ # Default url to access admin area is http://yourhost/cms-admin/
14
+ # You can change 'cms-admin' to 'admin', for example.
15
+ attr_accessor :admin_route_prefix
16
+
13
17
  # Configuration defaults
14
18
  def initialize
15
- @cms_title = 'ComfortableMexicanSofa'
16
- @authentication = 'ComfortableMexicanSofa::HttpAuth'
17
- @seed_data_path = nil
19
+ @cms_title = 'ComfortableMexicanSofa'
20
+ @authentication = 'ComfortableMexicanSofa::HttpAuth'
21
+ @seed_data_path = nil
22
+ @admin_route_prefix = 'cms-admin'
18
23
  end
19
24
 
20
25
  end
@@ -24,6 +24,16 @@ class ComfortableMexicanSofa::FormBuilder < ActionView::Helpers::FormBuilder
24
24
  ).html_safe
25
25
  end
26
26
 
27
+ def simple_field(label = nil, content = nil, &block)
28
+ content ||= @template.capture(&block) if block_given?
29
+ %(
30
+ <div class='form_element'>
31
+ <div class='label'>#{label}</div>
32
+ <div class='value'>#{content}</div>
33
+ </div>
34
+ ).html_safe
35
+ end
36
+
27
37
  def label_for(field, options)
28
38
  label = options.delete(:label) || field.to_s.titleize.capitalize_all
29
39
  "<label for=\"#{object_name}_#{field}\">#{label}</label>".html_safe
@@ -199,6 +199,13 @@ ul.list li .item:hover .action_links,
199
199
  table.formatted tr:hover td.action_links a {
200
200
  opacity: 1;
201
201
  }
202
+ table.formatted th {
203
+ background: url(/images/comfortable_mexican_sofa/body_bg.jpg);
204
+ color: #ececec;
205
+ text-transform: uppercase;
206
+ font-size: 10px;
207
+ letter-spacing: 1px;
208
+ }
202
209
  table.formatted th,
203
210
  table.formatted td {
204
211
  white-space: nowrap;
@@ -210,4 +217,23 @@ table.formatted th.main,
210
217
  table.formatted td.main {
211
218
  width: 100%;
212
219
  white-space: normal;
213
- }
220
+ }
221
+ .pagination {
222
+ margin: 10px 0px;
223
+ }
224
+ .pagination span,
225
+ .pagination em,
226
+ .pagination a {
227
+ padding: 2px 5px;
228
+ margin-right: 2px;
229
+ background-color: #fff;
230
+ border-radius: 3px;
231
+ -moz-border-radius: 3px;
232
+ }
233
+ .pagination span {
234
+ color: #ececec;
235
+ }
236
+ .pagination em {
237
+ background-color: #1C1F22;
238
+ color: #fff;
239
+ }
@@ -7,6 +7,7 @@ class CmsConfigurationTest < ActiveSupport::TestCase
7
7
  assert_equal 'ComfortableMexicanSofa', config.cms_title
8
8
  assert_equal 'ComfortableMexicanSofa::HttpAuth', config.authentication
9
9
  assert_equal nil, config.seed_data_path
10
+ assert_equal 'cms-admin', config.admin_route_prefix
10
11
  end
11
12
 
12
13
  def test_initialization_overrides
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comfortable_mexican_sofa
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 18
10
- version: 1.0.18
9
+ - 19
10
+ version: 1.0.19
11
11
  platform: ruby
12
12
  authors:
13
13
  - Oleg Khabarov
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-09 00:00:00 -05:00
19
+ date: 2010-11-10 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency