fullstack-cms 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +17 -0
- data/Gemfile.lock +289 -0
- data/README.md +28 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/app/controllers/links_controller.rb +59 -0
- data/app/controllers/menus_controller.rb +40 -0
- data/app/controllers/page_parts_controller.rb +16 -0
- data/app/controllers/pages_controller.rb +21 -0
- data/app/controllers/posts_controller.rb +39 -0
- data/app/controllers/settings_controller.rb +39 -0
- data/app/controllers/tags_controller.rb +22 -0
- data/app/controllers/users_controller.rb +39 -0
- data/app/helpers/menus_helper.rb +42 -0
- data/app/helpers/pages_helper.rb +14 -0
- data/app/helpers/settings_helper.rb +7 -0
- data/app/models/.gitkeep +0 -0
- data/app/models/link.rb +17 -0
- data/app/models/menu.rb +19 -0
- data/app/models/page.rb +16 -0
- data/app/models/page_part.rb +6 -0
- data/app/models/redirect.rb +4 -0
- data/app/models/setting.rb +64 -0
- data/app/views/admin/links/_filter.html.erb +14 -0
- data/app/views/admin/links/_form.html.erb +24 -0
- data/app/views/admin/links/_index.html.erb +9 -0
- data/app/views/admin/links/_links.html.erb +128 -0
- data/app/views/admin/links/_table_row.html.erb +9 -0
- data/app/views/admin/links/create.js.erb +12 -0
- data/app/views/admin/links/sort.js.coffee +6 -0
- data/app/views/admin/links/update.js.coffee +6 -0
- data/app/views/admin/menus/_filter.html.erb +12 -0
- data/app/views/admin/menus/_form.html.erb +34 -0
- data/app/views/admin/menus/_index.html.erb +9 -0
- data/app/views/admin/page_parts/_tabs.html.erb +21 -0
- data/app/views/admin/page_parts/destroy.js.coffee +12 -0
- data/app/views/admin/pages/_collection.html.erb +7 -0
- data/app/views/admin/pages/_form.html.erb +54 -0
- data/app/views/admin/settings/_filter.html.erb +10 -0
- data/app/views/admin/settings/_form.html.erb +25 -0
- data/app/views/admin/settings/_index.html.erb +8 -0
- data/fullstack-cms.gemspec +189 -0
- data/lib/fullstack-cms.rb +1 -0
- data/lib/fullstack/cms.rb +41 -0
- data/lib/fullstack/cms/engine.rb +9 -0
- data/lib/generators/fullstack/cms/install_generator.rb +88 -0
- data/lib/generators/fullstack/cms/locale_generator.rb +11 -0
- data/lib/generators/fullstack/cms/templates/rails/README.md +40 -0
- data/lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb +10 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/_attachments.html.erb +49 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/create.js.coffee +14 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/destroy.js.coffee +7 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/edit.html.erb +8 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/index.html.erb +54 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/new.html.erb +8 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/update.js.coffee +5 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/dashboard/show.html.erb +0 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_filter.html.erb +14 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_form.html.erb +24 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_index.html.erb +9 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_links.html.erb +128 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_table_row.html.erb +9 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/create.js.erb +12 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/sort.js.coffee +6 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/update.js.coffee +6 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_filter.html.erb +12 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_form.html.erb +34 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_index.html.erb +9 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/page_parts/_tabs.html.erb +21 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/page_parts/destroy.js.coffee +12 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_filter.html.erb +12 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_form.html.erb +50 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_index.html.erb +14 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_filter.html.erb +14 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_form.html.erb +26 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_index.html.erb +9 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_filter.html.erb +10 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_form.html.erb +25 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_index.html.erb +8 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/shared/_nav.html.erb +38 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_filter.html.erb +12 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_form.html.erb +53 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_index.html.erb +18 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/layouts/admin.html.erb +80 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/layouts/application.html.erb +28 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/layouts/email.html.erb +167 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_footer.html.erb +3 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_google_analytics.html.erb +6 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_head.html.erb +33 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_header.html.erb +15 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_javascripts.html.erb +22 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_map.html.erb +14 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_nav.html.erb +15 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_share_buttons_big.html.erb +15 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/site/home.html.erb +12 -0
- data/lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb +29 -0
- data/lib/generators/fullstack/cms/templates/rails/config/schedule.rb +5 -0
- data/lib/generators/fullstack/cms/templates/rails/config/sitemap.rb.tt +28 -0
- data/lib/generators/fullstack/cms/templates/rails/config/styles.yml +47 -0
- data/lib/generators/fullstack/cms/templates/rails/db/migrate/20120416071459_acts_as_taggable_on_migration.rb +31 -0
- data/lib/generators/fullstack/cms/templates/rails/db/migrate/20120730184641_create_friendly_id_slugs.rb +18 -0
- data/lib/generators/fullstack/cms/templates/rails/db/migrate/20120730204729_create_ckeditor_assets.rb +26 -0
- data/lib/generators/fullstack/cms/templates/rails/db/seeds.rb.tt +11 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/asset.rb +4 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/attachment_file.rb +12 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/picture.rb +13 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/support/content.rb +16 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/support/pageable.rb +37 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/support/timestamped_content.rb +12 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/support/user_subject.rb +40 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/.gitkeep +0 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/assets.rake +53 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/cms.rake +23 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/remote.rake +255 -0
- data/lib/generators/fullstack/cms/templates/rails/public/404.html +43 -0
- data/lib/generators/fullstack/cms/templates/rails/public/422.html +26 -0
- data/lib/generators/fullstack/cms/templates/rails/public/500.html +25 -0
- data/lib/generators/fullstack/cms/templates/rails/public/apple-touch-icon.png +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/crossdomain.xml +25 -0
- data/lib/generators/fullstack/cms/templates/rails/public/favicon.ico +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/.gitignore +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/img/glyphicons-halflings.png +0 -0
- data/lib/generators/fullstack/cms/templates/rails/public/js/modernizr-2.5.3.min.js +4 -0
- data/lib/generators/fullstack/cms/templates/rails/public/robots.txt +4 -0
- metadata +333 -0
data/Gemfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
source "http://rubygems.org"
|
2
|
+
|
3
|
+
gem "fullstack"
|
4
|
+
gem "fullstack-admin"
|
5
|
+
|
6
|
+
gem "ars-permalink"
|
7
|
+
gem "has-attached"
|
8
|
+
gem "acts-as-taggable-on"
|
9
|
+
gem "acts_as_indexed"
|
10
|
+
|
11
|
+
gem "rails_i18n_gettext"
|
12
|
+
gem "sitemap"
|
13
|
+
gem "whenever"
|
14
|
+
|
15
|
+
group :development do
|
16
|
+
gem "jeweler"
|
17
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,289 @@
|
|
1
|
+
GEM
|
2
|
+
remote: http://rubygems.org/
|
3
|
+
specs:
|
4
|
+
actionmailer (3.2.8)
|
5
|
+
actionpack (= 3.2.8)
|
6
|
+
mail (~> 2.4.4)
|
7
|
+
actionpack (3.2.8)
|
8
|
+
activemodel (= 3.2.8)
|
9
|
+
activesupport (= 3.2.8)
|
10
|
+
builder (~> 3.0.0)
|
11
|
+
erubis (~> 2.7.0)
|
12
|
+
journey (~> 1.0.4)
|
13
|
+
rack (~> 1.4.0)
|
14
|
+
rack-cache (~> 1.2)
|
15
|
+
rack-test (~> 0.6.1)
|
16
|
+
sprockets (~> 2.1.3)
|
17
|
+
active_record_schema (0.5.2)
|
18
|
+
rails (~> 3.0)
|
19
|
+
activemodel (3.2.8)
|
20
|
+
activesupport (= 3.2.8)
|
21
|
+
builder (~> 3.0.0)
|
22
|
+
activerecord (3.2.8)
|
23
|
+
activemodel (= 3.2.8)
|
24
|
+
activesupport (= 3.2.8)
|
25
|
+
arel (~> 3.0.2)
|
26
|
+
tzinfo (~> 0.3.29)
|
27
|
+
activeresource (3.2.8)
|
28
|
+
activemodel (= 3.2.8)
|
29
|
+
activesupport (= 3.2.8)
|
30
|
+
activesupport (3.2.8)
|
31
|
+
i18n (~> 0.6)
|
32
|
+
multi_json (~> 1.0)
|
33
|
+
acts-as-taggable-on (2.3.3)
|
34
|
+
rails (~> 3.0)
|
35
|
+
acts_as_indexed (0.7.8)
|
36
|
+
arel (3.0.2)
|
37
|
+
ars-permalink (0.1.1)
|
38
|
+
friendly_id
|
39
|
+
rails
|
40
|
+
auto_strip_attributes (2.0.2)
|
41
|
+
activerecord (>= 3.0)
|
42
|
+
aws-sdk (1.6.3)
|
43
|
+
httparty (~> 0.7)
|
44
|
+
json (~> 1.4)
|
45
|
+
nokogiri (>= 1.4.4)
|
46
|
+
uuidtools (~> 2.1)
|
47
|
+
bcrypt-ruby (3.0.1)
|
48
|
+
bootstrap-helpers (0.1.2)
|
49
|
+
rails
|
50
|
+
bootstrap-wysihtml5-rails (0.3.0)
|
51
|
+
railties (>= 3.0)
|
52
|
+
builder (3.0.0)
|
53
|
+
checkin (0.5.0)
|
54
|
+
chosen-rails (0.9.8.1)
|
55
|
+
railties (~> 3.0)
|
56
|
+
thor (~> 0.14)
|
57
|
+
chronic (0.6.7)
|
58
|
+
ckeditor (3.7.1)
|
59
|
+
mime-types
|
60
|
+
orm_adapter
|
61
|
+
cocaine (0.2.1)
|
62
|
+
coffee-script (2.2.0)
|
63
|
+
coffee-script-source
|
64
|
+
execjs
|
65
|
+
coffee-script-source (1.3.3)
|
66
|
+
coffeebeans (1.0.1)
|
67
|
+
actionpack (>= 3.0.0)
|
68
|
+
coffee-script
|
69
|
+
commonjs (0.2.6)
|
70
|
+
country_select (1.0.1)
|
71
|
+
devise (2.1.2)
|
72
|
+
bcrypt-ruby (~> 3.0)
|
73
|
+
orm_adapter (~> 0.1)
|
74
|
+
railties (~> 3.1)
|
75
|
+
warden (~> 1.2.1)
|
76
|
+
devise-i18n (0.5.4)
|
77
|
+
devise-i18n-views (0.2.2)
|
78
|
+
erubis (2.7.0)
|
79
|
+
execjs (1.4.0)
|
80
|
+
multi_json (~> 1.0)
|
81
|
+
facebox-rails (0.1.2)
|
82
|
+
railties (~> 3.0)
|
83
|
+
thor (~> 0.14)
|
84
|
+
flash_cookie_session (1.1.3)
|
85
|
+
rails (~> 3.0)
|
86
|
+
formtastic (2.1.1)
|
87
|
+
actionpack (~> 3.0)
|
88
|
+
formtastic-bootstrap (1.1.1)
|
89
|
+
formtastic
|
90
|
+
rails (~> 3.1)
|
91
|
+
friendly_id (4.0.8)
|
92
|
+
fullstack (0.1.16)
|
93
|
+
active_record_schema
|
94
|
+
auto_strip_attributes
|
95
|
+
checkin
|
96
|
+
coffeebeans
|
97
|
+
country_select
|
98
|
+
devise
|
99
|
+
devise-i18n
|
100
|
+
devise-i18n-views
|
101
|
+
flash_cookie_session
|
102
|
+
has_partial
|
103
|
+
htmlentities
|
104
|
+
jquery-rails
|
105
|
+
kaminari
|
106
|
+
kaminari-i18n
|
107
|
+
meta-tags-helpers
|
108
|
+
mobile-fu (~> 1.1.0)
|
109
|
+
nokogiri
|
110
|
+
rails
|
111
|
+
rails-i18n
|
112
|
+
rails-slow-assets-workaround
|
113
|
+
rails_config
|
114
|
+
rails_nested_layouts
|
115
|
+
rambler
|
116
|
+
remoting
|
117
|
+
remotipart
|
118
|
+
resource-presentation-helpers
|
119
|
+
simple_form
|
120
|
+
squeel
|
121
|
+
fullstack-admin (0.1.17)
|
122
|
+
bootstrap-helpers
|
123
|
+
bootstrap-wysihtml5-rails
|
124
|
+
chosen-rails
|
125
|
+
ckeditor
|
126
|
+
facebox-rails
|
127
|
+
formtastic (~> 2.1.1)
|
128
|
+
formtastic-bootstrap
|
129
|
+
fullstack
|
130
|
+
less-rails-bootstrap
|
131
|
+
meta_search
|
132
|
+
plupload-rails
|
133
|
+
rails (~> 3.2)
|
134
|
+
therubyracer
|
135
|
+
git (1.2.5)
|
136
|
+
has-attached (0.1.1)
|
137
|
+
aws-sdk
|
138
|
+
flash_cookie_session
|
139
|
+
paperclip
|
140
|
+
rails
|
141
|
+
has_partial (0.1.1)
|
142
|
+
rails
|
143
|
+
hike (1.2.1)
|
144
|
+
htmlentities (4.3.1)
|
145
|
+
httparty (0.8.3)
|
146
|
+
multi_json (~> 1.0)
|
147
|
+
multi_xml
|
148
|
+
i18n (0.6.0)
|
149
|
+
jeweler (1.8.4)
|
150
|
+
bundler (~> 1.0)
|
151
|
+
git (>= 1.2.5)
|
152
|
+
rake
|
153
|
+
rdoc
|
154
|
+
journey (1.0.4)
|
155
|
+
jquery-rails (2.0.2)
|
156
|
+
railties (>= 3.2.0, < 5.0)
|
157
|
+
thor (~> 0.14)
|
158
|
+
json (1.7.4)
|
159
|
+
kaminari (0.13.0)
|
160
|
+
actionpack (>= 3.0.0)
|
161
|
+
activesupport (>= 3.0.0)
|
162
|
+
railties (>= 3.0.0)
|
163
|
+
kaminari-i18n (0.1.3)
|
164
|
+
rails
|
165
|
+
less (2.2.1)
|
166
|
+
commonjs (~> 0.2.6)
|
167
|
+
less-rails (2.2.3)
|
168
|
+
actionpack (>= 3.1)
|
169
|
+
less (~> 2.2.0)
|
170
|
+
less-rails-bootstrap (2.0.13)
|
171
|
+
less-rails (~> 2.2.0)
|
172
|
+
libv8 (3.3.10.4)
|
173
|
+
mail (2.4.4)
|
174
|
+
i18n (>= 0.4.0)
|
175
|
+
mime-types (~> 1.16)
|
176
|
+
treetop (~> 1.4.8)
|
177
|
+
meta-tags-helpers (0.1.2)
|
178
|
+
rails
|
179
|
+
meta_search (1.1.3)
|
180
|
+
actionpack (~> 3.1)
|
181
|
+
activerecord (~> 3.1)
|
182
|
+
activesupport (~> 3.1)
|
183
|
+
polyamorous (~> 0.5.0)
|
184
|
+
mime-types (1.19)
|
185
|
+
mobile-fu (1.1.0)
|
186
|
+
rack-mobile-detect
|
187
|
+
rails
|
188
|
+
multi_json (1.3.6)
|
189
|
+
multi_xml (0.5.1)
|
190
|
+
net-ssh (2.5.2)
|
191
|
+
nokogiri (1.5.5)
|
192
|
+
orm_adapter (0.4.0)
|
193
|
+
paperclip (3.1.4)
|
194
|
+
activemodel (>= 3.0.0)
|
195
|
+
activerecord (>= 3.0.0)
|
196
|
+
activesupport (>= 3.0.0)
|
197
|
+
cocaine (>= 0.0.2)
|
198
|
+
mime-types
|
199
|
+
plupload-rails (1.0.6)
|
200
|
+
rails (~> 3.1)
|
201
|
+
polyamorous (0.5.0)
|
202
|
+
activerecord (~> 3.0)
|
203
|
+
polyglot (0.3.3)
|
204
|
+
rack (1.4.1)
|
205
|
+
rack-cache (1.2)
|
206
|
+
rack (>= 0.4)
|
207
|
+
rack-mobile-detect (0.4.0)
|
208
|
+
rack
|
209
|
+
rack-ssl (1.3.2)
|
210
|
+
rack
|
211
|
+
rack-test (0.6.1)
|
212
|
+
rack (>= 1.0)
|
213
|
+
rails (3.2.8)
|
214
|
+
actionmailer (= 3.2.8)
|
215
|
+
actionpack (= 3.2.8)
|
216
|
+
activerecord (= 3.2.8)
|
217
|
+
activeresource (= 3.2.8)
|
218
|
+
activesupport (= 3.2.8)
|
219
|
+
bundler (~> 1.0)
|
220
|
+
railties (= 3.2.8)
|
221
|
+
rails-i18n (0.6.5)
|
222
|
+
i18n (~> 0.5)
|
223
|
+
rails-slow-assets-workaround (0.1.1)
|
224
|
+
rails
|
225
|
+
rails_config (0.3.1)
|
226
|
+
activesupport (>= 3.0)
|
227
|
+
rails_i18n_gettext (0.0.4)
|
228
|
+
rails (~> 3.0)
|
229
|
+
rails_nested_layouts (0.1.1)
|
230
|
+
rails
|
231
|
+
railties (3.2.8)
|
232
|
+
actionpack (= 3.2.8)
|
233
|
+
activesupport (= 3.2.8)
|
234
|
+
rack-ssl (~> 1.3.2)
|
235
|
+
rake (>= 0.8.7)
|
236
|
+
rdoc (~> 3.4)
|
237
|
+
thor (>= 0.14.6, < 2.0)
|
238
|
+
rake (0.9.2.2)
|
239
|
+
rambler (0.1.2)
|
240
|
+
rails (~> 3.2)
|
241
|
+
rdoc (3.12)
|
242
|
+
json (~> 1.4)
|
243
|
+
remoting (0.3.9)
|
244
|
+
net-ssh
|
245
|
+
rails (~> 3.0)
|
246
|
+
remotipart (1.0.2)
|
247
|
+
resource-presentation-helpers (0.1.1)
|
248
|
+
rails
|
249
|
+
simple_form (2.0.2)
|
250
|
+
actionpack (~> 3.0)
|
251
|
+
activemodel (~> 3.0)
|
252
|
+
sitemap (0.3.2)
|
253
|
+
sprockets (2.1.3)
|
254
|
+
hike (~> 1.2)
|
255
|
+
rack (~> 1.0)
|
256
|
+
tilt (~> 1.1, != 1.3.0)
|
257
|
+
squeel (1.0.9)
|
258
|
+
activerecord (~> 3.0)
|
259
|
+
activesupport (~> 3.0)
|
260
|
+
polyamorous (~> 0.5.0)
|
261
|
+
therubyracer (0.10.2)
|
262
|
+
libv8 (~> 3.3.10)
|
263
|
+
thor (0.15.4)
|
264
|
+
tilt (1.3.3)
|
265
|
+
treetop (1.4.10)
|
266
|
+
polyglot
|
267
|
+
polyglot (>= 0.3.1)
|
268
|
+
tzinfo (0.3.33)
|
269
|
+
uuidtools (2.1.3)
|
270
|
+
warden (1.2.1)
|
271
|
+
rack (>= 1.0)
|
272
|
+
whenever (0.7.3)
|
273
|
+
activesupport (>= 2.3.4)
|
274
|
+
chronic (~> 0.6.3)
|
275
|
+
|
276
|
+
PLATFORMS
|
277
|
+
ruby
|
278
|
+
|
279
|
+
DEPENDENCIES
|
280
|
+
acts-as-taggable-on
|
281
|
+
acts_as_indexed
|
282
|
+
ars-permalink
|
283
|
+
fullstack
|
284
|
+
fullstack-admin
|
285
|
+
has-attached
|
286
|
+
jeweler
|
287
|
+
rails_i18n_gettext
|
288
|
+
sitemap
|
289
|
+
whenever
|
data/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# Fullstack-cms
|
2
|
+
|
3
|
+
CMS system built on fullstack
|
4
|
+
|
5
|
+
---
|
6
|
+
|
7
|
+
Copyright (c) 2012 mcasimir
|
8
|
+
|
9
|
+
MIT License
|
10
|
+
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
12
|
+
a copy of this software and associated documentation files (the
|
13
|
+
"Software"), to deal in the Software without restriction, including
|
14
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
15
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
16
|
+
permit persons to whom the Software is furnished to do so, subject to
|
17
|
+
the following conditions:
|
18
|
+
|
19
|
+
The above copyright notice and this permission notice shall be
|
20
|
+
included in all copies or substantial portions of the Software.
|
21
|
+
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
23
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
24
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
25
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
26
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
27
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
28
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,53 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler'
|
5
|
+
begin
|
6
|
+
Bundler.setup(:default, :development)
|
7
|
+
rescue Bundler::BundlerError => e
|
8
|
+
$stderr.puts e.message
|
9
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
10
|
+
exit e.status_code
|
11
|
+
end
|
12
|
+
require 'rake'
|
13
|
+
|
14
|
+
require 'jeweler'
|
15
|
+
Jeweler::Tasks.new do |gem|
|
16
|
+
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
+
gem.name = "fullstack-cms"
|
18
|
+
gem.homepage = "http://github.com/mcasimir/kaminari-bootstrap"
|
19
|
+
gem.license = "MIT"
|
20
|
+
gem.summary = %Q{CMS system built on fullstack}
|
21
|
+
gem.description = %Q{CMS system built on fullstack}
|
22
|
+
gem.email = "maurizio.cas@gmail.com"
|
23
|
+
gem.authors = ["mcasimir"]
|
24
|
+
# dependencies defined in Gemfile
|
25
|
+
end
|
26
|
+
Jeweler::RubygemsDotOrgTasks.new
|
27
|
+
|
28
|
+
|
29
|
+
task :push do
|
30
|
+
message = ENV["message"] || "commit #{Time.now}"
|
31
|
+
`git add . && git commit -a -m '#{message}' && git push`
|
32
|
+
end
|
33
|
+
|
34
|
+
task "release:patch" do
|
35
|
+
Rake::Task["gemspec"].invoke
|
36
|
+
Rake::Task["version:bump:patch"]
|
37
|
+
Rake::Task["push"].invoke
|
38
|
+
Rake::Task["release"].invoke
|
39
|
+
end
|
40
|
+
|
41
|
+
task "release:minor" do
|
42
|
+
Rake::Task["gemspec"].invoke
|
43
|
+
Rake::Task["version:bump:minor"]
|
44
|
+
Rake::Task["push"].invoke
|
45
|
+
Rake::Task["release"].invoke
|
46
|
+
end
|
47
|
+
|
48
|
+
task "release:major" do
|
49
|
+
Rake::Task["gemspec"].invoke
|
50
|
+
Rake::Task["version:bump:major"]
|
51
|
+
Rake::Task["push"].invoke
|
52
|
+
Rake::Task["release"].invoke
|
53
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.1.1
|
@@ -0,0 +1,59 @@
|
|
1
|
+
class Admin::LinksController < Admin::BaseController
|
2
|
+
respond_to :html, :js
|
3
|
+
|
4
|
+
def index
|
5
|
+
@search = Link.search(params[:search])
|
6
|
+
@links = @search.page(params[:page] || 1)
|
7
|
+
end
|
8
|
+
|
9
|
+
def new
|
10
|
+
@link = Link.new
|
11
|
+
end
|
12
|
+
|
13
|
+
def edit
|
14
|
+
end
|
15
|
+
|
16
|
+
def create
|
17
|
+
@link = Link.new(params[:link])
|
18
|
+
|
19
|
+
if @link.respond_to?(:author)
|
20
|
+
@link.author ||= current_user
|
21
|
+
end
|
22
|
+
|
23
|
+
@link.save
|
24
|
+
respond_with(@link)
|
25
|
+
end
|
26
|
+
|
27
|
+
def update
|
28
|
+
@link.attributes = params[:link]
|
29
|
+
@link.save
|
30
|
+
respond_with(@link)
|
31
|
+
end
|
32
|
+
|
33
|
+
def destroy
|
34
|
+
@link.destroy
|
35
|
+
respond_with(@link)
|
36
|
+
end
|
37
|
+
|
38
|
+
def sort
|
39
|
+
@error = false
|
40
|
+
if params[:list]
|
41
|
+
list_ids = params[:list].split(";")
|
42
|
+
list_ids.each_with_index {|id, i|
|
43
|
+
Link.find(id).update_attribute(:position, i)
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
|
48
|
+
rescue
|
49
|
+
@error = true
|
50
|
+
|
51
|
+
end
|
52
|
+
else
|
53
|
+
render :text => "0"
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
|