ish_manager 0.1.8.218 → 0.1.8.219

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
  SHA256:
3
- metadata.gz: 1d86a2f745f9ccf9f6def03a60bddbc8a14d9be0201250ceaf37badbf32aca0c
4
- data.tar.gz: 599322d29c14ae0aff6427608e1be02ed8879284a20aa1528191f03d7a1f498a
3
+ metadata.gz: 75b064ff39a763c539b312263a9fa943197b6f83a8f92a5655b8a744d993c6fb
4
+ data.tar.gz: ea8cd76a6922e02d8f3981b3df21252579782c53f6d7f7788f797cee330353fb
5
5
  SHA512:
6
- metadata.gz: e01f66562f5a0daa1acf181ae596e81e8eda97219a230915c71f2cc239ae99fc96e8de1ced4273482b1ad6e3e0056f4ea4f8c12b485383920b6d76494c600c4e
7
- data.tar.gz: a245084a69f013cb2a5f518b897b1e5ed99b3c295f872f50bccc0fcce14ad9cf7f3d8a957211e98d93e7b6ac39481c8959fb4a1d6b481198448b5e78beace17e
6
+ metadata.gz: 2cdfbac658d675e8396c7f4423a5e91361b668422b96b90fa3650be51228938b5aed880d55b9342a8ad3a6bf1475520886a451cc02ecddb8e2dcc4cb428ab478
7
+ data.tar.gz: 851ba1b262d446ef0a0d10791266d78e7ef454f4bd8254a049093d4dee91d5134cb95d9406dfaa056f6159ba54320b67b2cd22b26d1979163a192a0f1266d137
@@ -11,6 +11,10 @@
11
11
  }
12
12
 
13
13
  .large-photos .item .wrapper {
14
+ width: 100%;
15
+ height: 100%;
16
+ background-repeat: no-repeat;
17
+ background-position: center center;
14
18
  }
15
19
 
16
20
  .large-photos .item .wrapper img {
@@ -14,7 +14,12 @@ class IshManager::PhotosController < IshManager::ApplicationController
14
14
  authorize! :destroy, @photo
15
15
  @photo.gallery.touch if @photo.gallery
16
16
  @photo.is_trash = true
17
- @photo.save
17
+ flag = @photo.save
18
+ if flag
19
+ flash[:notice] = "Success"
20
+ else
21
+ flash[:alert] = "No luck: #{@photo.errors.messages}"
22
+ end
18
23
  redirect_to request.referrer || root_path
19
24
  end
20
25
 
@@ -33,6 +33,6 @@
33
33
  .center.large-photos
34
34
  - @photos.each do |photo|
35
35
  .item
36
- .wrapper
37
- = image_tag photo.photo.url( :large ), :alt => ''
36
+ .wrapper{ style: "background-image: url('#{photo.photo.url( :large )}')" }
37
+ = button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
38
38
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.218
4
+ version: 0.1.8.219
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox