roroacms 0.0.2 → 0.0.3

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 (89) hide show
  1. data/MIT-LICENSE +20 -20
  2. data/README.md +62 -61
  3. data/Rakefile +19 -19
  4. data/app/assets/javascripts/roroacms/admin/application.js +1 -3
  5. data/app/assets/javascripts/roroacms/admin/roroacms-tour.js +46 -46
  6. data/app/assets/javascripts/roroacms/application.js +9 -21
  7. data/app/assets/javascripts/roroacms/vendor/hopscotch.js +2409 -2409
  8. data/app/assets/stylesheets/roroacms/admin/application.css +5 -3
  9. data/app/assets/stylesheets/roroacms/vendor/hopscotch.css +512 -512
  10. data/app/assets/stylesheets/roroacms/vendor/jquery/jquery-ui.css +1177 -1177
  11. data/app/controllers/roroacms/admin_controller.rb +1 -0
  12. data/app/controllers/roroacms/application_controller.rb +5 -3
  13. data/app/helpers/roroacms/admin_roroa_helper.rb +4 -4
  14. data/app/helpers/roroacms/admin_view_helper.rb +16 -16
  15. data/app/helpers/roroacms/application_helper.rb +4 -4
  16. data/app/helpers/roroacms/general_helper.rb +8 -8
  17. data/app/helpers/roroacms/new_view_helper.rb +7 -6
  18. data/app/helpers/roroacms/routing_helper.rb +15 -15
  19. data/app/helpers/roroacms/seo_helper.rb +2 -1
  20. data/app/helpers/roroacms/theme_helper.rb +6 -6
  21. data/app/helpers/roroacms/view_helper.rb +4 -4
  22. data/app/mailers/roroacms/emailer.rb +31 -31
  23. data/app/views/layouts/roroacms/application.html.erb +1 -1
  24. data/app/views/roroacms/admin/partials/_append_sidebar_menu.html.erb +51 -51
  25. data/app/views/roroacms/admin/partials/_comment.html.erb +10 -1
  26. data/app/views/roroacms/admin/partials/_editor.html.erb +21 -21
  27. data/app/views/roroacms/setup/administrator.html.erb +72 -72
  28. data/app/views/roroacms/setup/index.html.erb +108 -108
  29. data/config/initializers/devise.rb +258 -258
  30. data/config/locales/devise.en.yml +115 -115
  31. data/config/locales/en.yml +1 -1
  32. data/config/routes.rb +96 -96
  33. data/db/migrate/20140801203556_add_admins.rb +44 -44
  34. data/db/migrate/20140802084604_add_roroacms_comments.rb +31 -31
  35. data/db/migrate/20140802084615_add_roroacms_menu_options.rb +24 -24
  36. data/db/migrate/20140802084624_add_roroacms_menus.rb +18 -18
  37. data/db/migrate/20140802084631_add_roroacms_posts.rb +42 -42
  38. data/db/migrate/20140802084638_add_roroacms_settings.rb +21 -21
  39. data/db/migrate/20140802084658_add_roroacms_term_anatomies.rb +20 -20
  40. data/db/migrate/20140802084707_add_roroacms_term_relationships.rb +23 -23
  41. data/db/migrate/20140802084717_add_roroacms_terms.rb +27 -27
  42. data/lib/ext/string.rb +4 -4
  43. data/lib/generators/roroacms/install_generator.rb +16 -16
  44. data/lib/roroacms/engine.rb +4 -5
  45. data/lib/roroacms/version.rb +3 -3
  46. data/lib/roroacms.rb +5 -5
  47. data/lib/tasks/roroacms_tasks.rake +9 -9
  48. data/spec/controllers/roroacms/admin/themes_controller_spec.rb +2 -2
  49. data/spec/dummy/README.rdoc +28 -28
  50. data/spec/dummy/Rakefile +6 -6
  51. data/spec/dummy/app/controllers/application_controller.rb +5 -5
  52. data/spec/dummy/app/helpers/application_helper.rb +2 -2
  53. data/spec/dummy/app/helpers/theme_helper.rb +12 -12
  54. data/spec/dummy/app/views/layouts/application.html.erb +14 -14
  55. data/spec/dummy/app/views/theme/roroa-bootstrap-3/theme_helper.rb +8 -8
  56. data/spec/dummy/app/views/theme/roroa1/assets/stylesheets/style.css.scss +8 -8
  57. data/spec/dummy/app/views/theme/roroa1/layout.html.erb +1 -1
  58. data/spec/dummy/bin/bundle +3 -3
  59. data/spec/dummy/bin/rails +4 -4
  60. data/spec/dummy/bin/rake +4 -4
  61. data/spec/dummy/config/application.rb +23 -23
  62. data/spec/dummy/config/boot.rb +5 -5
  63. data/spec/dummy/config/database.yml +7 -7
  64. data/spec/dummy/config/environment.rb +5 -5
  65. data/spec/dummy/config/environments/development.rb +37 -37
  66. data/spec/dummy/config/environments/production.rb +82 -82
  67. data/spec/dummy/config/environments/test.rb +39 -39
  68. data/spec/dummy/config/initializers/assets.rb +8 -8
  69. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
  70. data/spec/dummy/config/initializers/cookies_serializer.rb +2 -2
  71. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  72. data/spec/dummy/config/initializers/inflections.rb +16 -16
  73. data/spec/dummy/config/initializers/mime_types.rb +4 -4
  74. data/spec/dummy/config/initializers/session_store.rb +3 -3
  75. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  76. data/spec/dummy/config/locales/en.yml +23 -23
  77. data/spec/dummy/config/routes.rb +3 -3
  78. data/spec/dummy/config/secrets.yml +22 -22
  79. data/spec/dummy/config.ru +4 -4
  80. data/spec/dummy/db/schema.rb +149 -149
  81. data/spec/dummy/public/404.html +67 -67
  82. data/spec/dummy/public/422.html +67 -67
  83. data/spec/dummy/public/500.html +66 -66
  84. data/spec/dummy/public/javascripts/translations.js +1 -1
  85. data/spec/dummy/tmp/cache/i18n-js.yml +36 -36
  86. data/spec/models/roroacms/admin_spec.rb +67 -67
  87. data/spec/spec_helper.rb +35 -35
  88. data/spec/support/factories.rb +79 -79
  89. metadata +2 -2
