ish_manager 0.1.8.81 → 0.1.8.82

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: 6d9a8d31505a005c3b7bd6f97b73db0f687ee53d
4
- data.tar.gz: 4d29d636bea45aba125ba1c5311f94591b112785
3
+ metadata.gz: d1859e6c3e3ed85ff89bc13fda4b1cd8671b4d44
4
+ data.tar.gz: 71027c0faf4c9621fe1b4332ebbe78c2fff6d764
5
5
  SHA512:
6
- metadata.gz: 1ac1422e4d6f740d1569e08d83f366200089f444a1f66bac47419a3f7496dc8ed947fc083ca4f4f21e08bcf3a54fa003aaf19e57b246e2135d981d27b6442e15
7
- data.tar.gz: e52df38e59402a981e2b254446da9fb32b4e6a750bdf3541d57031539383e93a5992371c44da824cfa91839b5133a5201ea8be404e07a6f9c4443c9d24db9678
6
+ metadata.gz: 7063263529b39a4561e6bb12b6599f4c5dddb330566e47b5cf138cb93462055aef4c4935bb6b6697787f6021aa4cf060dd0eb244d3ba8bab3fa6b87d058859ac
7
+ data.tar.gz: '038bd6ba08740d280bf893a58bf10cef1035f688286e0b7510c3b47d7f5d0793ad6412be0d3b7da4743121b3630a2f95c7ebd36bdc78b273007d420192c0c266'
@@ -6,13 +6,6 @@ class IshManager::FriendsController < IshManager::ApplicationController
6
6
 
7
7
  @friends = current_user.profile.friends
8
8
  friend_ids = @friends.map &:id
9
- =begin
10
- @raw_shared_galleries = @friend.shared_galleries
11
- @shared_galleries = {}
12
- @friends.each do |f|
13
- @shared_galleries[f.email] =
14
- f.shared_galleries
15
- =end
16
9
  end
17
10
 
18
11
  def create
@@ -10,6 +10,10 @@ class IshManager::GalleriesController < IshManager::ApplicationController
10
10
  @shared_galleries = current_user.profile.shared_galleries.unscoped.where( :is_trash => false ).page( params[:shared_galleries_page] ).per( 10 )
11
11
  end
12
12
 
13
+ ## same as index
14
+ # def index_title
15
+ # end
16
+
13
17
  def index_thumb
14
18
  @galleries = Gallery.unscoped.where( :is_trash => false
15
19
  ).order_by( :created_at => :desc
@@ -17,6 +17,4 @@
17
17
  .row
18
18
  .col-sm-6.description
19
19
  Galleries shared with them:
20
- %ul
21
- - friend.shared_galleries.each do |g|
22
- %li= g[:name]
20
+ = render 'ish_manager/galleries/index_title', :galleries => friend.shared_galleries
@@ -0,0 +1,18 @@
1
+
2
+ - n_thumbs ||= 8
3
+ - param_name ||= :galleries_page
4
+
5
+ - if galleries.length > 0
6
+ .galleries--list
7
+ - galleries.each do |g|
8
+ .item
9
+ %h5
10
+ = link_to '[~]', edit_gallery_path( g )
11
+ = link_to g.name, gallery_path(g.galleryname)
12
+ .c
13
+
14
+ - if galleries.respond_to? :total_pages
15
+ = paginate galleries, :param_name => param_name
16
+
17
+ - else
18
+ %h5 No Galleries
@@ -17,7 +17,8 @@
17
17
  = link_to image_tag(photo.photo.url(:thumb), :alt => g.name, :class => :thumb ), gallery_path(g.galleryname)
18
18
  .c
19
19
 
20
- = paginate galleries, :param_name => param_name
20
+ - if galleries.respond_to? :total_pages
21
+ = paginate galleries, :param_name => param_name
21
22
 
22
23
  - else
23
24
  %h5 No Galleries
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.81
4
+ version: 0.1.8.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -217,7 +217,7 @@ files:
217
217
  - app/views/ish_manager/features/show.haml
218
218
  - app/views/ish_manager/friends/index.haml
219
219
  - app/views/ish_manager/galleries/_form.haml
220
- - app/views/ish_manager/galleries/_index.haml
220
+ - app/views/ish_manager/galleries/_index_title.haml
221
221
  - app/views/ish_manager/galleries/_list.haml
222
222
  - app/views/ish_manager/galleries/_list.haml~
223
223
  - app/views/ish_manager/galleries/_list_short.haml
@@ -1,18 +0,0 @@
1
-
2
- - galleries = galleries.page( params[:galleries_page] ).per( 10 )
3
-
4
- .manager-galleries--index
5
- .row
6
- .col-sm-12
7
- %h2 Galleries (#{galleries.length})
8
-
9
- = paginate galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
10
- %ol
11
- - galleries.each do |gallery|
12
- %li
13
- - gallery.photos.unscoped.where({ :is_trash => false })[0...4].each do |photo|
14
- .mini= image_tag photo.photo.url( :thumb ), :alt => ''
15
- .clearfix
16
- #{link_to gallery.name, gallery_path( gallery )} (#{gallery.photos.unscoped.where({ :is_trash => false }).length})
17
- = paginate galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
18
- %hr