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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d33c05a8f28003ffbba1f9179108d5450235fa8
4
- data.tar.gz: 57a4403853373b807840969d1f6f6ff1ab45647c
3
+ metadata.gz: abff5792cf01e5630922b2911f8097ef85995c4f
4
+ data.tar.gz: 3c42733ed519aa3d6729b32a33d92d371b1ed68d
5
5
  SHA512:
6
- metadata.gz: 15b19e747e06fd53033ecf3270f311147cc379191572b7cb6944429c52456f15db018fedd1cb28edf136503368008c34af7984a445b7424c6272f163611d09b3
7
- data.tar.gz: aa7a981179a9aecd70311ac99e5afea1118dfb65b96f023ef8865e1f05c0b923a154b2bf04eb76bbd491ca490962e780ea328753fd921b4950ac648464e7aae0
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 'Modifier', site_page_edit_content_path(site_id: @site.id, page_id: p.id) %> |
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 'Modifier', edit_site_path(s) %> |
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>
@@ -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: 'modifier'} do
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
@@ -1,3 +1,3 @@
1
1
  module Sibu
2
- VERSION = '0.6.3'
2
+ VERSION = '0.6.4'
3
3
  end
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.3
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-07 00:00:00.000000000 Z
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.13
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