@@ -1,18 +1,18 @@
1
- class AddRoroacmsMenus < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_menus) do |t|
6
- t.string "name"
7
- t.string "key"
8
- end
9
-
10
- end
11
-
12
- def self.down
13
-
14
- drop_table :roroacms_menus
15
-
16
- end
17
-
18
- end
1
+ class AddRoroacmsMenus < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_menus) do |t|
6
+ t.string "name"
7
+ t.string "key"
8
+ end
9
+
10
+ end
11
+
12
+ def self.down
13
+
14
+ drop_table :roroacms_menus
15
+
16
+ end
17
+
18
+ end
@@ -1,42 +1,42 @@
1
- class AddRoroacmsPosts < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_posts) do |t|
6
- t.integer "admin_id"
7
- t.datetime "post_date"
8
- t.text "post_content"
9
- t.text "post_title"
10
- t.text "cover_image"
11
- t.string "post_status"
12
- t.string "post_template"
13
- t.integer "parent_id"
14
- t.string "post_type"
15
- t.text "post_slug"
16
- t.string "post_visible", default: "Y"
17
- t.text "post_additional_data"
18
- t.integer "sort_order"
19
- t.datetime "created_at", null: false
20
- t.datetime "updated_at", null: false
21
- t.string "disabled", limit: 1, default: "N"
22
- t.string "post_seo_title"
23
- t.text "post_seo_description"
24
- t.string "post_seo_is_disabled", default: "N"
25
- t.string "post_seo_no_index", default: "N"
26
- t.string "post_seo_no_follow", default: "N"
27
- t.string "ancestry"
28
- t.text "structured_url"
29
- end
30
-
31
- add_index "roroacms_posts", ["ancestry"], name: "index_posts_on_ancestry", using: :btree
32
-
33
- end
34
-
35
- def self.down
36
-
37
- drop_table :roroacms_posts
38
-
39
- end
40
-
41
-
42
- end
1
+ class AddRoroacmsPosts < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_posts) do |t|
6
+ t.integer "admin_id"
7
+ t.datetime "post_date"
8
+ t.text "post_content"
9
+ t.text "post_title"
10
+ t.text "cover_image"
11
+ t.string "post_status"
12
+ t.string "post_template"
13
+ t.integer "parent_id"
14
+ t.string "post_type"
15
+ t.text "post_slug"
16
+ t.string "post_visible", default: "Y"
17
+ t.text "post_additional_data"
18
+ t.integer "sort_order"
19
+ t.datetime "created_at", null: false
20
+ t.datetime "updated_at", null: false
21
+ t.string "disabled", limit: 1, default: "N"
22
+ t.string "post_seo_title"
23
+ t.text "post_seo_description"
24
+ t.string "post_seo_is_disabled", default: "N"
25
+ t.string "post_seo_no_index", default: "N"
26
+ t.string "post_seo_no_follow", default: "N"
27
+ t.string "ancestry"
28
+ t.text "structured_url"
29
+ end
30
+
31
+ add_index "roroacms_posts", ["ancestry"], name: "index_posts_on_ancestry", using: :btree
32
+
33
+ end
34
+
35
+ def self.down
36
+
37
+ drop_table :roroacms_posts
38
+
39
+ end
40
+
41
+
42
+ end
@@ -1,21 +1,21 @@
1
- class AddRoroacmsSettings < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_settings) do |t|
6
- t.string "setting_name"
7
- t.text "setting"
8
- t.string "type_of_setting", limit: 11
9
- t.datetime "created_at", null: false
10
- t.datetime "updated_at", null: false
11
- end
12
-
13
- end
14
-
15
- def self.down
16
-
17
- drop_table :roroacms_settings
18
-
19
- end
20
-
21
- end
1
+ class AddRoroacmsSettings < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_settings) do |t|
6
+ t.string "setting_name"
7
+ t.text "setting"
8
+ t.string "type_of_setting", limit: 11
9
+ t.datetime "created_at", null: false
10
+ t.datetime "updated_at", null: false
11
+ end
12
+
13
+ end
14
+
15
+ def self.down
16
+
17
+ drop_table :roroacms_settings
18
+
19
+ end
20
+
21
+ end
@@ -1,20 +1,20 @@
1
- class AddRoroacmsTermAnatomies < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_term_anatomies) do |t|
6
- t.integer "term_id"
7
- t.string "taxonomy"
8
- t.datetime "created_at", null: false
9
- t.datetime "updated_at", null: false
10
- end
11
-
12
- end
13
-
14
- def self.down
15
-
16
- drop_table :roroacms_term_anatomies
17
-
18
- end
19
-
20
- end
1
+ class AddRoroacmsTermAnatomies < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_term_anatomies) do |t|
6
+ t.integer "term_id"
7
+ t.string "taxonomy"
8
+ t.datetime "created_at", null: false
9
+ t.datetime "updated_at", null: false
10
+ end
11
+
12
+ end
13
+
14
+ def self.down
15
+
16
+ drop_table :roroacms_term_anatomies
17
+
18
+ end
19
+
20
+ end
@@ -1,23 +1,23 @@
1
- class AddRoroacmsTermRelationships < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_term_relationships) do |t|
6
- t.integer "post_id"
7
- t.integer "term_id"
8
- t.datetime "created_at", null: false
9
- t.datetime "updated_at", null: false
10
- end
11
-
12
- add_index "roroacms_term_relationships", ["post_id"], name: "post_id", using: :btree
13
-
14
- end
15
-
16
- def self.down
17
-
18
- drop_table :roroacms_term_relationships
19
-
20
- end
21
-
22
-
23
- end
1
+ class AddRoroacmsTermRelationships < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_term_relationships) do |t|
6
+ t.integer "post_id"
7
+ t.integer "term_id"
8
+ t.datetime "created_at", null: false
9
+ t.datetime "updated_at", null: false
10
+ end
11
+
12
+ add_index "roroacms_term_relationships", ["post_id"], name: "post_id", using: :btree
13
+
14
+ end
15
+
16
+ def self.down
17
+
18
+ drop_table :roroacms_term_relationships
19
+
20
+ end
21
+
22
+
23
+ end
@@ -1,27 +1,27 @@
1
- class AddRoroacmsTerms < ActiveRecord::Migration
2
-
3
- def self.up
4
-
5
- create_table(:roroacms_terms) do |t|
6
- t.string "name"
7
- t.string "slug"
8
- t.text "structured_url"
9
- t.text "description"
10
- t.integer "parent_id"
11
- t.datetime "created_at", null: false
12
- t.datetime "updated_at", null: false
13
- t.text "cover_image"
14
- t.string "ancestry"
15
- end
16
-
17
- add_index "roroacms_terms", ["ancestry"], name: "index_terms_on_ancestry", using: :btree
18
-
19
- end
20
-
21
- def self.down
22
-
23
- drop_table :roroacms_terms
24
-
25
- end
26
-
27
- end
1
+ class AddRoroacmsTerms < ActiveRecord::Migration
2
+
3
+ def self.up
4
+
5
+ create_table(:roroacms_terms) do |t|
6
+ t.string "name"
7
+ t.string "slug"
8
+ t.text "structured_url"
9
+ t.text "description"
10
+ t.integer "parent_id"
11
+ t.datetime "created_at", null: false
12
+ t.datetime "updated_at", null: false
13
+ t.text "cover_image"
14
+ t.string "ancestry"
15
+ end
16
+
17
+ add_index "roroacms_terms", ["ancestry"], name: "index_terms_on_ancestry", using: :btree
18
+
19
+ end
20
+
21
+ def self.down
22
+
23
+ drop_table :roroacms_terms
24
+
25
+ end
26
+
27
+ end
data/lib/ext/string.rb CHANGED
@@ -1,5 +1,5 @@
1
- class String
2
- def nonnegative_float?
3
- !!match(/\A\+?\d+(?:\.\d+)?\Z/)
4
- end
1
+ class String
2
+ def nonnegative_float?
3
+ !!match(/\A\+?\d+(?:\.\d+)?\Z/)
4
+ end
5
5
  end
@@ -1,17 +1,17 @@
1
- module Roroacms
2
-
3
- class InstallGenerator < Rails::Generators::Base
4
-
5
- def install
6
- run 'bundle install'
7
- route %Q{mount Roroacms::Engine => '/'}
8
- rake 'db:create'
9
- rake 'roroacms:install:migrations'
10
- rake 'db:migrate'
11
- rake 'roroacms:db:seed'
12
- puts 'You are all setup! run "rails s" to check out your roroacms platform'
13
- end
14
-
15
- end
16
-
1
+ module Roroacms
2
+
3
+ class InstallGenerator < Rails::Generators::Base
4
+
5
+ def install
6
+ run 'bundle install'
7
+ route %Q{mount Roroacms::Engine => '/'}
8
+ rake 'db:create'
9
+ rake 'roroacms:install:migrations'
10
+ rake 'db:migrate'
11
+ rake 'roroacms:db:seed'
12
+ puts 'You are all setup! run "rails s" to check out your roroacms platform'
13
+ end
14
+
15
+ end
16
+
17
17
  end
@@ -42,17 +42,16 @@ module Roroacms
42
42
  Devise::ConfirmationsController.layout "roroacms/login"
43
43
  Devise::UnlocksController.layout "roroacms/login"
44
44
  Devise::PasswordsController.layout "roroacms/login"
