cms-fortress 1.3.0.rc3 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -64,3 +64,5 @@ log/
64
64
  00_create_cms.rb
65
65
 
66
66
  /db/development.sqlite3
67
+
68
+ *.gem
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cms-fortress (1.2.2)
4
+ cms-fortress (1.3.0)
5
5
  aasm (~> 3.2)
6
6
  cancan (>= 1.6.9)
7
7
  comfortable_mexican_sofa (~> 1.12.0)
@@ -14,28 +14,28 @@ PATH
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
- aasm (3.2.0)
18
- actionmailer (4.0.5)
19
- actionpack (= 4.0.5)
17
+ aasm (3.2.1)
18
+ actionmailer (4.0.6)
19
+ actionpack (= 4.0.6)
20
20
  mail (~> 2.5.4)
21
- actionpack (4.0.5)
22
- activesupport (= 4.0.5)
21
+ actionpack (4.0.6)
22
+ activesupport (= 4.0.6)
23
23
  builder (~> 3.1.0)
24
24
  erubis (~> 2.7.0)
25
25
  rack (~> 1.5.2)
26
26
  rack-test (~> 0.6.2)
27
27
  active_link_to (1.0.2)
28
28
  actionpack
29
- activemodel (4.0.5)
30
- activesupport (= 4.0.5)
29
+ activemodel (4.0.6)
30
+ activesupport (= 4.0.6)
31
31
  builder (~> 3.1.0)
32
- activerecord (4.0.5)
33
- activemodel (= 4.0.5)
32
+ activerecord (4.0.6)
33
+ activemodel (= 4.0.6)
34
34
  activerecord-deprecated_finders (~> 1.0.2)
35
- activesupport (= 4.0.5)
35
+ activesupport (= 4.0.6)
36
36
  arel (~> 4.0.0)
37
37
  activerecord-deprecated_finders (1.0.3)
38
- activesupport (4.0.5)
38
+ activesupport (4.0.6)
39
39
  i18n (~> 0.6, >= 0.6.9)
40
40
  minitest (~> 4.2)
41
41
  multi_json (~> 1.3)
@@ -78,7 +78,7 @@ GEM
78
78
  rails-i18n (~> 4.0.0)
79
79
  sass-rails (>= 4.0.3)
80
80
  tinymce-rails (>= 4.0.0)
81
- delayed_job (4.0.1)
81
+ delayed_job (4.0.2)
82
82
  activesupport (>= 3.0, < 4.2)
83
83
  devise (3.2.4)
84
84
  bcrypt (~> 3.0)
@@ -86,9 +86,9 @@ GEM
86
86
  railties (>= 3.2.6, < 5)
87
87
  thread_safe (~> 0.1)
88
88
  warden (~> 1.2.3)
89
- docile (1.1.3)
89
+ docile (1.1.5)
90
90
  erubis (2.7.0)
91
- execjs (2.2.0)
91
+ execjs (2.2.1)
92
92
  haml (4.0.5)
93
93
  tilt
94
94
  haml-rails (0.5.3)
@@ -96,19 +96,19 @@ GEM
96
96
  activesupport (>= 4.0.1)
97
97
  haml (>= 3.1, < 5.0)
98
98
  railties (>= 4.0.1)
99
- hashie (3.0.0)
99
+ hashie (3.1.0)
100
100
  hike (1.2.3)
101
101
  i18n (0.6.9)
102
- jquery-rails (3.1.0)
102
+ jquery-rails (3.1.1)
103
103
  railties (>= 3.0, < 5.0)
104
104
  thor (>= 0.14, < 2.0)
105
105
  jquery-ui-rails (4.2.1)
106
106
  railties (>= 3.2.16)
107
107
  json (1.8.1)
108
- kaminari (0.16.0)
108
+ kaminari (0.16.1)
109
109
  actionpack (>= 3.0.0)
110
110
  activesupport (>= 3.0.0)
111
- kramdown (1.3.3)
111
+ kramdown (1.4.0)
112
112
  mail (2.5.4)
113
113
  mime-types (~> 1.16)
114
114
  treetop (~> 1.4.8)
@@ -142,20 +142,20 @@ GEM
142
142
  rack (1.5.2)
143
143
  rack-test (0.6.2)
144
144
  rack (>= 1.0)
