spree_static_content 0.60.1 → 0.70.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/README.md +45 -0
  2. data/app/controllers/static_content_controller.rb +2 -2
  3. data/app/models/page.rb +8 -5
  4. data/app/overrides/static_content_admin_tab.rb +4 -0
  5. data/app/views/admin/pages/_form.html.erb +1 -2
  6. data/app/views/admin/pages/edit.html.erb +1 -1
  7. data/lib/generators/spree_static_content/install_generator.rb +13 -8
  8. data/lib/spree_static_content.rb +8 -2
  9. metadata +64 -77
  10. data/.gitignore +0 -2
  11. data/CONTRIBUTORS.textile +0 -7
  12. data/README.rdoc +0 -34
  13. data/Rakefile +0 -113
  14. data/VERSION +0 -1
  15. data/Versionfile +0 -3
  16. data/config/locales/de-CH.yml +0 -23
  17. data/config/locales/en-AU.yml +0 -23
  18. data/config/locales/en-GB.yml +0 -23
  19. data/config/locales/en.yml +0 -32
  20. data/config/locales/es-ES.yml +0 -18
  21. data/config/locales/fr-FR.yml +0 -23
  22. data/config/locales/nl-BE.yml +0 -23
  23. data/config/locales/nl-NL.yml +0 -23
  24. data/config/locales/pl.yml +0 -21
  25. data/config/locales/pt-BR.yml +0 -15
  26. data/config/locales/ru.yml +0 -33
  27. data/config/routes.rb +0 -9
  28. data/lib/generators/templates/db/migrate/20081216193152_create_pages.rb +0 -15
  29. data/lib/generators/templates/db/migrate/20090625125735_extend_pages.rb +0 -21
  30. data/lib/generators/templates/db/migrate/20090814113100_add_visible_to_pages.rb +0 -10
  31. data/lib/generators/templates/db/migrate/20090814142845_add_default_true_to_visible_for_page.rb +0 -8
  32. data/lib/generators/templates/db/migrate/20090829000527_add_index_for_page.rb +0 -10
  33. data/lib/generators/templates/db/migrate/20091219021134_add_meta_fields_to_pages.rb +0 -9
  34. data/lib/generators/templates/db/migrate/20100204105222_add_layout_to_pages.rb +0 -9
  35. data/lib/generators/templates/db/migrate/20100323085528_add_show_in_sidebar_option_to_pages.rb +0 -9
  36. data/lib/generators/templates/public/stylesheets/formtastic.css +0 -145
  37. data/lib/generators/templates/public/stylesheets/formtastic_changes.css +0 -14
  38. data/lib/spree_static_content_hooks.rb +0 -5
  39. data/spec/controllers/admin/pages_controller_spec.rb +0 -5
  40. data/spec/controllers/content_controller_spec.rb +0 -18
  41. data/spec/models/page_spec.rb +0 -20
  42. data/spec/spec.opts +0 -3
  43. data/spec/spec_helper.rb +0 -28
  44. data/spree_static_content.gemspec +0 -96
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.60.1
data/Versionfile DELETED
@@ -1,3 +0,0 @@
1
- "0.60.x" => { :version => '0.40.2', :ref => '45b0050b96809c8fb0f21940f9407e9012a6d420' }
2
- "0.50.x" => { :version => '0.40.2', :ref => '45b0050b96809c8fb0f21940f9407e9012a6d420' }
3
- "0.40.x" => { :version => '0.40.2', :ref => '45b0050b96809c8fb0f21940f9407e9012a6d420' }
@@ -1,23 +0,0 @@
1
- ---
2
- de-CH:
3
- pages: Seiten
4
- static_content:
5
- static_pages: Statische Seiten
6
- static_pages_desc: Manage static page with WYSIWYG editor.
7
- title: Titel
8
- slug: Slug
9
- body: Body
10
- new_page: Neue Seite
11
- editing_page: Seite bearbeiten
12
- foreign_link: Externer Link (URL)
13
- show_in_sidebar: In der Sidebar anzeigen
14
- show_in_header: Im Header anzeigen
15
- show_in_footer: Im Footer anzeigen
16
- position: Position
17
- visible: Sichtbar
18
- confirm_delete: Bist du sicher?
19
- link: Link
20
- meta_title: Meta-Titel
21
- meta_keywords: Meta-Schlüsselwörter
22
- meta_description: Meta-Beschreibung
23
- layout: Layout
@@ -1,23 +0,0 @@
1
- ---
2
- en-AU:
3
- pages: Pages
4
- static_content:
5
- static_pages: Static pages
6
- static_pages_desc: Manage static page with WYSIWYG editor.
7
- title: Title
8
- slug: Slug
9
- body: Body
10
- new_page: New page
11
- editing_page: Editing page
12
- foreign_link: Foreign link (URL)
13
- show_in_sidebar: Show in sidebar
14
- show_in_header: Show in header
15
- show_in_footer: Show in footer
16
- position: Position
17
- visible: Visible
18
- confirm_delete: Are you sure?
19
- link: Link
20
- meta_title: Meta Title
21
- meta_keywords: Meta Keywords
22
- meta_description: Meta Description
23
- layout: Layout
@@ -1,23 +0,0 @@
1
- ---
2
- en-GB:
3
- pages: Pages
4
- static_content:
5
- static_pages: Static pages
6
- static_pages_desc: Manage static page with WYSIWYG editor.
7
- title: Title
8
- slug: Slug
9
- body: Body
10
- new_page: New page
11
- editing_page: Editing page
12
- foreign_link: Foreign link (URL)
13
- show_in_sidebar: Show in sidebar
14
- show_in_header: Show in header
15
- show_in_footer: Show in footer
16
- position: Position
17
- visible: Visible
18
- confirm_delete: Are you sure?
19
- link: Link
20
- meta_title: Meta Title
21
- meta_keywords: Meta Keywords
22
- meta_description: Meta Description
23
- layout: Layout
@@ -1,32 +0,0 @@
1
- ---
2
- en:
3
- activerecord:
4
- attributes:
5
- page:
6
- title: Title
7
- slug: Slug
8
- body: Body
9
- foreign_link: Foreign link (URL)
10
- show_in_sidebar: Show in sidebar
11
- show_in_header: Show in header
12
- show_in_footer: Show in footer
13
- position: Position
14
- visible: Visible
15
- meta_keywords: Meta Keywords
16
- meta_description: Meta Description
17
- layout: Layout
18
- models:
19
- page:
20
- one: Page
21
- many: Pages
22
-
23
- page: Page
24
- pages: Pages
25
- static_content:
26
- static_pages: Static pages
27
- static_pages_desc: Manage static page with WYSIWYG editor.
28
- new_page: New page
29
- editing_page: Editing page
30
- confirm_delete: Are you sure ?
31
- link: Link
32
- meta_title: Meta Title
@@ -1,18 +0,0 @@
1
- ---
2
- es-ES:
3
- pages: Pages
4
- static_content:
5
- static_pages: Páginas estáticas
6
- static_pages_desc: Administrar página estática con el editor WYSIWYG.
7
- title: Título
8
- slug: Slug
9
- body: Cuerpo
10
- new_page: Nueva página
11
- editing_page: Edición de página
12
- foreign_link: Enlace externo (URL)
13
- show_in_header: Mostrar en la cabecera
14
- show_in_footer: Mostrar en el pié de página
15
- position: Posición
16
- visible: Visible
17
- confirm_delete: ¿ Estás seguro ?
18
- link: Enlace
@@ -1,23 +0,0 @@
1
- ---
2
- fr-FR:
3
- pages: Pages
4
- static_content:
5
- static_pages: Pages statiques
6
- static_pages_desc: "Gérer les pages statiques avec l'éditeur WYSIWYG."
7
- title: Titre
8
- slug: Slug
9
- body: Corps
10
- new_page: Nouvelle page
11
- editing_page: Edition de la page
12
- foreign_link: Lien extérieur (URL)
13
- show_in_sidebar: Visible dans la sidebar
14
- show_in_header: Visible en entête
15
- show_in_footer: Visible en pied de page
16
- position: Position
17
- visible: Visible
18
- confirm_delete: êtes-vous sûr ?
19
- link: Lien
20
- meta_title: Meta Titre
21
- meta_keywords: Meta Mots-clés
22
- meta_description: Meta Description
23
- layout: Layout
@@ -1,23 +0,0 @@
1
- ---
2
- nl-BE:
3
- pages: Statische pagina's
4
- static_content:
5
- static_pages: Statische pagina's
6
- static_pages_desc: Beheer statische pagina's met een WYSIWYG editor.
7
- title: Titel
8
- slug: Slug
9
- body: Body
10
- new_page: Nieuwe pagina
11
- editing_page: Pagina bewerken
12
- foreign_link: Externe link (URL)
13
- show_in_header: Toon in header
14
- show_in_footer: Toon in footer
15
- position: Positie
16
- visible: Zichtbaar?
17
- confirm_delete: Weet u zeker dat u deze pagina wilt verwijderen ?
18
- link: Link
19
- meta_title: Meta Titel
20
- meta_keywords: Meta Keywords
21
- meta_description: Meta Description
22
- layout: Layout
23
- show_in_sidebar: Toon in zijbalk?
@@ -1,23 +0,0 @@
1
- ---
2
- nl-NL:
3
- pages: Statische pagina's
4
- static_content:
5
- static_pages: Statische pagina's
6
- static_pages_desc: Beheer statische pagina's met een WYSIWYG editor.
7
- title: Titel
8
- slug: Slug
9
- body: Body
10
- new_page: Nieuwe pagina
11
- editing_page: Pagina bewerken
12
- foreign_link: Externe link (URL)
13
- show_in_header: Toon in header
14
- show_in_footer: Toon in footer
15
- position: Positie
16
- visible: Zichtbaar?
17
- confirm_delete: Weet u zeker dat u deze pagina wilt verwijderen ?
18
- link: Link
19
- meta_title: Meta Titel
20
- meta_keywords: Meta Keywords
21
- meta_description: Meta Description
22
- layout: Layout
23
- show_in_sidebar: Toon in zijbalk?
@@ -1,21 +0,0 @@
1
- ---
2
- pl:
3
- pages: Strony statyczne
4
- static_content:
5
- static_pages: Strony statyczne
6
- static_pages_desc: Zarządzaj stronami statycznymi.
7
- title: Tytuł
8
- slug: Skrót
9
- body: Zawartość
10
- new_page: Nowa strona
11
- editing_page: Edycja strony
12
- foreign_link: Odnośnik zewnętrzny
13
- show_in_header: Pokaż w nagłówku
14
- show_in_footer: Pokaż w stopce
15
- position: Pozycja
16
- visible: Widoczna
17
- confirm_delete: Jesteś pewien ?
18
- link: Odnośnik
19
- meta_title: Tytół (w nagłówku przeglądarki)
20
- meta_keywords: Słowa kluczowe (SEO)
21
- meta_description: Skrócony opis (SEO)
@@ -1,15 +0,0 @@
1
- ---
2
- pt-BR:
3
- pages: Páginas
4
- static_content:
5
- static_pages: Páginas estáticas
6
- static_pages_desc: Administrar página estática com editor visual (WYSIWYG).
7
- title: Título
8
- slug: Slug
9
- body: Corpo
10
- new_page: Nova página
11
- editing_page: Editando página
12
- foreign_link: Link externo (URL)
13
- show_in_header: Mostrar no cabeçalho
14
- show_in_footer: Mostrar no rodapé
15
- position: Posição
@@ -1,33 +0,0 @@
1
- ---
2
- ru:
3
- activerecord:
4
- attributes:
5
- page:
6
- title: Заголовок
7
- slug: Постоянная ссылка
8
- body: Основной текст
9
- foreign_link: "Внешняя ссылка (URL)"
10
- show_in_header: "Отображать в верхнем меню"
11
- show_in_footer: "Отображать в нижнем меню"
12
- show_in_sidebar: "Отображать в боковом меню"
13
- position: "Позиция в меню"
14
- visible: "Публиковать"
15
- meta_keywords: "Ключевые слова"
16
- meta_description: "Описание"
17
- layout: "Макет"
18
- models:
19
- page:
20
- one: Страница
21
- few: Страницы
22
- many: Страниц
23
-
24
- page: "Страница"
25
- pages: "Страницы"
26
- static_content:
27
- static_pages: "Статические страницы"
28
- static_pages_desc: "Управление статическими страницами"
29
- new_page: "Новая страница"
30
- editing_page: "Редактирование страницы"
31
- confirm_delete: "Вы уверены, что хотите удалить страницу?"
32
- link: "Ссылка"
33
- meta_title: "Мета заголовок"
data/config/routes.rb DELETED
@@ -1,9 +0,0 @@
1
- Rails.application.routes.draw do
2
-
3
- namespace :admin do
4
- resources :pages
5
- end
6
-
7
- match '/static/*path', :to => 'static_content#show', :via => :get, :as => 'static'
8
-
9
- end
@@ -1,15 +0,0 @@
1
- class CreatePages < ActiveRecord::Migration
2
- def self.up
3
- create_table :pages do |t|
4
- t.string :title
5
- t.text :body
6
- t.string :slug
7
-
8
- t.timestamps
9
- end
10
- end
11
-
12
- def self.down
13
- drop_table :pages
14
- end
15
- end
@@ -1,21 +0,0 @@
1
- class ExtendPages < ActiveRecord::Migration
2
- def self.up
3
- change_table :pages do |t|
4
- t.boolean :show_in_header, :default => false, :null => false
5
- t.boolean :show_in_footer, :default => false, :null => false
6
- t.string :foreign_link
7
- t.integer :position, :default => 1, :null => false
8
- Page.all(:order => "updated_at ASC").each_with_index{|page,x| page.update_attribute(:position, x+1)}
9
-
10
- end
11
- end
12
-
13
- def self.down
14
- change_table :pages do |t|
15
- t.remove :show_in_header
16
- t.remove :show_in_footer
17
- t.remove :foreign_link
18
- t.remove :position
19
- end
20
- end
21
- end
@@ -1,10 +0,0 @@
1
- class AddVisibleToPages < ActiveRecord::Migration
2
- def self.up
3
- add_column :pages, :visible, :boolean
4
- Page.update_all :visible => true
5
- end
6
-
7
- def self.down
8
- remove_column :pages, :visible
9
- end
10
- end
@@ -1,8 +0,0 @@
1
- class AddDefaultTrueToVisibleForPage < ActiveRecord::Migration
2
- def self.up
3
- change_column :pages, :visible, :boolean, :default=> true
4
- end
5
-
6
- def self.down
7
- end
8
- end
@@ -1,10 +0,0 @@
1
- class AddIndexForPage < ActiveRecord::Migration
2
- def self.up
3
- add_index(:pages, :slug)
4
- end
5
-
6
- def self.down
7
- remove_index(:pages, :slug)
8
- end
9
- end
10
-
@@ -1,9 +0,0 @@
1
- class AddMetaFieldsToPages < ActiveRecord::Migration
2
- def self.up
3
- add_column :pages, :meta_keywords, :string
4
- add_column :pages, :meta_description, :string
5
- end
6
-
7
- def self.down
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class AddLayoutToPages < ActiveRecord::Migration
2
- def self.up
3
- add_column :pages, :layout, :string
4
- end
5
-
6
- def self.down
7
- remove_column :pages, :layout
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- class AddShowInSidebarOptionToPages < ActiveRecord::Migration
2
- def self.up
3
- add_column :pages, :show_in_sidebar, :boolean, :default=> false, :null=>false
4
- end
5
-
6
- def self.down
7
- remove_column :pages, :show_in_sidebar
8
- end
9
- end
@@ -1,145 +0,0 @@
1
- /* -------------------------------------------------------------------------------------------------
2
-
3
- It's *strongly* suggested that you don't modify this file. Instead, load a new stylesheet after
4
- this one in your layouts (eg formtastic_changes.css) and override the styles to suit your needs.
5
- This will allow you to update formtastic.css with new releases without clobbering your own changes.
6
-
7
- This stylesheet forms part of the Formtastic Rails Plugin
8
- (c) 2008 Justin French
9
-
10
- --------------------------------------------------------------------------------------------------*/
11
-
12
-
13
- /* NORMALIZE AND RESET - obviously inspired by Yahoo's reset.css, but scoped to just form.formtastic
14
- --------------------------------------------------------------------------------------------------*/
15
- form.formtastic, form.formtastic ul, form.formtastic ol, form.formtastic li, form.formtastic fieldset, form.formtastic legend, form.formtastic input, form.formtastic textarea, form.formtastic select, form.formtastic p { margin:0; padding:0; }
16
- form.formtastic fieldset { border:0; }
17
- form.formtastic em, form.formtastic strong { font-style:normal; font-weight:normal; }
18
- form.formtastic ol, form.formtastic ul { list-style:none; }
19
- form.formtastic abbr, form.formtastic acronym { border:0; font-variant:normal; }
20
- form.formtastic input, form.formtastic textarea, form.formtastic select { font-family:inherit; font-size:inherit; font-weight:inherit; }
21
- form.formtastic input, form.formtastic textarea, form.formtastic select { font-size:100%; }
22
- form.formtastic legend { white-space:normal; color:#000; }
23
-
24
-
25
- /* SEMANTIC ERRORS
26
- --------------------------------------------------------------------------------------------------*/
27
- form.formtastic ul.errors { color:#cc0000; margin:0.5em 0 1.5em 25%; list-style:square; }
28
- form.formtastic ul.errors li { padding:0; border:none; display:list-item; }
29
-
30
-
31
- /* FIELDSETS & LISTS
32
- --------------------------------------------------------------------------------------------------*/
33
- form.formtastic fieldset { overflow:auto; } /* clearing contained floats */
34
- form.formtastic fieldset.inputs { }
35
- form.formtastic fieldset.buttons { padding-left:25%; }
36
- form.formtastic fieldset ol { }
37
- form.formtastic fieldset.buttons li { float:left; padding-right:0.5em; }
38
-
39
- /* INPUT LIs
40
- --------------------------------------------------------------------------------------------------*/
41
- form.formtastic fieldset > ol > li { padding:0.5em 0; margin-top:-0.5em; margin-bottom:1em; } /* padding and negative margin juggling is for Firefox */
42
- form.formtastic fieldset > ol > li { overflow:auto; } /* clearing contained floats */
43
-
44
- form.formtastic fieldset > ol > li.required { }
45
- form.formtastic fieldset > ol > li.optional { }
46
- form.formtastic fieldset > ol > li.error { }
47
-
48
-
49
- /* LABELS
50
- --------------------------------------------------------------------------------------------------*/
51
- form.formtastic fieldset > ol > li label { display:block; width:25%; float:left; padding-top:.2em; }
52
- form.formtastic fieldset > ol > li > li label { line-height:100%; padding-top:0; }
53
- form.formtastic fieldset > ol > li > li label input { line-height:100%; vertical-align:middle; margin-top:-0.1em;}
54
-
55
-
56
- /* NESTED FIELDSETS AND LEGENDS (radio, check boxes and date/time inputs use nested fieldsets)
57
- --------------------------------------------------------------------------------------------------*/
58
- form.formtastic fieldset > ol > li fieldset { position:relative; }
59
- form.formtastic fieldset > ol > li fieldset legend { position:absolute; width:95%; padding-top:0.1em; left: 0px; }
60
- form.formtastic fieldset > ol > li fieldset legend span { position:absolute; }
61
- form.formtastic fieldset > ol > li fieldset legend.label label { position:absolute; }
62
- form.formtastic fieldset > ol > li fieldset ol { float:left; width:74%; margin:0; padding:0 0 0 25%; }
63
- form.formtastic fieldset > ol > li fieldset ol li { padding:0; border:0; }
64
-
65
-
66
- /* INLINE HINTS
67
- --------------------------------------------------------------------------------------------------*/
68
- form.formtastic fieldset > ol > li p.inline-hints { color:#666; margin:0.5em 0 0 25%; }
69
-
70
-
71
- /* INLINE ERRORS
72
- --------------------------------------------------------------------------------------------------*/
73
- form.formtastic fieldset > ol > li p.inline-errors { color:#cc0000; margin:0.5em 0 0 25%; }
74
- form.formtastic fieldset > ol > li ul.errors { color:#cc0000; margin:0.5em 0 0 25%; list-style:square; }
75
- form.formtastic fieldset > ol > li ul.errors li { padding:0; border:none; display:list-item; }
76
-
77
-
78
- /* STRING, NUMERIC, PASSWORD, EMAIL, URL, PHONE & SEARCH OVERRIDES
79
- --------------------------------------------------------------------------------------------------*/
80
- form.formtastic fieldset > ol > li.string input,
81
- form.formtastic fieldset > ol > li.password input,
82
- form.formtastic fieldset > ol > li.numeric input,
83
- form.formtastic fieldset > ol > li.email input,
84
- form.formtastic fieldset > ol > li.url input,
85
- form.formtastic fieldset > ol > li.phone input,
86
- form.formtastic fieldset > ol > li.search input { width:72%; }
87
-
88
- form.formtastic fieldset > ol > li.string input[size],
89
- form.formtastic fieldset > ol > li.password input[size],
90
- form.formtastic fieldset > ol > li.numeric input[size],
91
- form.formtastic fieldset > ol > li.email input[size],
92
- form.formtastic fieldset > ol > li.url input[size],
93
- form.formtastic fieldset > ol > li.phone input[size],
94
- form.formtastic fieldset > ol > li.search input[size] { width:auto; max-width:72%; }
95
-
96
-
97
- /* TEXTAREA OVERRIDES
98
- --------------------------------------------------------------------------------------------------*/
99
- form.formtastic fieldset > ol > li.text textarea { width:72%; }
100
- form.formtastic fieldset > ol > li.text textarea[cols] { width:auto; max-width:72%; }
101
-
102
-
103
- /* HIDDEN OVERRIDES
104
- --------------------------------------------------------------------------------------------------*/
105
- form.formtastic fieldset ol li.hidden { display:none; }
106
-
107
- /* BOOLEAN OVERRIDES
108
- --------------------------------------------------------------------------------------------------*/
109
- form.formtastic fieldset > ol > li.boolean label { padding-left:25%; width:auto; }
110
- form.formtastic fieldset > ol > li.boolean label input { margin:0 0.5em 0 0.2em; }
111
-
112
-
113
- /* RADIO OVERRIDES
114
- --------------------------------------------------------------------------------------------------*/
115
- form.formtastic fieldset > ol > li.radio { }
116
- form.formtastic fieldset > ol > li.radio fieldset { overflow:visible; }
117
- form.formtastic fieldset > ol > li.radio fieldset ol { margin-bottom:-0.5em; }
118
- form.formtastic fieldset > ol > li.radio fieldset ol li { margin:0.1em 0 0.5em 0; overflow:visible; }
119
- form.formtastic fieldset > ol > li.radio fieldset ol li label { float:none; width:100%; }
120
- form.formtastic fieldset > ol > li.radio fieldset ol li label input { margin-right:0.2em; }
121
-
122
-
123
- /* CHECK BOXES (COLLECTION) OVERRIDES
124
- --------------------------------------------------------------------------------------------------*/
125
- form.formtastic fieldset > ol > li.check_boxes { }
126
- form.formtastic fieldset > ol > li.check_boxes fieldset { overflow:visible; }
127
- form.formtastic fieldset > ol > li.check_boxes fieldset ol { margin-bottom:-0.5em; }
128
- form.formtastic fieldset > ol > li.check_boxes fieldset ol li { margin:0.1em 0 0.5em 0; overflow:visible; }
129
- form.formtastic fieldset > ol > li.check_boxes fieldset ol li label { float:none; width:100%; }
130
- form.formtastic fieldset > ol > li.check_boxes fieldset ol li label input { margin-right:0.2em; }
131
-
132
-
133
- /* DATE & TIME OVERRIDES
134
- --------------------------------------------------------------------------------------------------*/
135
- form.formtastic fieldset > ol > li.date fieldset ol li,
136
- form.formtastic fieldset > ol > li.time fieldset ol li,
137
- form.formtastic fieldset > ol > li.datetime fieldset ol li { float:left; width:auto; margin:0 .3em 0 0; }
138
-
139
- form.formtastic fieldset > ol > li.date fieldset ol li label,
140
- form.formtastic fieldset > ol > li.time fieldset ol li label,
141
- form.formtastic fieldset > ol > li.datetime fieldset ol li label { display:none; }
142
-
143
- form.formtastic fieldset > ol > li.date fieldset ol li label input,
144
- form.formtastic fieldset > ol > li.time fieldset ol li label input,
145
- form.formtastic fieldset > ol > li.datetime fieldset ol li label input { display:inline; margin:0; padding:0; }