45
- ApplicationController.helper(ActionView::Helpers::ThemeHelper) if File.exists?("#{Rails.root}/app/helpers/theme_helper.rb")
46
45
  end
47
46
 
48
47
  require "#{Roroacms::Engine.root}/app/models/roroacms/setting.rb"
49
48
 
50
49
  initializer :assets do |config|
51
50
 
52
- Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/theme/#{Setting.get('theme_folder')}/assets/stylesheets"
53
- Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/theme/#{Setting.get('theme_folder')}/assets/javascripts"
54
- Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/theme/#{Setting.get('theme_folder')}/assets/font"
55
- Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/theme/#{Setting.get('theme_folder')}/assets/images"
51
+ Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/themes/#{Setting.get('theme_folder')}/assets/stylesheets"
52
+ Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/themes/#{Setting.get('theme_folder')}/assets/javascripts"
53
+ Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/themes/#{Setting.get('theme_folder')}/assets/font"
54
+ Rails.application.config.assets.paths << "#{Dir.pwd}/app/views/themes/#{Setting.get('theme_folder')}/assets/images"
56
55
  Rails.application.config.assets.paths << "#{Dir.pwd}/app/assets/images/roroacms"
57
56
  Rails.application.config.assets.paths << "#{Dir.pwd}/app/assets/javascripts/roroacms" if Dir.exists?("#{Dir.pwd}/app/assets/javascripts/roroacms")