145
- rails (4.0.5)
146
- actionmailer (= 4.0.5)
147
- actionpack (= 4.0.5)
148
- activerecord (= 4.0.5)
149
- activesupport (= 4.0.5)
145
+ rails (4.0.6)
146
+ actionmailer (= 4.0.6)
147
+ actionpack (= 4.0.6)
148
+ activerecord (= 4.0.6)
149
+ activesupport (= 4.0.6)
150
150
  bundler (>= 1.3.0, < 2.0)
151
- railties (= 4.0.5)
152
- sprockets-rails (~> 2.0.0)
151
+ railties (= 4.0.6)
152
+ sprockets-rails (~> 2.0)
153
153
  rails-i18n (4.0.2)
154
154
  i18n (~> 0.6)
155
155
  rails (>= 4.0)
156
- railties (4.0.5)
157
- actionpack (= 4.0.5)
158
- activesupport (= 4.0.5)
156
+ railties (4.0.6)
157
+ actionpack (= 4.0.6)
158
+ activesupport (= 4.0.6)
159
159
  rake (>= 0.8.7)
160
160
  thor (>= 0.18.1, < 2.0)
161
161
  rake (10.3.2)
@@ -177,7 +177,7 @@ GEM
177
177
  multi_json (~> 1.0)
178
178
  rack (~> 1.0)
179
179
  tilt (~> 1.1, != 1.3.0)
180
- sprockets-rails (2.0.1)
180
+ sprockets-rails (2.1.3)
181
181
  actionpack (>= 3.0)
182
182
  activesupport (>= 3.0)
183
183
  sprockets (~> 2.8)
@@ -185,7 +185,7 @@ GEM
185
185
  thor (0.19.1)
186
186
  thread_safe (0.3.4)
187
187
  tilt (1.4.1)
188
- tinymce-rails (4.0.28.1)
188
+ tinymce-rails (4.0.28.2)
189
189
  railties (>= 3.1.1)
190
190
  tinymce-rails-langs (4.20140129)
191
191
  tinymce-rails (~> 4.0)
@@ -0,0 +1,8 @@
1
+ #= require tinymce-jquery
2
+ #= require '../site_selector'
3
+
4
+ window.CMS.wysiwyg = function () {
5
+ return <%= tinymce_init %>
6
+ }
7
+
8
+
@@ -11,8 +11,8 @@ module Cms::Fortress::ApplicationHelper
11
11
  current_cms_fortress_user && current_cms_fortress_user.type.eql?(:super_user)
12
12
  end
13
13
 
14
- def dashboard_widget(title, collection)
15
- render partial: "cms/fortress/shared/dashboard_widget", locals: {title: title, collection: collection}
14
+ def dashboard_widget(title, collection, partial="cms/fortress/shared/dashboard_widget")
15
+ render partial: partial, locals: {title: title, collection: collection}
16
16
  end
17
17
 
18
18
  def role_display(command)
@@ -22,13 +22,16 @@ module Cms::Fortress::SprocketHelper
22
22
  #{configuration_from_options(options)},
23
23
  selector: 'textarea[data-cms-rich-text]',
24
24
  link_list: CmsFortress.media.othersUrl(),
25
+
25
26
  setup: function(ed) {
27
+
26
28
  ed.addButton('image', {
27
29
  title: 'Insert Image',
28
30
  onclick: function() {
29
31
  return CmsFortress.media.showImageDialog(ed);
30
32
  }
31
33
  });
34
+
32
35
  return ed.addButton('fmedia', {
33
36
  tooltip: 'Insert Video',
34
37
  icon: 'media',
@@ -37,7 +40,9 @@ module Cms::Fortress::SprocketHelper
37
40
  return CmsFortress.media.showVideoDialog(ed);
38
41
  }
39
42
  });
43
+
40
44
  }
45
+
41
46
  });
42
47
  EOF
43
48
  end
@@ -46,7 +51,11 @@ module Cms::Fortress::SprocketHelper
46
51
 
47
52
  def configuration_from_options(options)
48
53
  options.map do |k, v|
49
- v.is_a?(Array) ? "#{k}: #{v}" : "#{k}: '#{v}'"
54
+ v.is_a?(Array) ? "#{k}: #{v}" : "#{k}: #{boolean_value(v)}"
50
55
  end.join(',')
51
56
  end
