caboose-cms 0.5.177 → 0.5.178

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODg4ZjY4YzRiMmJiMGE1MmVlMThjZThhZjhhNjEyNWY4OTMxMWM5Nw==
4
+ NmYwMjNkNTg3MzI5ZGU1YTA2NTNiODRkNjQ4OTg1ZDdiMzEwNmFjNw==
5
5
  data.tar.gz: !binary |-
6
- ZTYyYTJjYzE4M2M3ZDhhYjA2NTg3OGNjZDU2ZTUxODMyYjgxZjYxYQ==
6
+ NDlhMWQ0YWEyNDljZjI5YzY4NGQxYjg2ZjQyYjY0ZTJjMTE3NTM2NA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODkyMDJjZGM1N2EzZmE1ZjE4MGE0ZWIxMGIzNmY2YWFlMTliZWYxMzZlNmRh
10
- YjNjNmIwOTk5MmQ5NWVjNDc3MmQ0YTc5NzA5MzdjYTYwYjlmNmVmYmFiZDRl
11
- ZDcwMTVkMWIzNTZlODc4YjEzY2ZjMGNmOGM4ZWNhNmI1YmYzOWI=
9
+ YmRhOTQyYWI0NWNmM2MwMGI3OGY2YmQxOTAwY2ZlZTYyM2Q2Y2RjMzIwM2Rm
10
+ NzQ0Nzc0M2QxYTQwMmU2OTgzODliZjUwZGExMjU5YzZmNWVhYWM3OTliYWYw
11
+ ZTQ0M2RjNjU1Y2ZjZGM0N2MyZTQ5ZWQ4ODhiMzMxMTRiM2IwODI=
12
12
  data.tar.gz: !binary |-
13
- NzM2YTNjMWEzNTYwM2Q2YjY0YmI1MjkyOTRkNzM1MGIzZDRkNDhiY2ZmYmQx
14
- NTkwYjdkODhjMTQyYmJhNDVhZWIxMGViMzFkOGY0YzlhY2VlZmMxODY1NWI5
15
- NWFkNDA0YjYxMjQ1N2E0ZDc2ZGVjZjM1NDZmMjU0NDM4YjQ3YjU=
13
+ ZDRkZTE1MzAxNTA4NDViY2ZhMmQxZDRiMWMwODQ2MTFmMzk3MTQ3MWVkMzBj
14
+ NWJhODAyOTRkZWI4MjBkMjlmNmY4ZTgwODA3NWY4ZDhiZjZlOGQyNDQ2ODA1
15
+ MTg3M2IzMWIzYWUwM2NjNTFhYTVmOGFjYjIzOTY1NGZiOWE5ZGQ=
@@ -40,6 +40,7 @@ module Caboose
40
40
  when 'site_id' then d.site_id = value
41
41
  when 'domain' then d.domain = value
42
42
  when 'under_construction' then d.under_construction = value
43
+ when 'forward_to_primary' then d.forward_to_primary = value
43
44
  when 'primary' then
44
45
  d.primary = value
45
46
  Domain.where(:site_id => params[:site_id]).all.each do |d2|
@@ -22,6 +22,7 @@ user_ids = [] if user_ids.nil?
22
22
  <th>Domain</th>
23
23
  <th>Primary</th>
24
24
  <th>Under Construction</th>
25
+ <th>Forward to Primary</th>
25
26
  <th>Delete</th>
26
27
  </tr>
27
28
  <% @site.domains.order(:id).all.each do |d| %>
@@ -29,6 +30,7 @@ user_ids = [] if user_ids.nil?
29
30
  <td><%= d.domain %></td>
30
31
  <td align='center'><input type='radio' name='primary_domain' <%= d.primary? ? "checked='true'" : '' %> onclick="set_primary_domain(<%= s.id %>, <%= d.id %>);" /></td>
31
32
  <td align='center'><input type='checkbox' name='under_construction_<%= d.id %>' <%= d.under_construction ? "checked='true'" : '' %> onclick="set_under_construction(<%= s.id %>, <%= d.id %>, $(this).prop('checked'));" /></td>
33
+ <td align='center'><input type='checkbox' name='forward_to_primary_<%= d.id %>' <%= d.forward_to_primary ? "checked='true'" : '' %> onclick="set_forward_to_primary(<%= s.id %>, <%= d.id %>, $(this).prop('checked'));" /></td>
32
34
  <td align='center'><input type='button' value='Delete' onclick="delete_domain(<%= @site.id %>, <%= d.id %>);" /></td>
33
35
  </tr>
34
36
  <% end %>
@@ -83,6 +85,15 @@ function set_under_construction(site_id, domain_id, checked)
83
85
  });
84
86
  }
85
87
 
88
+ function set_forward_to_primary(site_id, domain_id, checked)
89
+ {
90
+ $.ajax({
91
+ url: '/admin/sites/' + site_id + '/domains/' + domain_id,
92
+ type: 'put',
93
+ data: { forward_to_primary: checked ? 1 : 0 }
94
+ });
95
+ }
96
+
86
97
  function add_site_membership(site_id, user_id, role)
87
98
  {
88
99
  $.ajax({
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.5.177'
2
+ VERSION = '0.5.178'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.177
4
+ version: 0.5.178
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry