fullstack-cms 0.1.1 → 0.1.2
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.
- data/Gemfile +1 -0
- data/Gemfile.lock +3 -0
- data/VERSION +1 -1
- data/app/controllers/{links_controller.rb → admin/links_controller.rb} +0 -0
- data/app/controllers/{menus_controller.rb → admin/menus_controller.rb} +0 -0
- data/app/controllers/{page_parts_controller.rb → admin/page_parts_controller.rb} +0 -0
- data/app/controllers/{pages_controller.rb → admin/pages_controller.rb} +1 -1
- data/app/controllers/{posts_controller.rb → admin/posts_controller.rb} +0 -0
- data/app/controllers/{settings_controller.rb → admin/settings_controller.rb} +0 -0
- data/app/controllers/{tags_controller.rb → admin/tags_controller.rb} +0 -0
- data/app/controllers/{users_controller.rb → admin/users_controller.rb} +0 -0
- data/app/helpers/menus_helper.rb +2 -1
- data/app/helpers/mobile_helper.rb +7 -0
- data/app/helpers/pages_helper.rb +25 -1
- data/app/models/nestable.rb +14 -0
- data/app/models/page.rb +16 -3
- data/{lib/generators/fullstack/cms/templates/rails/lib/support → app/models}/pageable.rb +2 -1
- data/app/views/admin/links/_form.html.erb +3 -3
- data/app/views/admin/links/_index.html.erb +1 -1
- data/app/views/admin/links/_links.html.erb +15 -48
- data/app/views/admin/menus/_form.html.erb +5 -5
- data/app/views/admin/menus/_index.html.erb +11 -2
- data/app/views/admin/page_parts/_tabs.html.erb +3 -3
- data/app/views/admin/pages/_form.html.erb +4 -19
- data/app/views/admin/settings/_form.html.erb +17 -15
- data/app/views/admin/settings/_index.html.erb +7 -1
- data/config/routes.rb +27 -0
- data/fullstack-cms.gemspec +29 -62
- data/lib/fullstack/cms.rb +1 -0
- data/lib/generators/fullstack/cms/install_generator.rb +40 -4
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/admin/links.js.coffee +20 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/jquery.fitvids.js +77 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/plugins.js +5 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/site.js.coffee +12 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/bootstrap.overrides.css +3 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap.min.css +722 -0
- data/lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/site.css +30 -0
- data/lib/generators/fullstack/cms/templates/rails/app/views/layouts/email.html.erb +1 -1
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_head.html.erb +7 -7
- data/lib/generators/fullstack/cms/templates/rails/app/views/site/_header.html.erb +1 -1
- data/lib/generators/fullstack/cms/templates/rails/config/initializers/devise_mailer.rb +1 -0
- data/lib/generators/fullstack/cms/templates/rails/public/admin/drag-handle.png +0 -0
- data/locales/en.yml +9 -0
- data/locales/it.yml +30 -0
- metadata +42 -62
- data/app/views/admin/menus/_filter.html.erb +0 -12
- data/app/views/admin/settings/_filter.html.erb +0 -10
- data/lib/generators/fullstack/cms/templates/rails/README.md +0 -40
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/_attachments.html.erb +0 -49
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/create.js.coffee +0 -14
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/destroy.js.coffee +0 -7
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/edit.html.erb +0 -8
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/index.html.erb +0 -54
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/new.html.erb +0 -8
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/base/update.js.coffee +0 -5
- 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 +0 -14
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_form.html.erb +0 -24
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_index.html.erb +0 -9
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_links.html.erb +0 -128
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_table_row.html.erb +0 -9
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/create.js.erb +0 -12
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/sort.js.coffee +0 -6
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/links/update.js.coffee +0 -6
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_filter.html.erb +0 -12
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_form.html.erb +0 -34
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_index.html.erb +0 -9
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/page_parts/_tabs.html.erb +0 -21
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/page_parts/destroy.js.coffee +0 -12
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_filter.html.erb +0 -12
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_form.html.erb +0 -50
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_index.html.erb +0 -14
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_filter.html.erb +0 -14
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_form.html.erb +0 -26
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_index.html.erb +0 -9
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_filter.html.erb +0 -10
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_form.html.erb +0 -25
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_index.html.erb +0 -8
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/shared/_nav.html.erb +0 -38
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_filter.html.erb +0 -12
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_form.html.erb +0 -53
- data/lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_index.html.erb +0 -18
- data/lib/generators/fullstack/cms/templates/rails/app/views/layouts/admin.html.erb +0 -80
- data/lib/generators/fullstack/cms/templates/rails/db/migrate/20120416071459_acts_as_taggable_on_migration.rb +0 -31
- data/lib/generators/fullstack/cms/templates/rails/db/migrate/20120730184641_create_friendly_id_slugs.rb +0 -18
- data/lib/generators/fullstack/cms/templates/rails/db/migrate/20120730204729_create_ckeditor_assets.rb +0 -26
- data/lib/generators/fullstack/cms/templates/rails/db/seeds.rb.tt +0 -11
- data/lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/asset.rb +0 -4
- data/lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/attachment_file.rb +0 -12
- data/lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/picture.rb +0 -13
- data/lib/generators/fullstack/cms/templates/rails/lib/support/user_subject.rb +0 -40
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/.gitkeep +0 -0
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/assets.rake +0 -53
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/cms.rake +0 -23
- data/lib/generators/fullstack/cms/templates/rails/lib/tasks/remote.rake +0 -255
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
*= require site/lib/bootstrap.min
|
|
3
|
+
*= require site/bootstrap.overrides
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@media print {
|
|
7
|
+
* { background: transparent !important; color: black !important; box-shadow:none !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; }
|
|
8
|
+
a, a:visited { text-decoration: underline; }
|
|
9
|
+
a[href]:after { content: " (" attr(href) ")"; }
|
|
10
|
+
abbr[title]:after { content: " (" attr(title) ")"; }
|
|
11
|
+
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
|
|
12
|
+
pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
|
|
13
|
+
thead { display: table-header-group; }
|
|
14
|
+
tr, img { page-break-inside: avoid; }
|
|
15
|
+
img { max-width: 100% !important; }
|
|
16
|
+
@page { margin: 0.5cm; }
|
|
17
|
+
p, h2, h3 { orphans: 3; widows: 3; }
|
|
18
|
+
h2, h3 { page-break-after: avoid; }
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/* =========== */
|
|
23
|
+
/* = Helpers = */
|
|
24
|
+
/* =========== */
|
|
25
|
+
|
|
26
|
+
ul.hl,ol.hl{list-style-type:none;padding:0;margin:0}ul.hl li,ol.hl li{float:left;text-align:center;margin:0 0 0 0.5em;}ul.hl li.fr, ol.hl li.fr{float: right;}.cfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.cfix{display:inline-block}* html .cfix{height:1%}.cfix{display:block}ul.hl:after,ol.hl:after{content:".";display:block;height:0;clear:both;visibility:hidden}ul.hl,ol.hl{display:inline-block}* html ul.hl,* html ul.hl ol.hl{height:1%}ul.hl,ol.hl{display:block}.fl {display: block;float: left;} .fr{display: block;float: right}li.separator,li.sep{display:block;height:1em;visibility:hidden}.clear{clear:both}
|
|
27
|
+
ul.hl li:first-child,ol.hl li:first-child{margin:0;}
|
|
28
|
+
.mb1 {margin-bottom: 20px;}
|
|
29
|
+
.float.right {float: right;}
|
|
30
|
+
.float.left {float: left; }
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
<!-- Tables are the most common way to format your email consistently. Set your table widths inside cells and in most cases reset cellpadding, cellspacing, and border to zero. Use nested tables as a way to space effectively in your message. -->
|
|
142
142
|
<table cellpadding="0" cellspacing="0" border="0" align="center">
|
|
143
143
|
<tr>
|
|
144
|
-
<td width="600" valign="top" id="header-title"><h1><%= Settings.
|
|
144
|
+
<td width="600" valign="top" id="header-title"><h1><%= Settings.app.title %></h1></td>
|
|
145
145
|
</tr>
|
|
146
146
|
<tr>
|
|
147
147
|
<td width="600" valign="top"><%= yield %></td>
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<%= yield :meta %>
|
|
4
4
|
<% else %>
|
|
5
5
|
<%
|
|
6
|
-
site_title = get_setting(:site_title) || Settings.
|
|
7
|
-
site_description = get_setting(:site_description) || Settings.
|
|
8
|
-
site_slogan = get_setting(:site_slogan) || Settings.
|
|
6
|
+
site_title = get_setting(:site_title) || Settings.app.title
|
|
7
|
+
site_description = get_setting(:site_description) || Settings.app.slogan
|
|
8
|
+
site_slogan = get_setting(:site_slogan) || Settings.app.slogan
|
|
9
9
|
%>
|
|
10
10
|
|
|
11
11
|
<% if home? %>
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
:og => {:type => "website"}
|
|
16
16
|
)
|
|
17
17
|
%>
|
|
18
|
-
<% elsif
|
|
18
|
+
<% elsif meta_title %>
|
|
19
19
|
<%= meta_tags(
|
|
20
|
-
:title => "#{
|
|
21
|
-
:description =>
|
|
22
|
-
:og => {:image =>
|
|
20
|
+
:title => "#{meta_title} | #{site_title}",
|
|
21
|
+
:description => meta_description,
|
|
22
|
+
:og => {:image => meta_image, :type => (meta_type || "article")}
|
|
23
23
|
)
|
|
24
24
|
%>
|
|
25
25
|
<% end %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Devise::Mailer.layout "email"
|
data/locales/en.yml
ADDED
data/locales/it.yml
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
it:
|
|
2
|
+
fullstack:
|
|
3
|
+
admin:
|
|
4
|
+
homepage: "Homepage"
|
|
5
|
+
account: "Account"
|
|
6
|
+
dashboard: "Dashboard"
|
|
7
|
+
logout: "Logout"
|
|
8
|
+
new: "Crea"
|
|
9
|
+
show: "Visualizza"
|
|
10
|
+
edit: "Modifica"
|
|
11
|
+
delete: "Elimina"
|
|
12
|
+
filter: "Filtra"
|
|
13
|
+
create: "Crea"
|
|
14
|
+
actions: "Azioni"
|
|
15
|
+
|
|
16
|
+
are_you_sure: "Sei sicuro?"
|
|
17
|
+
|
|
18
|
+
form:
|
|
19
|
+
correct_these_errors_and_retry: "Correggi questi errori e riprova"
|
|
20
|
+
|
|
21
|
+
flash:
|
|
22
|
+
success:
|
|
23
|
+
generic: "Cambiamenti salvati con successo"
|
|
24
|
+
update: "Documento salvato con successo"
|
|
25
|
+
delete: "Document eliminato con successo"
|
|
26
|
+
|
|
27
|
+
error:
|
|
28
|
+
generic: "Cambiamenti non salvati a causa di un errore"
|
|
29
|
+
update: "Documento non salvato a causa di un errore"
|
|
30
|
+
delete: "Documento non eliminato a causa di un errore"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fullstack-cms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-08-
|
|
12
|
+
date: 2012-08-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: fullstack
|
|
@@ -107,6 +107,22 @@ dependencies:
|
|
|
107
107
|
- - ! '>='
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
109
|
version: '0'
|
|
110
|
+
- !ruby/object:Gem::Dependency
|
|
111
|
+
name: awesome_nested_set
|
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
|
113
|
+
none: false
|
|
114
|
+
requirements:
|
|
115
|
+
- - ! '>='
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :runtime
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
none: false
|
|
122
|
+
requirements:
|
|
123
|
+
- - ! '>='
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: '0'
|
|
110
126
|
- !ruby/object:Gem::Dependency
|
|
111
127
|
name: rails_i18n_gettext
|
|
112
128
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -183,22 +199,25 @@ files:
|
|
|
183
199
|
- README.md
|
|
184
200
|
- Rakefile
|
|
185
201
|
- VERSION
|
|
186
|
-
- app/controllers/links_controller.rb
|
|
187
|
-
- app/controllers/menus_controller.rb
|
|
188
|
-
- app/controllers/page_parts_controller.rb
|
|
189
|
-
- app/controllers/pages_controller.rb
|
|
190
|
-
- app/controllers/posts_controller.rb
|
|
191
|
-
- app/controllers/settings_controller.rb
|
|
192
|
-
- app/controllers/tags_controller.rb
|
|
193
|
-
- app/controllers/users_controller.rb
|
|
202
|
+
- app/controllers/admin/links_controller.rb
|
|
203
|
+
- app/controllers/admin/menus_controller.rb
|
|
204
|
+
- app/controllers/admin/page_parts_controller.rb
|
|
205
|
+
- app/controllers/admin/pages_controller.rb
|
|
206
|
+
- app/controllers/admin/posts_controller.rb
|
|
207
|
+
- app/controllers/admin/settings_controller.rb
|
|
208
|
+
- app/controllers/admin/tags_controller.rb
|
|
209
|
+
- app/controllers/admin/users_controller.rb
|
|
194
210
|
- app/helpers/menus_helper.rb
|
|
211
|
+
- app/helpers/mobile_helper.rb
|
|
195
212
|
- app/helpers/pages_helper.rb
|
|
196
213
|
- app/helpers/settings_helper.rb
|
|
197
214
|
- app/models/.gitkeep
|
|
198
215
|
- app/models/link.rb
|
|
199
216
|
- app/models/menu.rb
|
|
217
|
+
- app/models/nestable.rb
|
|
200
218
|
- app/models/page.rb
|
|
201
219
|
- app/models/page_part.rb
|
|
220
|
+
- app/models/pageable.rb
|
|
202
221
|
- app/models/redirect.rb
|
|
203
222
|
- app/models/setting.rb
|
|
204
223
|
- app/views/admin/links/_filter.html.erb
|
|
@@ -209,59 +228,29 @@ files:
|
|
|
209
228
|
- app/views/admin/links/create.js.erb
|
|
210
229
|
- app/views/admin/links/sort.js.coffee
|
|
211
230
|
- app/views/admin/links/update.js.coffee
|
|
212
|
-
- app/views/admin/menus/_filter.html.erb
|
|
213
231
|
- app/views/admin/menus/_form.html.erb
|
|
214
232
|
- app/views/admin/menus/_index.html.erb
|
|
215
233
|
- app/views/admin/page_parts/_tabs.html.erb
|
|
216
234
|
- app/views/admin/page_parts/destroy.js.coffee
|
|
217
235
|
- app/views/admin/pages/_collection.html.erb
|
|
218
236
|
- app/views/admin/pages/_form.html.erb
|
|
219
|
-
- app/views/admin/settings/_filter.html.erb
|
|
220
237
|
- app/views/admin/settings/_form.html.erb
|
|
221
238
|
- app/views/admin/settings/_index.html.erb
|
|
239
|
+
- config/routes.rb
|
|
222
240
|
- fullstack-cms.gemspec
|
|
223
241
|
- lib/fullstack-cms.rb
|
|
224
242
|
- lib/fullstack/cms.rb
|
|
225
243
|
- lib/fullstack/cms/engine.rb
|
|
226
244
|
- lib/generators/fullstack/cms/install_generator.rb
|
|
227
245
|
- lib/generators/fullstack/cms/locale_generator.rb
|
|
228
|
-
- lib/generators/fullstack/cms/templates/rails/
|
|
246
|
+
- lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/admin/links.js.coffee
|
|
247
|
+
- lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/jquery.fitvids.js
|
|
248
|
+
- lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/lib/plugins.js
|
|
249
|
+
- lib/generators/fullstack/cms/templates/rails/app/assets/javascripts/site/site.js.coffee
|
|
250
|
+
- lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/bootstrap.overrides.css
|
|
251
|
+
- lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/lib/bootstrap.min.css
|
|
252
|
+
- lib/generators/fullstack/cms/templates/rails/app/assets/stylesheets/site/site.css
|
|
229
253
|
- lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb
|
|
230
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/_attachments.html.erb
|
|
231
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/create.js.coffee
|
|
232
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/base/destroy.js.coffee
|
|
233
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/base/edit.html.erb
|
|
234
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/base/index.html.erb
|
|
235
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/base/new.html.erb
|
|
236
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/base/update.js.coffee
|
|
237
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/dashboard/show.html.erb
|
|
238
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_filter.html.erb
|
|
239
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_form.html.erb
|
|
240
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_index.html.erb
|
|
241
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_links.html.erb
|
|
242
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/_table_row.html.erb
|
|
243
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/create.js.erb
|
|
244
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/sort.js.coffee
|
|
245
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/links/update.js.coffee
|
|
246
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_filter.html.erb
|
|
247
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_form.html.erb
|
|
248
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/menus/_index.html.erb
|
|
249
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/page_parts/_tabs.html.erb
|
|
250
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/page_parts/destroy.js.coffee
|
|
251
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_filter.html.erb
|
|
252
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_form.html.erb
|
|
253
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/pages/_index.html.erb
|
|
254
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_filter.html.erb
|
|
255
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_form.html.erb
|
|
256
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/photogalleries/_index.html.erb
|
|
257
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_filter.html.erb
|
|
258
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_form.html.erb
|
|
259
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/settings/_index.html.erb
|
|
260
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/shared/_nav.html.erb
|
|
261
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_filter.html.erb
|
|
262
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_form.html.erb
|
|
263
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/admin/users/_index.html.erb
|
|
264
|
-
- lib/generators/fullstack/cms/templates/rails/app/views/layouts/admin.html.erb
|
|
265
254
|
- lib/generators/fullstack/cms/templates/rails/app/views/layouts/application.html.erb
|
|
266
255
|
- lib/generators/fullstack/cms/templates/rails/app/views/layouts/email.html.erb
|
|
267
256
|
- lib/generators/fullstack/cms/templates/rails/app/views/site/_footer.html.erb
|
|
@@ -274,27 +263,16 @@ files:
|
|
|
274
263
|
- lib/generators/fullstack/cms/templates/rails/app/views/site/_share_buttons_big.html.erb
|
|
275
264
|
- lib/generators/fullstack/cms/templates/rails/app/views/site/site/home.html.erb
|
|
276
265
|
- lib/generators/fullstack/cms/templates/rails/config/initializers/devise_controller.rb
|
|
266
|
+
- lib/generators/fullstack/cms/templates/rails/config/initializers/devise_mailer.rb
|
|
277
267
|
- lib/generators/fullstack/cms/templates/rails/config/schedule.rb
|
|
278
268
|
- lib/generators/fullstack/cms/templates/rails/config/sitemap.rb.tt
|
|
279
269
|
- lib/generators/fullstack/cms/templates/rails/config/styles.yml
|
|
280
|
-
- lib/generators/fullstack/cms/templates/rails/db/migrate/20120416071459_acts_as_taggable_on_migration.rb
|
|
281
|
-
- lib/generators/fullstack/cms/templates/rails/db/migrate/20120730184641_create_friendly_id_slugs.rb
|
|
282
|
-
- lib/generators/fullstack/cms/templates/rails/db/migrate/20120730204729_create_ckeditor_assets.rb
|
|
283
|
-
- lib/generators/fullstack/cms/templates/rails/db/seeds.rb.tt
|
|
284
|
-
- lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/asset.rb
|
|
285
|
-
- lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/attachment_file.rb
|
|
286
|
-
- lib/generators/fullstack/cms/templates/rails/lib/support/ckeditor/picture.rb
|
|
287
270
|
- lib/generators/fullstack/cms/templates/rails/lib/support/content.rb
|
|
288
|
-
- lib/generators/fullstack/cms/templates/rails/lib/support/pageable.rb
|
|
289
271
|
- lib/generators/fullstack/cms/templates/rails/lib/support/timestamped_content.rb
|
|
290
|
-
- lib/generators/fullstack/cms/templates/rails/lib/support/user_subject.rb
|
|
291
|
-
- lib/generators/fullstack/cms/templates/rails/lib/tasks/.gitkeep
|
|
292
|
-
- lib/generators/fullstack/cms/templates/rails/lib/tasks/assets.rake
|
|
293
|
-
- lib/generators/fullstack/cms/templates/rails/lib/tasks/cms.rake
|
|
294
|
-
- lib/generators/fullstack/cms/templates/rails/lib/tasks/remote.rake
|
|
295
272
|
- lib/generators/fullstack/cms/templates/rails/public/404.html
|
|
296
273
|
- lib/generators/fullstack/cms/templates/rails/public/422.html
|
|
297
274
|
- lib/generators/fullstack/cms/templates/rails/public/500.html
|
|
275
|
+
- lib/generators/fullstack/cms/templates/rails/public/admin/drag-handle.png
|
|
298
276
|
- lib/generators/fullstack/cms/templates/rails/public/apple-touch-icon.png
|
|
299
277
|
- lib/generators/fullstack/cms/templates/rails/public/crossdomain.xml
|
|
300
278
|
- lib/generators/fullstack/cms/templates/rails/public/favicon.ico
|
|
@@ -302,6 +280,8 @@ files:
|
|
|
302
280
|
- lib/generators/fullstack/cms/templates/rails/public/img/glyphicons-halflings.png
|
|
303
281
|
- lib/generators/fullstack/cms/templates/rails/public/js/modernizr-2.5.3.min.js
|
|
304
282
|
- lib/generators/fullstack/cms/templates/rails/public/robots.txt
|
|
283
|
+
- locales/en.yml
|
|
284
|
+
- locales/it.yml
|
|
305
285
|
homepage: http://github.com/mcasimir/kaminari-bootstrap
|
|
306
286
|
licenses:
|
|
307
287
|
- MIT
|
|
@@ -317,7 +297,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
317
297
|
version: '0'
|
|
318
298
|
segments:
|
|
319
299
|
- 0
|
|
320
|
-
hash:
|
|
300
|
+
hash: 4559489889634268604
|
|
321
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
302
|
none: false
|
|
323
303
|
requirements:
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# CMS Readme
|
|
2
|
-
|
|
3
|
-
## Bootstrap the CMS
|
|
4
|
-
|
|
5
|
-
* Edit basic models if you wish
|
|
6
|
-
* run rake cms:bootstrap
|
|
7
|
-
|
|
8
|
-
This will
|
|
9
|
-
|
|
10
|
-
* generate migrations from models
|
|
11
|
-
* migrate the database
|
|
12
|
-
* seed the database
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## Steps to deploy
|
|
16
|
-
|
|
17
|
-
Configure Git Local/Remote
|
|
18
|
-
|
|
19
|
-
* rake remote:setup
|
|
20
|
-
* rake remote:init
|
|
21
|
-
|
|
22
|
-
Configure Apache
|
|
23
|
-
|
|
24
|
-
* rake remote:apache:ensite
|
|
25
|
-
* rake remote:apache:reload
|
|
26
|
-
|
|
27
|
-
First Deploy
|
|
28
|
-
|
|
29
|
-
* rake remote:deploy
|
|
30
|
-
* rake remote:db:migrate
|
|
31
|
-
* rake remote:db:seed
|
|
32
|
-
|
|
33
|
-
Install CRON Jobs from whenever
|
|
34
|
-
* rake remote:whenever
|
|
35
|
-
|
|
36
|
-
Precompile Assets
|
|
37
|
-
* rake remote:assets:precompile
|
|
38
|
-
|
|
39
|
-
Restart server
|
|
40
|
-
* rake remote:restart
|
data/lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/_attachments.html.erb
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<table class="table table-bordered">
|
|
2
|
-
<thead>
|
|
3
|
-
<tr>
|
|
4
|
-
<th><%= _("Title") %></th>
|
|
5
|
-
<th><%= _("Actions") %></th>
|
|
6
|
-
</tr>
|
|
7
|
-
</thead>
|
|
8
|
-
<tbody id="links_table_body">
|
|
9
|
-
<% attachable.attachments.each do |attachment| %>
|
|
10
|
-
<%= render :partial => "admin/attachments/table_row", :locals => {:attachment => attachment} %>
|
|
11
|
-
<% end %>
|
|
12
|
-
</tbody>
|
|
13
|
-
</table>
|
|
14
|
-
|
|
15
|
-
<div class="btn-toolbar">
|
|
16
|
-
<div class="btn-group">
|
|
17
|
-
<button class="btn btn-danger" data-toggle="collapse" data-target="#add_link_form">
|
|
18
|
-
<%= _("Add a new attachment") %>
|
|
19
|
-
</button>
|
|
20
|
-
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div id="add_link_form" class="collapse">
|
|
25
|
-
|
|
26
|
-
<div class="well">
|
|
27
|
-
<%= semantic_form_for [:"admin", Attachment.new(:attachable => attachable)], :html => {:multipart => true}, :remote => true do |f| -%>
|
|
28
|
-
|
|
29
|
-
<%= form_errors(f) %>
|
|
30
|
-
<%= f.inputs :class=>"hide" do %>
|
|
31
|
-
<%= f.input :attachable_id, :as => :hidden, :label => false %>
|
|
32
|
-
<%= f.input :attachable_type, :as => :hidden, :label => false %>
|
|
33
|
-
<% end %>
|
|
34
|
-
|
|
35
|
-
<%= f.inputs _("Add a new attachment"), :class => "clearable" do %>
|
|
36
|
-
|
|
37
|
-
<%= f.input :title %>
|
|
38
|
-
<%= f.input :description %>
|
|
39
|
-
<%= f.input :file %>
|
|
40
|
-
|
|
41
|
-
<% end -%>
|
|
42
|
-
|
|
43
|
-
<%= form_actions do %>
|
|
44
|
-
<%= button _("Add attachment"), :type => :primary %>
|
|
45
|
-
<% end %>
|
|
46
|
-
|
|
47
|
-
<% end -%>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
data/lib/generators/fullstack/cms/templates/rails/app/views/admin/attachments/create.js.coffee
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<%= remotipart_response do %>
|
|
2
|
-
<% if @attachment.errors.empty? %>
|
|
3
|
-
$("#links_table_body").append('<%=j render(:partial => "admin/attachments/table_row", :locals => {:attachment => @attachment}) %>')
|
|
4
|
-
$("#add_link_form .clearable input").each ->
|
|
5
|
-
return $(this).val("")
|
|
6
|
-
|
|
7
|
-
$("#add_link_form").collapse('hide');
|
|
8
|
-
notify_notice('<%=j t("flash.success.create") %>')
|
|
9
|
-
|
|
10
|
-
<% else %>
|
|
11
|
-
notify_error('<%=j t("flash.error.create") %>')
|
|
12
|
-
|
|
13
|
-
<% end %>
|
|
14
|
-
<% end %>
|