58
57
  Rails.application.config.assets.paths << "#{Dir.pwd}/app/assets/stylesheets/roroacms" if Dir.exists?("#{Dir.pwd}/app/assets/stylesheets/roroacms")
@@ -1,3 +1,3 @@
1
- module Roroacms
2
- VERSION = "0.0.1"
3
- end
1
+ module Roroacms
2
+ VERSION = "0.0.1"
3
+ end
data/lib/roroacms.rb CHANGED
@@ -1,5 +1,5 @@
1
- require "roroacms/engine"
2
- require 'devise'
3
-
4
- module Roroacms
5
- end
1
+ require "roroacms/engine"
2
+ require 'devise'
3
+
4
+ module Roroacms
5
+ end
@@ -1,9 +1,9 @@
1
- # desc "Explaining what the task does"
2
- namespace :roroacms do
3
- namespace :db do
4
- task :seed do
5
- Roroacms::Engine.load_seed
6
- end
7
- end
8
- end
9
-
1
+ # desc "Explaining what the task does"
2
+ namespace :roroacms do
3
+ namespace :db do
4
+ task :seed do
5
+ Roroacms::Engine.load_seed
6
+ end
7
+ end
8
+ end
9
+
@@ -40,12 +40,12 @@ RSpec.describe Roroacms::Admin::ThemesController, :type => :controller do
40
40
  describe "DELETE #destroy" do
41
41
 
42
42
  before(:each) do
43
- Dir.mkdir("#{Rails.root}/app/views/theme/testing") unless File.exists?("#{Rails.root}/app/views/theme/testing")
43
+ Dir.mkdir("#{Rails.root}/app/views/themes/testing") unless File.exists?("#{Rails.root}/app/views/themes/testing")
44
44
  delete :destroy, { use_route: :roroacms, id: 'testing' }
45
45
  end
46
46
 
47
47
  it "should delete the given theme" do
48
- expect(File.directory?("#{Rails.root}/app/views/theme/testing")).to be_falsey
48
+ expect(File.directory?("#{Rails.root}/app/views/themes/testing")).to be_falsey
49
49
  end
50
50
 
51
51
  it "should redirect to themes#index" do
