cms-fortress 1.2.2 → 1.3.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +66 -0
- data/Gemfile +2 -17
- data/Gemfile.lock +80 -90
- data/README.rdoc +11 -0
- data/Rakefile +9 -39
- data/app/controllers/cms/fortress/admin_controller.rb +5 -0
- data/app/controllers/cms/fortress/roles_controller.rb +11 -21
- data/app/controllers/cms/fortress/users_controller.rb +48 -31
- data/app/helpers/cms/fortress/application_helper.rb +37 -5
- data/app/helpers/comfy/admin/cms/pages_helper.rb +22 -0
- data/app/models/cms/fortress/error.rb +17 -0
- data/app/models/cms/fortress/role.rb +2 -1
- data/app/models/cms/fortress/settings.rb +17 -0
- data/app/models/cms/fortress/user.rb +17 -0
- data/app/models/cms_ability.rb +29 -22
- data/app/views/cms/fortress/admin/dashboard.html.haml +12 -0
- data/app/views/cms/fortress/shared/_dashboard_widget.html.haml +29 -0
- data/app/views/cms/fortress/shared/_menu.html.haml +26 -26
- data/app/views/cms/fortress/shared/_navbar.html.haml +1 -1
- data/app/views/cms/fortress/shared/_page_extend.html.haml +3 -5
- data/app/views/cms/fortress/shared/_page_extend_js.html.haml +2 -14
- data/app/views/cms/fortress/themes/wide/_body.html.haml +9 -8
- data/app/views/cms/fortress/themes/wide/_menu.html.haml +70 -37
- data/app/views/cms/fortress/users/_form.html.haml +6 -1
- data/app/views/cms/fortress/users/edit.html.haml +1 -2
- data/app/views/cms/fortress/users/index.html.haml +14 -5
- data/app/views/cms/fortress/users/new.html.haml +1 -2
- data/app/views/comfy/admin/cms/pages/_form.html.haml +10 -4
- data/app/views/comfy/admin/cms/pages/edit.html.haml +25 -0
- data/app/views/layouts/comfy/admin/cms/_head.html.haml +1 -1
- data/app/views/layouts/comfy/admin/cms/_left.html.haml +15 -12
- data/bin/bundle +3 -0
- data/bin/rails +4 -0
- data/bin/rake +4 -0
- data/cms-fortress.gemspec +32 -171
- data/config.ru +4 -0
- data/config/application.rb +34 -0
- data/config/boot.rb +5 -0
- data/config/cms/fortress/global_settings.yml +12 -0
- data/config/cms_routes.rb +7 -0
- data/config/database.yml +11 -0
- data/config/environment.rb +5 -0
- data/config/environments/development.rb +29 -0
- data/config/environments/test.rb +36 -0
- data/config/initializers/devise.rb +256 -0
- data/config/initializers/secret_token.rb +14 -0
- data/config/locales/de.yml +28 -1
- data/config/locales/devise.en.yml +59 -0
- data/config/locales/en.yml +37 -1
- data/config/roles.yml +1 -0
- data/config/secrets.yml +14 -0
- data/db/migrate/06_add_type_to_users.rb +11 -0
- data/db/migrate/07_integrate_workflow_into_cms_pages.rb +37 -0
- data/db/schema.rb +182 -0
- data/lib/assets/.keep +0 -0
- data/lib/cms-fortress.rb +10 -1
- data/lib/cms/fortress/application_controller_methods.rb +5 -2
- data/lib/cms/fortress/page_methods.rb +52 -2
- data/lib/cms/fortress/pages_controller_methods.rb +17 -0
- data/lib/cms/fortress/rails/engine.rb +12 -3
- data/lib/cms/fortress/routes/admin.rb +9 -1
- data/lib/cms/fortress/site_methods.rb +29 -0
- data/lib/cms/fortress/sites_controller_methods.rb +22 -0
- data/lib/generators/cms/comfy/comfy_generator.rb +18 -0
- data/lib/generators/cms/fortress/fortress_generator.rb +30 -6
- data/lib/generators/cms/fortress/upgrade/USAGE +8 -0
- data/lib/generators/cms/fortress/upgrade/upgrade_generator.rb +24 -0
- data/lib/tasks/.keep +0 -0
- data/test/{functional → controllers}/cms/fortress/roles_controller_test.rb +9 -4
- data/test/{functional → controllers}/cms/fortress/users_controller_test.rb +10 -11
- data/test/controllers/comfy/admin/cms/pages_controller_test.rb +115 -0
- data/test/fixtures/cms/fortress/role_details.yml +89 -8
- data/test/fixtures/cms/fortress/roles.yml +17 -0
- data/test/fixtures/cms/fortress/users.yml +14 -0
- data/test/fixtures/comfy/cms/blocks.yml +12 -0
- data/test/fixtures/comfy/cms/categories.yml +4 -0
- data/test/fixtures/comfy/cms/categorizations.yml +3 -0
- data/test/fixtures/comfy/cms/files.yml +9 -0
- data/test/fixtures/comfy/cms/layouts.yml +40 -0
- data/test/fixtures/comfy/cms/pages.yml +105 -0
- data/test/fixtures/comfy/cms/revisions.yml +21 -0
- data/test/fixtures/comfy/cms/sites.yml +6 -0
- data/test/fixtures/comfy/cms/snippets.yml +6 -0
- data/test/integration/cms/fortress/users_controller_test.rb +16 -0
- data/test/models/comfy/cms/page_test.rb +84 -0
- data/test/models/comfy/cms/settings_test.rb +16 -0
- data/test/test_helper.rb +25 -0
- metadata +157 -23
- data/app/models/cms/page_workflow.rb +0 -44
- data/app/models/error/missing_role_configuration_file.rb +0 -12
- data/lib/generators/comfy/cms/cms_generator.rb +0 -60
- data/test/fixtures/cms/page_workflows.yml +0 -11
- data/test/helper.rb +0 -18
- data/test/test_cms-fortress.rb +0 -7
- data/test/unit/cms/fortress/role_detail_test.rb +0 -7
- data/test/unit/cms/fortress/role_test.rb +0 -7
- data/test/unit/cms/fortress/role_user_test.rb +0 -7
- data/test/unit/helpers/cms/fortress/roles_helper_test.rb +0 -4
- data/test/unit/helpers/cms/fortress/users_helper_test.rb +0 -4
@@ -1,7 +1,5 @@
|
|
1
|
-
- if Cms::Fortress.configuration.enable_page_workflow
|
2
|
-
= form.
|
3
|
-
= wf.select :status_id, Cms::PageWorkflow.statuses_for_select(can?(:manage, 'contents.page.publish'), can?(:manage, 'contents.page.review')), {}, {class: "status-control"}
|
4
|
-
= wf.text_field :published_date, label: t('cms.fortress.published'), class: "status-control", :data => {:utc_date => (@page.page_workflow.published_date.nil? ? Time.now : @page.page_workflow.published_date).strftime("%d %B, %Y") }
|
1
|
+
- if Cms::Fortress.configuration.enable_page_workflow && can?(:manage, 'contents.page.schedule') && !@page.new_record?
|
2
|
+
= form.text_field :published_date, label: (@page.published? ? t('cms.fortress.published_date') : t('cms.fortress.schedule_date')), control_col: "col-sm-3", class: "status-control", :data => {:utc_date => (@page.published_date.nil? ? Time.now : @page.published_date).strftime("%d %B, %Y") }
|
5
3
|
|
6
4
|
- if Cms::Fortress.configuration.enable_page_caching
|
7
|
-
= form.select :cached_timeout,
|
5
|
+
= form.select :cached_timeout, cached_timeout_for_select, {label: t('cms.fortress.cache_timeout'), control_col: "col-sm-3"}, {class: 'status-control'}
|
@@ -1,16 +1,4 @@
|
|
1
1
|
:coffeescript
|
2
|
-
dateControl = $("#
|
3
|
-
|
4
|
-
parentControl = $("#page_page_workflow_attributes_published_date").parents(".form-group:first")
|
5
|
-
|
6
|
-
dateControl.val(dateControl.data("utcDate")).datepicker(dateFormat: "d MM, yy")
|
7
|
-
|
8
|
-
if wkControl.val() in ["0","1"]
|
9
|
-
parentControl.hide()
|
10
|
-
|
11
|
-
wkControl.change ->
|
12
|
-
if $(this).val() in ["0","1"]
|
13
|
-
parentControl.hide()
|
14
|
-
else
|
15
|
-
parentControl.show()
|
2
|
+
dateControl = $("#page_published_date")
|
3
|
+
dateControl.datepicker(dateFormat: "d MM, yy")
|
16
4
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
- unless @site.nil? || @site.new_record?
|
2
|
-
.container.current-site-info
|
2
|
+
.container-fluid.current-site-info
|
3
3
|
%span.label.label-primary
|
4
4
|
= @site.label
|
5
5
|
|
6
|
-
.container.wide-body
|
6
|
+
.container-fluid.wide-body
|
7
7
|
- if controller_name.eql?('revisions')
|
8
8
|
.row
|
9
9
|
.col-sm-9
|
@@ -27,9 +27,10 @@
|
|
27
27
|
|
28
28
|
$(".wide-body .page-header a:contains(Create New Page)").html("<i class='glyphicon glyphicon-file' /> New Page").attr("title", "Create New Page").tooltip(placement: 'left')
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
- unless @no_back_button
|
31
|
+
:coffeescript
|
32
|
+
index_path = "#{ back_path }"
|
33
|
+
$(".wide-body .page-header h2:contains(New), .wide-body .page-header h2:contains(Editing)").parent()
|
34
|
+
.prepend('<a class="btn btn-default pull-right" href="' + index_path + '" title="" data-original-title="Create New Page"><i class="glyphicon glyphicon-chevron-left"></i> Back</a> ')
|
35
|
+
|
36
|
+
$(".wide-body .page-header .btn").removeClass("pull-right").wrapAll("<div class='btn-group pull-right'></div>")
|
@@ -1,37 +1,70 @@
|
|
1
|
-
-
|
2
|
-
-
|
3
|
-
|
4
|
-
%
|
5
|
-
= t(
|
6
|
-
%
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
1
|
+
%nav.navbar.navbar-default(role="navigation")
|
2
|
+
.container-fluid
|
3
|
+
.navbar-header
|
4
|
+
%button.navbar-toggle(type="button" data-toggle="collapse" data-target="#main-nav")
|
5
|
+
%span.sr-only= t('cms.fortress.toggle_navigation')
|
6
|
+
%span.icon-bar
|
7
|
+
%span.icon-bar
|
8
|
+
%span.icon-bar
|
9
|
+
= link_to settings.title, settings.title_link, class: 'navbar-brand'
|
10
|
+
|
11
|
+
.collapse.navbar-collapse#main-nav
|
12
|
+
%ul.nav.navbar-nav
|
13
|
+
|
14
|
+
- if @site && !@site.new_record?
|
15
|
+
%li= topnav_item "Dashboard", dashboard_site_path, current_page?(dashboard_site_path)
|
16
|
+
|
17
|
+
- if Cms::Fortress.configuration.content_resources.any? {|resource| can? :view, "contents.#{resource[:name]}" }
|
18
|
+
%li.dropdown(class="#{ "active" if content_page? }")
|
19
|
+
%a.dropdown-toggle(data-toggle='dropdown' href='#')
|
20
|
+
= t("cms.fortress.contents")
|
21
|
+
%b.caret
|
22
|
+
%ul.dropdown-menu
|
23
|
+
|
24
|
+
- Cms::Fortress.configuration.content_resources.each do |resource|
|
25
|
+
- if resource[:super_user]
|
26
|
+
- if current_cms_fortress_user.type.eql?(:super_user)
|
27
|
+
= topnav_resource_item("contents", resource)
|
28
|
+
- else
|
29
|
+
= topnav_resource_item("contents", resource)
|
30
|
+
|
31
|
+
- if Cms::Fortress.configuration.design_resources.any? {|resource| can? :view, "designs.#{resource[:name]}" }
|
32
|
+
%li.dropdown(class="#{ "active" if design_page? }")
|
33
|
+
%a.dropdown-toggle(data-toggle='dropdown' href='#')
|
34
|
+
= t("cms.fortress.design")
|
35
|
+
%b.caret
|
36
|
+
%ul.dropdown-menu
|
37
|
+
- Cms::Fortress.configuration.design_resources.each do |resource|
|
38
|
+
- if resource[:super_user]
|
39
|
+
- if current_cms_fortress_user.type.eql?(:super_user)
|
40
|
+
= topnav_resource_item("designs", resource)
|
41
|
+
- else
|
42
|
+
= topnav_resource_item("designs", resource)
|
43
|
+
|
44
|
+
- if Cms::Fortress.configuration.settings_resources.any? {|resource| can? :view, "settings.#{resource[:name]}" }
|
45
|
+
%li.dropdown(class="#{ "active" if admin_page? }")
|
46
|
+
%a.dropdown-toggle(data-toggle='dropdown' href='#')
|
47
|
+
= t("cms.fortress.settings")
|
48
|
+
%b.caret
|
49
|
+
%ul.dropdown-menu
|
50
|
+
- Cms::Fortress.configuration.settings_resources.each do |resource|
|
51
|
+
- if resource[:super_user]
|
52
|
+
- if current_cms_fortress_user.type.eql?(:super_user)
|
53
|
+
= topnav_resource_item("settings", resource)
|
54
|
+
- else
|
55
|
+
= topnav_resource_item("settings", resource)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
= render 'cms/fortress/admin/topnav'
|
60
|
+
|
61
|
+
- if current_cms_fortress_user
|
62
|
+
.btn-group.pull-right(style="margin-top: 8px;")
|
63
|
+
%button.btn.btn-default.dropdown-toggle(type="button" data-toggle="dropdown")
|
64
|
+
= current_cms_fortress_user.display_name
|
65
|
+
%span.caret
|
66
|
+
%ul.dropdown-menu(role="menu")
|
67
|
+
%li
|
68
|
+
= link_to t('cms.fortress.logout'), destroy_cms_fortress_user_session_path, :method => 'delete'
|
69
|
+
|
70
|
+
|
@@ -1,7 +1,12 @@
|
|
1
1
|
= form.text_field :last_name
|
2
2
|
= form.text_field :first_name
|
3
3
|
= form.text_field :email
|
4
|
-
|
4
|
+
|
5
|
+
- unless @super_user
|
6
|
+
= form.select :role_id, @site.roles.collect {|role| [role.name, role.id]}
|
7
|
+
- if @cms_fortress_user.new_record?
|
8
|
+
= form.hidden_field :type_id
|
9
|
+
|
5
10
|
= form.password_field :password
|
6
11
|
= form.password_field :password_confirmation
|
7
12
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
.page-header
|
2
|
-
.btn-
|
3
|
-
= link_to t('cms.fortress.cancel'), cms_fortress_users_path, class: 'btn btn-default btn-sm'
|
2
|
+
= link_to t('cms.fortress.cancel'), cms_fortress_users_path, class: 'btn btn-default btn-sm pull-right'
|
4
3
|
|
5
4
|
%h3= t('cms.fortress.users.new_title')
|
6
5
|
|
@@ -1,15 +1,22 @@
|
|
1
1
|
.page-header
|
2
|
-
|
3
|
-
= link_to t('cms.fortress.users.new_link'), new_cms_fortress_user_path, :class => 'btn btn-primary btn-sm'
|
2
|
+
- unless @super_user
|
3
|
+
= link_to t('cms.fortress.users.new_link'), new_cms_fortress_user_path, :class => 'btn btn-primary btn-sm pull-right'
|
4
|
+
- else
|
5
|
+
= link_to t('cms.fortress.users.new_super_link'), super_new_cms_fortress_users_path, :class => 'btn btn-primary btn-sm pull-right'
|
4
6
|
|
5
|
-
%h3
|
7
|
+
%h3
|
8
|
+
- unless @super_user
|
9
|
+
= t('cms.fortress.users.title')
|
10
|
+
- else
|
11
|
+
= t('cms.fortress.admin.super_user.title')
|
6
12
|
|
7
13
|
%table.table.table-hover.table-bordered
|
8
14
|
%tr
|
9
15
|
%th= t('cms.fortress.users.last_name')
|
10
16
|
%th= t('cms.fortress.users.first_name')
|
11
17
|
%th= t('cms.fortress.users.email')
|
12
|
-
|
18
|
+
- unless @super_user
|
19
|
+
%th= t('cms.fortress.users.role')
|
13
20
|
%th
|
14
21
|
|
15
22
|
- @cms_fortress_users.each do |cms_fortress_user|
|
@@ -17,7 +24,9 @@
|
|
17
24
|
%td= cms_fortress_user.last_name
|
18
25
|
%td= cms_fortress_user.first_name
|
19
26
|
%td= cms_fortress_user.email
|
20
|
-
|
27
|
+
- unless @super_user
|
28
|
+
- if cms_fortress_user.role
|
29
|
+
%td= cms_fortress_user.role.name
|
21
30
|
%td
|
22
31
|
.btn-group.pull-right
|
23
32
|
= link_to t('cms.fortress.edit'), edit_cms_fortress_user_path(cms_fortress_user), :class => 'btn btn-sm btn-default'
|
@@ -1,6 +1,5 @@
|
|
1
1
|
.page-header
|
2
|
-
.btn-
|
3
|
-
= link_to t('cms.fortress.cancel'), cms_fortress_users_path, class: 'btn btn-default btn-sm'
|
2
|
+
= link_to t('cms.fortress.cancel'), cms_fortress_users_path, class: 'btn btn-default btn-sm, pull-right'
|
4
3
|
|
5
4
|
%h3= t('cms.fortress.users.new_title')
|
6
5
|
|
@@ -1,5 +1,3 @@
|
|
1
|
-
- @page.page_workflow ||= Cms::PageWorkflow.new
|
2
|
-
|
3
1
|
- content_for :right_column do
|
4
2
|
#form-save.box
|
5
3
|
%label.checkbox-inline
|
@@ -10,6 +8,14 @@
|
|
10
8
|
|
11
9
|
= render 'comfy/admin/cms/partials/page_form_before', :object => form
|
12
10
|
|
11
|
+
- if Cms::Fortress.configuration.enable_page_workflow && !@page.new_record?
|
12
|
+
.container-fluid
|
13
|
+
.btn-group
|
14
|
+
%span.btn.btn-success= @page.aasm_state.titleize
|
15
|
+
- page_actions(@page).each do |page_action|
|
16
|
+
= form.button t('.'+page_action.to_s), :class => 'btn btn-default', :value => page_action, :name => 'transition'
|
17
|
+
%hr
|
18
|
+
|
13
19
|
= form.text_field :label, :data => {:slugify => @page.new_record?}
|
14
20
|
|
15
21
|
- unless @site.pages.count == 0 || @site.pages.root == @page
|
@@ -39,7 +45,7 @@
|
|
39
45
|
= render 'comfy/admin/cms/partials/page_form_after', :object => form
|
40
46
|
|
41
47
|
= form.form_group :class => 'form-actions' do
|
42
|
-
= form.
|
43
|
-
= form.
|
48
|
+
= form.button t('.preview'), :name => 'preview', :id => nil, :class => 'btn btn-default'
|
49
|
+
= form.button t(@page.new_record?? '.create' : '.update'), :class => 'btn btn-primary', :value => 'save', :name => 'commit'
|
44
50
|
|
45
51
|
= render :partial => 'cms/fortress/shared/page_extend_js'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.page-header
|
2
|
+
|
3
|
+
= link_to t('.revision', :count => @page.revisions.count), comfy_admin_cms_site_page_revisions_path(@site, @page), :class => 'btn btn-default pull-right'
|
4
|
+
|
5
|
+
/%h2.pull-right
|
6
|
+
/ -if @page.drafted?
|
7
|
+
/ %span.label.label-info
|
8
|
+
/ Draft
|
9
|
+
/ -if @page.reviewed?
|
10
|
+
/ %span.label.label-primary
|
11
|
+
/ Reviewed
|
12
|
+
/ -if @page.scheduled?
|
13
|
+
/ %span.label.label-warning
|
14
|
+
/ Scheduled
|
15
|
+
/ -if @page.published?
|
16
|
+
/ %span.label.label-success
|
17
|
+
/ Published
|
18
|
+
%h2= t('.title')
|
19
|
+
|
20
|
+
|
21
|
+
- content_for :right_column do
|
22
|
+
= render 'comfy/admin/cms/sites/mirrors', :object => @page
|
23
|
+
|
24
|
+
= comfy_form_for @page, :as => :page, :url => {:action => :update}, :html => {:multipart => true} do |form|
|
25
|
+
= render form
|
@@ -3,28 +3,31 @@
|
|
3
3
|
%ul.navigation
|
4
4
|
- if admin_page?
|
5
5
|
- Cms::Fortress.configuration.settings_resources.each do |resource|
|
6
|
-
- if
|
7
|
-
-
|
8
|
-
|
9
|
-
|
6
|
+
- if resource[:super_user]
|
7
|
+
- if current_cms_fortress_user.type.eql?(:super_user)
|
8
|
+
= topnav_resource_item("settings", resource)
|
9
|
+
- else
|
10
|
+
= topnav_resource_item("settings", resource)
|
10
11
|
|
11
12
|
= render 'cms/fortress/admin/left_settings_nav'
|
12
13
|
|
13
14
|
- elsif design_page?
|
14
15
|
- Cms::Fortress.configuration.design_resources.each do |resource|
|
15
|
-
- if
|
16
|
-
-
|
17
|
-
|
18
|
-
|
16
|
+
- if resource[:super_user]
|
17
|
+
- if current_cms_fortress_user.type.eql?(:super_user)
|
18
|
+
= topnav_resource_item("designs", resource)
|
19
|
+
- else
|
20
|
+
= topnav_resource_item("designs", resource)
|
19
21
|
|
20
22
|
= render 'cms/fortress/admin/left_designs_nav'
|
21
23
|
|
22
24
|
- elsif content_page?
|
23
25
|
- Cms::Fortress.configuration.content_resources.each do |resource|
|
24
|
-
- if
|
25
|
-
-
|
26
|
-
|
27
|
-
|
26
|
+
- if resource[:super_user]
|
27
|
+
- if current_cms_fortress_user.type.eql?(:super_user)
|
28
|
+
= topnav_resource_item("contents", resource)
|
29
|
+
- else
|
30
|
+
= topnav_resource_item("contents", resource)
|
28
31
|
|
29
32
|
= render 'cms/fortress/admin/left_contents_nav'
|
30
33
|
= cms_hook :navigation
|
data/bin/bundle
ADDED
data/bin/rails
ADDED
data/bin/rake
ADDED
data/cms-fortress.gemspec
CHANGED
@@ -1,178 +1,39 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
5
2
|
|
6
3
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
4
|
+
s.name = "cms-fortress"
|
5
|
+
s.version = "1.3.0.rc1"
|
9
6
|
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
13
|
-
s.
|
14
|
-
s.
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
"Gemfile",
|
22
|
-
"Gemfile.lock",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"app/assets/javascripts/cms/fortress/cms_fortress.js",
|
28
|
-
"app/assets/javascripts/cms/fortress/media.js.coffee",
|
29
|
-
"app/assets/javascripts/cms/fortress/themes/wide.js.coffee.erb",
|
30
|
-
"app/assets/javascripts/html5shiv.js",
|
31
|
-
"app/assets/stylesheets/cms/fortress/admin_overrides.css",
|
32
|
-
"app/assets/stylesheets/cms/fortress/session.css",
|
33
|
-
"app/assets/stylesheets/cms/fortress/themes/wide.css.scss",
|
34
|
-
"app/controllers/cms/fortress/admin_controller.rb",
|
35
|
-
"app/controllers/cms/fortress/roles_controller.rb",
|
36
|
-
"app/controllers/cms/fortress/users/sessions_controller.rb",
|
37
|
-
"app/controllers/cms/fortress/users_controller.rb",
|
38
|
-
"app/helpers/cms/fortress/application_helper.rb",
|
39
|
-
"app/helpers/cms/fortress/roles_helper.rb",
|
40
|
-
"app/helpers/cms/fortress/sprocket_helper.rb",
|
41
|
-
"app/models/cms/fortress.rb",
|
42
|
-
"app/models/cms/fortress/role.rb",
|
43
|
-
"app/models/cms/fortress/role_detail.rb",
|
44
|
-
"app/models/cms/fortress/user.rb",
|
45
|
-
"app/models/cms/page_workflow.rb",
|
46
|
-
"app/models/cms_ability.rb",
|
47
|
-
"app/models/error/missing_role_configuration_file.rb",
|
48
|
-
"app/views/cms/fortress/admin/_left_contents_nav.html.haml",
|
49
|
-
"app/views/cms/fortress/admin/_left_designs_nav.html.haml",
|
50
|
-
"app/views/cms/fortress/admin/_left_nav.html.haml",
|
51
|
-
"app/views/cms/fortress/admin/_left_settings_nav.html.haml",
|
52
|
-
"app/views/cms/fortress/admin/_topnav.html.haml",
|
53
|
-
"app/views/cms/fortress/admin/contents.html.haml",
|
54
|
-
"app/views/cms/fortress/admin/design.html.haml",
|
55
|
-
"app/views/cms/fortress/admin/roles.html.haml",
|
56
|
-
"app/views/cms/fortress/admin/settings.html.haml",
|
57
|
-
"app/views/cms/fortress/admin/unauthorised.html.haml",
|
58
|
-
"app/views/cms/fortress/admin/users.html.haml",
|
59
|
-
"app/views/cms/fortress/roles/_form.html.haml",
|
60
|
-
"app/views/cms/fortress/roles/edit.html.haml",
|
61
|
-
"app/views/cms/fortress/roles/index.html.haml",
|
62
|
-
"app/views/cms/fortress/roles/new.html.haml",
|
63
|
-
"app/views/cms/fortress/roles/show.html.haml",
|
64
|
-
"app/views/cms/fortress/shared/_media_items.html.haml",
|
65
|
-
"app/views/cms/fortress/shared/_mediaboxes.html.haml",
|
66
|
-
"app/views/cms/fortress/shared/_menu.html.haml",
|
67
|
-
"app/views/cms/fortress/shared/_navbar.html.haml",
|
68
|
-
"app/views/cms/fortress/shared/_page_extend.html.haml",
|
69
|
-
"app/views/cms/fortress/shared/_page_extend_js.html.haml",
|
70
|
-
"app/views/cms/fortress/themes/wide/_body.html.haml",
|
71
|
-
"app/views/cms/fortress/themes/wide/_menu.html.haml",
|
72
|
-
"app/views/cms/fortress/users/_form.html.haml",
|
73
|
-
"app/views/cms/fortress/users/edit.html.haml",
|
74
|
-
"app/views/cms/fortress/users/index.html.haml",
|
75
|
-
"app/views/cms/fortress/users/new.html.haml",
|
76
|
-
"app/views/cms/fortress/users/sessions/.DS_Store",
|
77
|
-
"app/views/cms/fortress/users/sessions/new.html.haml",
|
78
|
-
"app/views/comfy/admin/cms/pages/_form.html.haml",
|
79
|
-
"app/views/comfy/admin/cms/partials/_body_before.html.haml",
|
80
|
-
"app/views/layouts/cms/fortress/session.html.haml",
|
81
|
-
"app/views/layouts/comfy/admin/cms/_body.html.haml",
|
82
|
-
"app/views/layouts/comfy/admin/cms/_footer.html.haml",
|
83
|
-
"app/views/layouts/comfy/admin/cms/_head.html.haml",
|
84
|
-
"app/views/layouts/comfy/admin/cms/_left.html.haml",
|
85
|
-
"cms-fortress.gemspec",
|
86
|
-
"config/initializers/cms_fortress.rb",
|
87
|
-
"config/locales/de.yml",
|
88
|
-
"config/locales/en.yml",
|
89
|
-
"config/roles.yml",
|
90
|
-
"db/migrate/01_devise_create_cms_fortress_users.rb",
|
91
|
-
"db/migrate/02_create_cms_fortress_role_details.rb",
|
92
|
-
"db/migrate/03_create_cms_fortress_roles.rb",
|
93
|
-
"db/migrate/04_create_cms_page_workflows.rb",
|
94
|
-
"db/migrate/05_add_caching_info_to_pages.rb",
|
95
|
-
"docs/screens/compact-layout-01.png",
|
96
|
-
"docs/screens/compact-layout-02.png",
|
97
|
-
"docs/screens/files-integration-01.png",
|
98
|
-
"docs/screens/files-integration-02.png",
|
99
|
-
"docs/screens/files-integration-03.png",
|
100
|
-
"docs/screens/files-integration-04.png",
|
101
|
-
"lib/cms-fortress.rb",
|
102
|
-
"lib/cms/fortress/application_controller_methods.rb",
|
103
|
-
"lib/cms/fortress/auth.rb",
|
104
|
-
"lib/cms/fortress/comfortable_mexican_sofa.rb",
|
105
|
-
"lib/cms/fortress/content_renderer.rb",
|
106
|
-
"lib/cms/fortress/devise.rb",
|
107
|
-
"lib/cms/fortress/file_methods.rb",
|
108
|
-
"lib/cms/fortress/page_methods.rb",
|
109
|
-
"lib/cms/fortress/rails/engine.rb",
|
110
|
-
"lib/cms/fortress/routes/admin.rb",
|
111
|
-
"lib/cms/fortress/routing.rb",
|
112
|
-
"lib/comfortable_mexican_sofa/fixture/page.rb",
|
113
|
-
"lib/generators/cms/fortress/USAGE",
|
114
|
-
"lib/generators/cms/fortress/fortress_generator.rb",
|
115
|
-
"lib/generators/cms/fortress/templates/README",
|
116
|
-
"lib/generators/comfy/cms/cms_generator.rb",
|
117
|
-
"test/fixtures/cms/fortress/role_details.yml",
|
118
|
-
"test/fixtures/cms/fortress/roles.yml",
|
119
|
-
"test/fixtures/cms/page_workflows.yml",
|
120
|
-
"test/functional/cms/fortress/roles_controller_test.rb",
|
121
|
-
"test/functional/cms/fortress/users_controller_test.rb",
|
122
|
-
"test/helper.rb",
|
123
|
-
"test/test_cms-fortress.rb",
|
124
|
-
"test/unit/cms/fortress/role_detail_test.rb",
|
125
|
-
"test/unit/cms/fortress/role_test.rb",
|
126
|
-
"test/unit/cms/fortress/role_user_test.rb",
|
127
|
-
"test/unit/helpers/cms/fortress/roles_helper_test.rb",
|
128
|
-
"test/unit/helpers/cms/fortress/users_helper_test.rb"
|
129
|
-
]
|
130
|
-
s.homepage = "http://github.com/melvinsembrano/cms-fortress"
|
131
|
-
s.licenses = ["MIT"]
|
132
|
-
s.require_paths = ["lib"]
|
133
|
-
s.rubygems_version = "1.8.23.2"
|
134
|
-
s.summary = "Comfortable Mexican Sofa (CMS) - User and role management extension"
|
7
|
+
s.authors = ["Melvin Sembrano"]
|
8
|
+
s.date = "2014-06-01"
|
9
|
+
s.description = "Comfortable Mexican Sofa (CMS) - User and role management extension"
|
10
|
+
s.email = "melvinsembrano@gmail.com"
|
11
|
+
s.extra_rdoc_files = [ "LICENSE.txt", "README.rdoc" ]
|
135
12
|
|
136
|
-
|
137
|
-
|
13
|
+
s.homepage = "http://github.com/melvinsembrano/cms-fortress"
|
14
|
+
s.licenses = "MIT"
|
15
|
+
s.summary = "Comfortable Mexican Sofa (CMS) - User and role management extension"
|
138
16
|
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
s.add_dependency(%q<rails>, [">= 4.0.0"])
|
153
|
-
s.add_dependency(%q<comfortable_mexican_sofa>, ["~> 1.12.0"])
|
154
|
-
s.add_dependency(%q<devise>, ["~> 3.2"])
|
155
|
-
s.add_dependency(%q<cancan>, [">= 1.6.9"])
|
156
|
-
s.add_dependency(%q<delayed_job>, ["~> 4"])
|
157
|
-
s.add_dependency(%q<tinymce-rails>, ["~> 4.0.0"])
|
158
|
-
s.add_dependency(%q<tinymce-rails-langs>, ["~> 4.0"])
|
159
|
-
s.add_dependency(%q<rdoc>, [">= 0"])
|
160
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
161
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
162
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
163
|
-
end
|
164
|
-
else
|
165
|
-
s.add_dependency(%q<rails>, [">= 4.0.0"])
|
166
|
-
s.add_dependency(%q<comfortable_mexican_sofa>, ["~> 1.12.0"])
|
167
|
-
s.add_dependency(%q<devise>, ["~> 3.2"])
|
168
|
-
s.add_dependency(%q<cancan>, [">= 1.6.9"])
|
169
|
-
s.add_dependency(%q<delayed_job>, ["~> 4"])
|
170
|
-
s.add_dependency(%q<tinymce-rails>, ["~> 4.0.0"])
|
171
|
-
s.add_dependency(%q<tinymce-rails-langs>, ["~> 4.0"])
|
172
|
-
s.add_dependency(%q<rdoc>, [">= 0"])
|
173
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
174
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
175
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
176
|
-
end
|
177
|
-
end
|
17
|
+
s.files = `git ls-files`.split($/)
|
18
|
+
s.executables = []
|
19
|
+
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
s.add_dependency 'rails', '>= 4.0.0'
|
23
|
+
s.add_dependency 'comfortable_mexican_sofa', '~> 1.12.0'
|
24
|
+
s.add_dependency 'devise', '~> 3.2'
|
25
|
+
s.add_dependency 'cancan', '>= 1.6.9'
|
26
|
+
s.add_dependency 'delayed_job', '~> 4'
|
27
|
+
s.add_dependency 'tinymce-rails', '~> 4.0.0'
|
28
|
+
s.add_dependency 'tinymce-rails-langs', '~> 4.0'
|
29
|
+
s.add_dependency 'aasm', '~> 3.2'
|
178
30
|
|
31
|
+
s.add_development_dependency 'rdoc'
|
32
|
+
s.add_development_dependency 'bundler'
|
33
|
+
s.add_development_dependency 'simplecov'
|
34
|
+
s.add_development_dependency 'minitest', '~> 4.7.3'
|
35
|
+
s.add_development_dependency 'minitest-rails'
|
36
|
+
s.add_development_dependency 'minitest-spec-rails'
|
37
|
+
s.add_development_dependency 'minitest-reporters'
|
38
|
+
s.add_development_dependency 'sqlite3'
|
39
|
+
end
|