57
+
58
+ def boolean_value(v)
59
+ [true, false].include?(v) ? "#{v}" : "'#{v}'"
60
+ end
52
61
  end
@@ -5,7 +5,7 @@
5
5
  %button.btn.btn-default.btn-sm.dropdown-toggle(type='button' data-toggle="dropdown")
6
6
  %small.site-button-label
7
7
  %em
8
- = t('.current_site')
8
+ = t('cms.fortress.current_site')
9
9
  %strong.site-button-label
10
10
  = current_site
11
11
  %b.caret
@@ -16,7 +16,7 @@
16
16
  .btn.btn-default.btn-sm
17
17
  %small.site-button-label
18
18
  %em
19
- = t('.current_site')
19
+ = t('cms.fortress.current_site')
20
20
  %strong.site-button-label
21
21
  = current_site
22
22
 
@@ -39,9 +39,9 @@
39
39
 
40
40
  :coffeescript
41
41
  ### iconize delete and edit links ###
42
- $(".wide-body div.btn-group a:contains(Delete)").html("<i class='glyphicon glyphicon-remove' />").attr("title", "Delete").tooltip(placement: 'left')
43
- $(".wide-body div.btn-group a:contains(Edit)").html("<i class='glyphicon glyphicon-edit' />").attr("title", "Edit").tooltip(placement: 'left')
44
- $(".wide-body div.btn-group a:contains(Add Child)").html("<i class='glyphicon glyphicon-plus' /> Child").attr("title", "Add Child").tooltip(placement: 'left')
42
+ $(".wide-body div.btn-group a:contains(Delete)").prepend("<span class='glyphicon glyphicon-remove' /> ").attr("title", "Delete") #.tooltip(placement: 'left')
43
+ $(".wide-body div.btn-group a:contains(Edit)").prepend("<span class='glyphicon glyphicon-edit' /> ").attr("title", "Edit") #.tooltip(placement: 'left')
44
+ $(".wide-body div.btn-group a:contains(Add Child)").html("<i class='glyphicon glyphicon-plus' /> Child").attr("title", "Add Child") #.tooltip(placement: 'left')
45
45
 