@@ -1,28 +1,28 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
data/spec/dummy/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -1,5 +1,5 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ end
@@ -1,2 +1,2 @@
1
- module ApplicationHelper
2
- end
1
+ module ApplicationHelper
2
+ end
@@ -1,13 +1,13 @@
1
- module ThemeHelper
2
-
3
- # theme helper
4
-
5
- def simons_test
6
- abort '213123'.inspect
7
- end
8
-
9
- def testinge
10
- abort Roroacms::Post.find(7291).inspect
11
- end
12
-
1
+ module ThemeHelper
2
+
3
+ # theme helper
4
+
5
+ def simons_test
6
+ abort '213123'.inspect
7
+ end
8
+
9
+ def testinge
10
+ abort Roroacms::Post.find(7291).inspect
11
+ end
12
+
13
13
  end
@@ -1,14 +1,14 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
+ <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -1,9 +1,9 @@
1
- # theme helper
2
-
3
- def simons_test
4
- abort '213123'.inspect
5
- end
6
-
7
- def testinge
8
- abort Roroacms::Post.find(7291).inspect
1
+ # theme helper
2
+
3
+ def simons_test
4
+ abort '213123'.inspect
5
+ end
6
+
7
+ def testinge
8
+ abort Roroacms::Post.find(7291).inspect
9
9
  end
@@ -249,7 +249,7 @@ h1, .h1 {
249
249
  }
250
250
 
251
251
  .divide_shadow {
252
- background-image: url("/assets/theme/divide.jpg");
252
+ background-image: url("/assets/themes/divide.jpg");
253
253
  background-repeat: no-repeat;
254
254
  background-position: center top;
255
255
  height: 15px;
@@ -345,8 +345,8 @@ h1, .h1 {
345
345
  .logo {
346
346
  display: block;
347
347
  float: left;
348
- /*background-image: url(/assets/theme/frontend-logo-2.png);*/
349
- background-image: url(/assets/theme/companylogo.jpg );
348
+ /*background-image: url(/assets/themes/frontend-logo-2.png);*/
349
+ background-image: url(/assets/themes/companylogo.jpg );
350
350
  background-repeat: no-repeat;
351
351
  background-position: 0 36px;
352
352
  height: 135px;
@@ -433,7 +433,7 @@ h1, .h1 {
433
433
  }
434
434
  input[type=submit] {
435
435
  background-color: #FFFFFF;
436
- background-image: url("/assets/theme/search.jpg");
436
+ background-image: url("/assets/themes/search.jpg");
437
437
  background-position: center center;
438
438
  background-repeat: no-repeat;
439
439
  border-style: none;
@@ -458,7 +458,7 @@ h1, .h1 {
458
458
  display: block;
459
459
  float: right;
460
460
  overflow: hidden;
461
- background-image: url(/assets/theme/pager.png);
461
+ background-image: url(/assets/themes/pager.png);
462
462
  background-repeat: no-repeat;
463
463
  background-position: left top;
464
464
  height: 14px;
@@ -482,14 +482,14 @@ h1, .h1 {
482
482
  }
483
483
  .footer_logo {
484
484
  display: block;
485
- background-image: url(/assets/theme/footer-poweredby2.jpg);
485
+ background-image: url(/assets/themes/footer-poweredby2.jpg);
486
486
  background-repeat: no-repeat;
487
487
  background-position: 0 top;
488
488
  height: 43px;
489
489
  width: 326px;
490
490
  }
491
491
  .social {
492
- background-image: url(/assets/theme/social.jpg);
492
+ background-image: url(/assets/themes/social.jpg);
493
493
  background-repeat: no-repeat;
494
494
  background-position: right top;
495
495
  height: 50px;
@@ -615,7 +615,7 @@ h1, .h1 {
615
615
  margin: 20px 0 0 0;
616
616
  }
617
617
  .person {
618
- background-image: url(/assets/theme/t.jpg);
618
+ background-image: url(/assets/themes/t.jpg);
619
619
  background-repeat: no-repeat;
620
620
  background-position: left top;
621
621
  font-family: Arial, Helvetica, sans-serif;