kilt-cms 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 240cab9a8230548d0a76cc6832da68780848c10d
4
- data.tar.gz: fdc977dbddc9b4725c39da5cbd001680fd4b0ad7
3
+ metadata.gz: 61bbf42c9795d7449acaf0171775752ef96de3b6
4
+ data.tar.gz: 06d671b4660cb1224e1d482ffdf04f376a367662
5
5
  SHA512:
6
- metadata.gz: 6326ed583a71314b001ec23877fdc418e8a6e8226a6cd313cc5728b0818d76230da29c84724e24bdd16ac59b0b25e4eb297450aaf701ffdccd23ccb9c128d243
7
- data.tar.gz: b23035477ae9394c5fec9302fb8edf9c7b3c178718dd0f6f17fbf1f121ee72ec632e4574698e29912b3c982c2740528a88a7f03540a1a13c4b3090d360b1cd63
6
+ metadata.gz: de0011a3b116563c87d3f4c5cdf6c86b698f1b56e97c54d4125fb03adc5c1a15e7c9ba885776596e7c2bf5eb3cf5cd707dd55d701d9878e02ff34dba821d137a
7
+ data.tar.gz: 54c5fe9754e9adacd46c8755868bf3a3c5484b6960bf08f002eddc82f50cf3e1f5d4728f5d2dd46b11a56a1a72e3894b7cf33ea608cc6a2253115382ed858894
@@ -5,6 +5,7 @@
5
5
 
6
6
  <div class="page-actions">
7
7
  <%= link_to "← Back to #{@type.pluralize.capitalize}", list_path(@type), :class => 'button back' %>
8
+ <%= link_to "New #{@type.capitalize}", new_object_path(@type), :class => 'button back' if !@object.empty? %>
8
9
  </div>
9
10
 
10
11
  <% if flash[:error] -%>
@@ -17,8 +17,8 @@ module Kilt
17
17
  end
18
18
 
19
19
  def order(key = 'name', direction = 'ASC')
20
- values = @values.sort_by { |hash| hash[key] }
21
- direction == 'DESC' ? values.reverse! : values
20
+ @values = @values.sort_by { |hash| hash[key] }
21
+ direction == 'DESC' ? @values.reverse! : values
22
22
  return self
23
23
  end
24
24
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kilt-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ashe Avenue
@@ -227,8 +227,6 @@ files:
227
227
  - lib/generators/kilt/templates/backend/creds.yml.example
228
228
  - lib/generators/kilt/templates/backend/kilt.rb
229
229
  - lib/generators/kilt/templates/frontend/application.html.erb
230
- - lib/generators/kilt/templates/frontend/assets/images/sprite/empty
231
- - lib/generators/kilt/templates/frontend/assets/images/sprite/retina/empty
232
230
  - lib/generators/kilt/templates/frontend/assets/javascripts/application.js
233
231
  - lib/generators/kilt/templates/frontend/assets/javascripts/html5shiv.js
234
232
  - lib/generators/kilt/templates/frontend/assets/javascripts/mediaqueries.js
@@ -276,7 +274,6 @@ files:
276
274
  - test/dummy/config/initializers/session_store.rb
277
275
  - test/dummy/config/initializers/wrap_parameters.rb
278
276
  - test/dummy/config/kilt/config.yml
279
- - test/dummy/config/kilt/creds.yml
280
277
  - test/dummy/config/kilt/creds.yml.example
281
278
  - test/dummy/config/routes.rb
282
279
  - test/dummy/config.ru
@@ -351,7 +348,6 @@ files:
351
348
  - test/dummy/tmp/data/meta_request/d13bda5a-d4fd-42de-838d-7db1589aa91e.json
352
349
  - test/dummy/tmp/data/meta_request/f243c710-5403-4c9d-aefd-87bd8b03c3cd.json
353
350
  - test/dummy/tmp/data/meta_request/fc7e86ef-8a52-406e-8ce6-1aa3efba9a9a.json
354
- - test/dummy/tmp/pids/server.pid
355
351
  - test/kilt/form_spec.rb
356
352
  - test/minitest_helper.rb
357
353
  homepage: http://community.asheavenue.com
@@ -406,7 +402,6 @@ test_files:
406
402
  - test/dummy/config/initializers/session_store.rb
407
403
  - test/dummy/config/initializers/wrap_parameters.rb
408
404
  - test/dummy/config/kilt/config.yml
409
- - test/dummy/config/kilt/creds.yml
410
405
  - test/dummy/config/kilt/creds.yml.example
411
406
  - test/dummy/config/routes.rb
412
407
  - test/dummy/config.ru
@@ -481,6 +476,5 @@ test_files:
481
476
  - test/dummy/tmp/data/meta_request/d13bda5a-d4fd-42de-838d-7db1589aa91e.json
482
477
  - test/dummy/tmp/data/meta_request/f243c710-5403-4c9d-aefd-87bd8b03c3cd.json
483
478
  - test/dummy/tmp/data/meta_request/fc7e86ef-8a52-406e-8ce6-1aa3efba9a9a.json
484
- - test/dummy/tmp/pids/server.pid
485
479
  - test/kilt/form_spec.rb
486
480
  - test/minitest_helper.rb
@@ -1,7 +0,0 @@
1
- db:
2
- host: db.labs.asheavenue.com
3
- port: 28015
4
- db: kilt
5
- auth:
6
- username: ashe
7
- password: avenue
@@ -1 +0,0 @@
1
- 36020