sibu 0.6.3 → 0.6.4
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.
- checksums.yaml +4 -4
- data/app/helpers/sibu/pages_helper.rb +1 -1
- data/app/views/sibu/pages/index.html.erb +1 -1
- data/app/views/sibu/sites/index.html.erb +1 -1
- data/config/routes.rb +4 -1
- data/lib/sibu/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: abff5792cf01e5630922b2911f8097ef85995c4f
|
|
4
|
+
data.tar.gz: 3c42733ed519aa3d6729b32a33d92d371b1ed68d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b11a30d2730d8b2985d45c98c99acfeac32246a4059ce00949093a4cb6f2cbb6edba45169c2b5ba3177cce8a9a1eb79eb7817bfa62082e72441ffd85fd9a5378
|
|
7
|
+
data.tar.gz: 99693f5361a9a292fe06288fc5f3405e927f8c6032dea9bcd04e56a0c0c908561d21313e46edfd9e1f104a174affec644244d277f0327274bbeabedc66e2eb28
|
|
@@ -4,7 +4,7 @@ module Sibu
|
|
|
4
4
|
|
|
5
5
|
def link_path(page_id)
|
|
6
6
|
p = @site.page_by_id(page_id)
|
|
7
|
-
p ? (request.host == conf[:host] ? site_page_path(@site.id, p.id) : "/#{p.path}") : "#"
|
|
7
|
+
p ? (request.host == conf[:host] ? site_page_path(@site.id, p.id) : (conf[:deployment_path] ? "/#{conf[:deployment_path]}/#{p.path}" : "/#{p.path}")) : "#"
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def sections_templates
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<td><%= l p.updated_at %></td>
|
|
21
21
|
<td>
|
|
22
22
|
<%= link_to 'Voir', site_page_path(@site.id, p), target: '_blank' %> |
|
|
23
|
-
<%= link_to '
|
|
23
|
+
<%= link_to 'Editer', site_page_edit_content_path(site_id: @site.id, page_id: p.id) %> |
|
|
24
24
|
<%= link_to 'Copier', duplicate_site_page_path(@site.id, p), method: :post, data: {confirm: "Copier la page \"#{p.name}\" ?"} %> |
|
|
25
25
|
<%= link_to 'Paramétrer', edit_site_page_path(@site.id, p) %> |
|
|
26
26
|
<%= link_to 'Supprimer', site_page_path(@site.id, p), method: :delete, data: {confirm: "Supprimer la page \"#{p.name}\" ?"} %>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<td><%= l s.updated_at %></td>
|
|
25
25
|
<td colspan="2">
|
|
26
26
|
<%= link_to 'Pages', site_pages_path(s) %> |
|
|
27
|
-
<%= link_to '
|
|
27
|
+
<%= link_to 'Paramétrer', edit_site_path(s) %> |
|
|
28
28
|
<%= link_to 'Copier', duplicate_site_path(s), method: :post, data: {confirm: "Copier le site \"#{s.name}\" ?"} %> |
|
|
29
29
|
<%= link_to 'Supprimer', site_path(s), method: :delete, data: {confirm: "Supprimer le site \"#{s.name}\" ?"} %>
|
|
30
30
|
</td>
|
data/config/routes.rb
CHANGED
|
@@ -3,7 +3,7 @@ Sibu::Engine.routes.draw do
|
|
|
3
3
|
get '/', to: 'pages#show', constraints: lambda {|req| req.host != Rails.application.config.sibu[:host]}
|
|
4
4
|
get '*path', to: 'pages#show', constraints: lambda {|req| req.host != Rails.application.config.sibu[:host]}
|
|
5
5
|
|
|
6
|
-
scope path_names: {new: 'creer', edit: '
|
|
6
|
+
scope path_names: {new: 'creer', edit: 'parametrer'} do
|
|
7
7
|
resources :sites do
|
|
8
8
|
post 'duplicate', on: :member
|
|
9
9
|
resources :pages do
|
|
@@ -19,8 +19,11 @@ Sibu::Engine.routes.draw do
|
|
|
19
19
|
get 'new_section', on: :member
|
|
20
20
|
post 'create_section', on: :member
|
|
21
21
|
delete 'delete_section', on: :member
|
|
22
|
+
end
|
|
23
|
+
resources :pages, only:[] do
|
|
22
24
|
get '*path', to: 'pages#show', on: :member
|
|
23
25
|
end
|
|
26
|
+
|
|
24
27
|
end
|
|
25
28
|
resources :images, :documents
|
|
26
29
|
end
|
data/lib/sibu/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sibu
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jean-Baptiste Vilain
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
252
252
|
version: '0'
|
|
253
253
|
requirements: []
|
|
254
254
|
rubyforge_project:
|
|
255
|
-
rubygems_version: 2.6.
|
|
255
|
+
rubygems_version: 2.6.14.1
|
|
256
256
|
signing_key:
|
|
257
257
|
specification_version: 4
|
|
258
258
|
summary: Sibu - A Site Builder for Ruby on Rails
|