46
46
  $(".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')
47
47
 
@@ -12,7 +12,7 @@
12
12
  %ul.nav.navbar-nav
13
13
 
14
14
  - if @site && !@site.new_record?
15
- %li= topnav_item "Dashboard", dashboard_site_path, current_page?(dashboard_site_path)
15
+ %li= topnav_item t("cms.fortress.admin.dashboard.title"), dashboard_site_path, current_page?(dashboard_site_path)
16
16
 
17
17
  - if Cms::Fortress.configuration.content_resources.any? {|resource| can? :view, "contents.#{resource[:name]}" }
18
18
  %li.dropdown(class="#{ "active" if content_page? }")
@@ -2,10 +2,10 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "cms-fortress"
5
- s.version = "1.3.0.rc3"
5
+ s.version = "1.3.0"
6
6
 
7
7
  s.authors = ["Melvin Sembrano"]
8
- s.date = "2014-06-19"
8
+ s.date = "2014-06-28"
9
9
  s.description = "Comfortable Mexican Sofa (CMS) - User and role management extension"
10
10
  s.email = "melvinsembrano@gmail.com"
11
11
  s.extra_rdoc_files = [ "LICENSE.txt", "README.rdoc" ]
@@ -0,0 +1,129 @@
1
+ da:
2
+ cms:
3
+ fortress:
4
+ page_title: CMS Fortress Admin
5
+ title: CMS Fortress
6
+ contents: Contents
7
+ design: Design
8
+ admin: Admin
9
+ login: Logout
10
+ logout: Logout
11
+ create: Create
12
+ update: Update
13
+ delete: Delete
14
+ edit: Edit
15
+ are_you_sure: Are you sure?
16
+ cancel: Cancel
17
+ published: Published
18
+ published_date: Published At
19
+ schedule_date: Scheduled Publication
20
+ cache_timeout: Cached Timeout
21
+ toggle_navigation: Toggle Navigation
22
+ image_selector: Image Selector
23
+ insert_item: Click the thumbnail to insert item to the selected editor.
24
+ settings: Settings
25
+ current_site: Current Site
26
+
27
+ admin:
28
+
29
+ dashboard:
30
+ title: Dashboard
31
+ draft_widget: Draft Pages
32
+ reviewed_widget: Reviewed Pages
33
+ updated_pages: Recently Updated Pages
34
+
35
+ sites:
36
+ menu_header: "Site/ %{site_name}"
37
+ super_user:
38
+ title: Super Users
39
+ menu_header: Super Users Only
40
+
41
+ users: Users
42
+ not_authorized: You are not authorized to access this functionality
43
+ settings_dashboard: Settings Dashboard
44
+ roles: Roles
45
+ design_dashboard: Design Dashboard
46
+ design_related_information: This page will show design related information.
47
+ content_dashboard: Content Dashboard
48
+ content_related_information: "This page will show contents related information (history, graphs, analytics and etc.)"
49
+ errors:
50
+ missing_roles_yaml_file: "The configuration file config/roles.yml is missing."
51
+
52
+ roles:
53
+ title: Roles
54
+ new_link: New Role
55
+ edit_title: Edit Role
56
+ new_title: Create New Role
57
+ back: Back
58
+ load: Load New Roles
59
+ role: Role
60
+ show: Show
61
+ manage: Manage
62
+ save: Save
63
+ description: Description
64
+ show_access_rights: Show Access Rights
65
+ name: Name
66
+ contents: Contents
67
+ designs: Designs
68
+ settings: Settings
69
+ files: Files
70
+ page: Page
71
+ publish: publish
72
+ review: review
73
+ pages: Pages
74
+ layouts: Layouts
75
+ snippets: Snippets
76
+ roles: Roles
77
+ sites: Sites
78
+ users: Users
79
+
80
+ users:
81
+ title: Users
82
+ new_link: New User
83
+ new_super_link: New Super User
84
+ edit_title: Edit User
85
+ new_title: Create New User
86
+ last_name: Lastname
87
+ first_name: Firstname
88
+ email: Email
89
+ role: Role
90
+ sessions:
91
+ new:
92
+ sign_in: Sign In
93
+ email_address: Email Address
94
+ password: Password
95
+ remember_me: Remember me
96
+
97
+ comfy:
98
+ admin:
99
+ cms:
100
+ pages:
101
+ form:
102
+ review: Approve
103
+ reviewed: Reviewed
104
+ schedule: Publish Date
105
+ publish: Publish Now
106
+ published: Published
107
+ draft: save as draft
108
+ drafted: Draft
109
+ reset: Reset to Draft
110
+
111
+ activerecord:
112
+ attributes:
113
+ cms/fortress/user:
114
+ last_name: Lastname
115
+ first_name: Firstname
116
+ email: Email
117
+ role_id: Role
118
+ password: Password
119
+ password_confirmation: Password Confirmation
120
+ cms/fortress/role:
121
+ name: Name
122
+ description: Description
123
+ cms/fortress/role_detail:
124
+ contents: Contents
125
+ comfy/cms/page:
126
+ full_path: Path
127
+ parent_id: Parent page
128
+ slug: Slug
129
+
@@ -22,7 +22,7 @@ de:
22
22
  image_selector: Bildauswahl
23
23
  insert_item: Ein Bild anklicken um es in den ausgewählten Editor einzufügen.
24
24
  settings: Einstellungen
25
- site_selector: "Seite auswählen: "
25
+ current_site: Aktuelle Seite
26
26
 
27
27
  admin:
28
28
  dashboard:
@@ -97,9 +97,12 @@ de:
97
97
  pages:
98
98
  form:
99
99
  review: Freigeben
100
+ reviewed: Freigegeben
100
101
  schedule: Publizierung planen
101
102
  publish: Jetzt publizieren
103
+ published: Publiziert
102
104
  draft: Als Entwurf speichern
105
+ drafted: Entwurf
103
106
  reset: Auf Entwurf zurücksetzen
104
107
 
105
108
  activerecord:
@@ -22,6 +22,7 @@ en:
22
22
  image_selector: Image Selector
23
23
  insert_item: Click the thumbnail to insert item to the selected editor.
24
24
  settings: Settings
25
+ current_site: Current Site
25
26
 
26
27
  admin:
27
28
 
@@ -99,9 +100,12 @@ en:
99
100
  pages:
100
101
  form:
101
102
  review: Approve
103
+ reviewed: Reviewed
102
104
  schedule: Publish Date
103
105
  publish: Publish Now
106
+ published: Published
104
107
  draft: save as draft
108
+ drafted: Draft
105
109
  reset: Reset to Draft
106
110
 
107
111
  activerecord:
@@ -0,0 +1,129 @@
1
+ es:
2
+ cms:
3
+ fortress:
4
+ page_title: CMS Fortress Admin
5
+ title: CMS Fortress
6
+ contents: Contenido
7
+ design: Diseño
8
+ admin: Administración
9
+ login: Inicio de sesión
10
+ logout: Salir
11
+ create: Crear
12
+ update: Actualización
13
+ delete: Borrar
14
+ edit: Editar
15
+ are_you_sure: ¿Está seguro?
16
+ cancel: Cancelar
17
+ published: Publicado
18
+ published_date: Publicado En
19
+ schedule_date: Scheduled Publication
20
+ cache_timeout: Tiempo de espera de caché
21
+ toggle_navigation: Toggle Navigation
22
+ image_selector: Image Selector
23
+ insert_item: Click the thumbnail to insert item to the selected editor.
24
+ settings: Configuración
25
+ current_site: Sitio Actual
26
+
27
+ admin:
28
+
29
+ dashboard:
30
+ title: Salpicadero
31
+ draft_widget: Proyecto de Páginas
32
+ reviewed_widget: Comentado Páginas
33
+ updated_pages: Páginas Actualizado Recientemente
34
+
35
+ sites:
36
+ menu_header: "Sitio/ %{site_name}"
37
+ super_user:
38
+ title: Estupendo Usuarios
39
+ menu_header: único Estupendo Usuario
40
+
41
+ users: Users
42
+ not_authorized: You are not authorized to access this functionality
43
+ settings_dashboard: Settings Dashboard
44
+ roles: Roles
45
+ design_dashboard: Design Dashboard
46
+ design_related_information: This page will show design related information.
47
+ content_dashboard: Content Dashboard
48
+ content_related_information: "This page will show contents related information (history, graphs, analytics and etc.)"
49
+ errors:
50
+ missing_roles_yaml_file: "The configuration file config/roles.yml is missing."
51
+
52
+ roles:
53
+ title: Rol
54
+ new_link: Nuevo Rol
55
+ edit_title: Editar Rol
56
+ new_title: Crear nuevo Rol
57
+ back: Espalda
58
+ load: Cargue Nuevo Rol
59
+ role: Rol
60
+ show: Mostar
61
+ manage: Gestionar
62
+ save: Ahorrar
63
+ description: Description
64
+ show_access_rights: Mostrar Derechos de Consulta
65
+ name: Nombre
66
+ contents: Contenido
67
+ designs: Diseño
68
+ settings: Configuración
69
+ files: Archivos
70
+ page: Página
71
+ publish: Publicar
72
+ review: Revisión
73
+ pages: Páginas
74
+ layouts: Layouts
75
+ snippets: Snippets
76
+ roles: Rol
77
+ sites: Sitios
78
+ users: Usuarios
79
+
80
+ users:
81
+ title: Usuarios
82
+ new_link: Nuevo Usuario
83
+ new_super_link: Nuevo Estupendo Usuario
84
+ edit_title: Edit User
85
+ new_title: Create New User
86
+ last_name: Lastname
87
+ first_name: Firstname
88
+ email: Email
89
+ role: Role
90
+ sessions:
91
+ new:
92
+ sign_in: Sign In
93
+ email_address: Email Address
94
+ password: Password
95
+ remember_me: Remember me
96
+
97
+ comfy:
98
+ admin:
99
+ cms:
100
+ pages:
101
+ form:
102
+ review: Approve
103
+ reviewed: Reviewed
104
+ schedule: Publish Date
105
+ publish: Publish Now
106
+ published: Published
107
+ draft: save as draft
108
+ drafted: Draft
109
+ reset: Reset to Draft
110
+
111
+ activerecord:
112
+ attributes:
113
+ cms/fortress/user:
114
+ last_name: Lastname
115
+ first_name: Firstname
116
+ email: Email
117
+ role_id: Role
118
+ password: Password
119
+ password_confirmation: Password Confirmation
120
+ cms/fortress/role:
121
+ name: Name
122
+ description: Description
123
+ cms/fortress/role_detail:
124
+ contents: Contents
125
+ comfy/cms/page:
126
+ full_path: Path
127
+ parent_id: Parent page
128
+ slug: Slug
129
+