sibu 0.1.31 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/sibu/common.js +7 -0
- data/app/assets/javascripts/sibu/sibu.js.erb +1 -0
- data/app/models/concerns/sibu/sections_concern.rb +1 -1
- data/app/views/layouts/sibu/application.html.erb +4 -0
- data/app/views/layouts/sibu/edit_content.html.erb +1 -0
- data/app/views/sibu/images/index.html.erb +1 -1
- data/app/views/sibu/pages/edit_element.js.erb +1 -0
- data/app/views/sibu/pages/new_section.js.erb +2 -1
- data/app/views/sibu/sites/_form.html.erb +1 -1
- data/lib/sibu/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de5cda6f4ef051d7e724abb03090d7cb7057edba
|
4
|
+
data.tar.gz: 0d768bddd8641ec038babb501e9d7a9b78f1e60b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 473a8590fe208a18be9f598bc0f5d3cbbdb712d631c135b71e95e65547999dd4da57e9d9b9c2a9027e7a5a072d63704727ad0e060d19793e57295e675664e8f3
|
7
|
+
data.tar.gz: 80adac713e3c3bedf4da2a37a3941403fc546b434b6997e24dc2262388fb128b4f601cc3b4a623f29365e9bd8adbfe0727263a0383746f78f50f2d34e294acea
|
@@ -86,7 +86,7 @@ module Sibu
|
|
86
86
|
if new_section["template"].blank?
|
87
87
|
nil
|
88
88
|
else
|
89
|
-
template_defaults = site_template.templates ? site_template.templates[new_section["template"]] : {}
|
89
|
+
template_defaults = (site_template.templates && site_template.templates[new_section["template"]]) ? site_template.templates[new_section["template"]] : {}
|
90
90
|
sec = template_defaults.merge(new_section)
|
91
91
|
ref_pos = parent.index {|s| s["id"] == ids.last}
|
92
92
|
parent.insert(after.to_s == 'true' ? ref_pos + 1 : ref_pos, sec)
|
@@ -4,6 +4,7 @@
|
|
4
4
|
<title><%= conf[:title] %></title>
|
5
5
|
<%= stylesheet_link_tag conf[:stylesheet], media: 'all' %>
|
6
6
|
<%= javascript_include_tag conf[:javascript] %>
|
7
|
+
<%= javascript_include_tag 'sibu/common' %>
|
7
8
|
<%= csrf_meta_tags %>
|
8
9
|
</head>
|
9
10
|
<body>
|
@@ -14,6 +15,9 @@
|
|
14
15
|
</div>
|
15
16
|
<% end %>
|
16
17
|
<% end %>
|
18
|
+
<script>
|
19
|
+
sibuCallback("<%= "#{action_name}_#{controller_name}".camelize(:lower) %>");
|
20
|
+
</script>
|
17
21
|
<%= yield :scripts %>
|
18
22
|
</body>
|
19
23
|
</html>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div id="pages" class="sibu_view">
|
2
2
|
<div class="actions">
|
3
|
-
<%= link_to 'Télécharger une image', new_site_image_path(@site.id) %>
|
3
|
+
<%= link_to 'Télécharger une image', new_site_image_path(@site.id) %> <%= link_to 'Retour', :back %>
|
4
4
|
</div>
|
5
5
|
<h2>Images du site "<%= @site.name %>"</h2>
|
6
6
|
<% @images.each do |image| %>
|
@@ -66,7 +66,7 @@
|
|
66
66
|
<%= hidden_field_tag :next_page, @next_page %>
|
67
67
|
<%= f.hidden_field :user_id %>
|
68
68
|
<div class="sibu_actions">
|
69
|
-
<%= f.submit 'Valider', data: {
|
69
|
+
<%= f.submit 'Valider', data: {disable_with: 'Enregistrement en cours...'} %>
|
70
70
|
<%= link_to 'Annuler', :back %>
|
71
71
|
</div>
|
72
72
|
<% end %>
|
data/lib/sibu/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sibu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean-Baptiste Vilain
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- app/assets/fonts/sibu/Sibu.ttf
|
126
126
|
- app/assets/fonts/sibu/Sibu.woff
|
127
127
|
- app/assets/javascripts/quill/quill.js
|
128
|
+
- app/assets/javascripts/sibu/common.js
|
128
129
|
- app/assets/javascripts/sibu/sibu.js.erb
|
129
130
|
- app/assets/stylesheets/quill/quill.snow.css
|
130
131
|
- app/assets/stylesheets/sibu/icons.scss
|