ish_manager 0.1.0 → 0.1.1

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.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ish_manager/application.js +1 -0
  3. data/app/assets/stylesheets/ish_manager/application.css +0 -4
  4. data/app/controllers/ish_manager/application_controller.rb +1 -1
  5. data/app/controllers/ish_manager/sites_controller.rb +0 -2
  6. data/app/helpers/ish_manager/images_helper.rb +1 -2
  7. data/app/views/ish_manager/application/_main_footer.haml +2 -6
  8. data/app/views/ish_manager/cities/edit.haml +3 -3
  9. data/app/views/ish_manager/sites/_form.haml +1 -1
  10. data/app/views/ish_manager/sites/edit.haml +2 -2
  11. data/app/views/ish_manager/sites/index.haml +7 -7
  12. data/app/views/layouts/ish_manager/application.haml +1 -2
  13. data/config/routes.rb +1 -4
  14. data/lib/ish_manager.rb +0 -2
  15. data/lib/ish_manager/version.rb +1 -1
  16. metadata +1 -80
  17. data/app/controllers/ish_manager/features_controller.rb +0 -125
  18. data/app/controllers/ish_manager/galleries_controller.rb +0 -86
  19. data/app/controllers/ish_manager/newsitems_controller.rb +0 -113
  20. data/app/controllers/ish_manager/photos_controller.rb +0 -55
  21. data/app/controllers/ish_manager/reports_controller.rb +0 -64
  22. data/app/controllers/ish_manager/tags_controller.rb +0 -54
  23. data/app/controllers/ish_manager/users_controller.rb +0 -13
  24. data/app/views/ish_manager/features/_form.haml +0 -61
  25. data/app/views/ish_manager/features/_index.haml +0 -23
  26. data/app/views/ish_manager/features/_item.haml +0 -14
  27. data/app/views/ish_manager/features/edit.haml +0 -16
  28. data/app/views/ish_manager/features/index.haml +0 -25
  29. data/app/views/ish_manager/features/new.haml +0 -11
  30. data/app/views/ish_manager/features/show.haml +0 -0
  31. data/app/views/ish_manager/galleries/#_thumbs.haml# +0 -5
  32. data/app/views/ish_manager/galleries/_form.haml +0 -46
  33. data/app/views/ish_manager/galleries/_index.haml +0 -14
  34. data/app/views/ish_manager/galleries/_list.haml +0 -23
  35. data/app/views/ish_manager/galleries/_list_short.haml +0 -9
  36. data/app/views/ish_manager/galleries/_menu_secondary.haml +0 -13
  37. data/app/views/ish_manager/galleries/_meta.haml +0 -16
  38. data/app/views/ish_manager/galleries/_search.haml +0 -7
  39. data/app/views/ish_manager/galleries/_thumbs.haml +0 -12
  40. data/app/views/ish_manager/galleries/_title.haml +0 -17
  41. data/app/views/ish_manager/galleries/all_photos.haml +0 -4
  42. data/app/views/ish_manager/galleries/edit.haml +0 -11
  43. data/app/views/ish_manager/galleries/index.haml +0 -18
  44. data/app/views/ish_manager/galleries/index_ajax.haml +0 -9
  45. data/app/views/ish_manager/galleries/index_mini.haml +0 -0
  46. data/app/views/ish_manager/galleries/index_short.haml +0 -19
  47. data/app/views/ish_manager/galleries/index_thumb.haml +0 -16
  48. data/app/views/ish_manager/galleries/index_title.haml +0 -15
  49. data/app/views/ish_manager/galleries/index_trash.haml +0 -20
  50. data/app/views/ish_manager/galleries/new.haml +0 -7
  51. data/app/views/ish_manager/galleries/show.haml +0 -34
  52. data/app/views/ish_manager/newsitems/_form.haml +0 -10
  53. data/app/views/ish_manager/newsitems/_index.haml +0 -17
  54. data/app/views/ish_manager/newsitems/_item.haml +0 -53
  55. data/app/views/ish_manager/newsitems/edit.haml +0 -14
  56. data/app/views/ish_manager/newsitems/new.haml +0 -16
  57. data/app/views/ish_manager/photos/_meta.haml +0 -9
  58. data/app/views/ish_manager/photos/_multinew.haml +0 -23
  59. data/app/views/ish_manager/photos/show.haml +0 -2
  60. data/app/views/ish_manager/photos/without_gallery.haml +0 -11
  61. data/app/views/ish_manager/reports/_form.haml +0 -42
  62. data/app/views/ish_manager/reports/_index.haml +0 -16
  63. data/app/views/ish_manager/reports/edit.haml +0 -6
  64. data/app/views/ish_manager/reports/index.haml +0 -26
  65. data/app/views/ish_manager/reports/new.haml +0 -5
  66. data/app/views/ish_manager/reports/show.haml +0 -18
  67. data/app/views/ish_manager/videos/_index.haml +0 -12
@@ -1,11 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h3 New Feature
5
-
6
- - if @city
7
- = render 'form', :feature => @feature, :city => @city
8
- - if @site
9
- = render 'form', :feature => @feature, :site => @site
10
- - if @tag
11
- = render 'form', :feature => @feature, :tag => @tag
File without changes
@@ -1,5 +0,0 @@
1
-
2
- .manager-galleries--thumbs
3
- %ul
4
- - gallery.photos.each do |photo|
5
- %li= image_tag photo.photo
@@ -1,46 +0,0 @@
1
-
2
- - url ||= manager_galleries_path
3
-
4
- = form_for gallery, :url => url do |f|
5
- .row
6
- .large-12.columns
7
- = f.label :name
8
- = f.text_field :name
9
- = gallery.galleryname
10
- %br
11
- %br
12
-
13
- .row
14
- .large-4.columns
15
- = f.label :site
16
- = select :gallery, :site_id, @sites_list
17
- .large-4.columns
18
- = f.label :city
19
- = select :gallery, :city_id, @cities_list
20
- .large-4.columns
21
- = f.label :tag
22
- = select :gallery, :tag_id, @tags_list
23
- .large-4.columns
24
- = f.label :user
25
- = select :gallery, :user_id, @users_list
26
- .large-4.columns.end
27
- = f.label :venue
28
- = select :gallery, :venue_id, @venues_list
29
-
30
- .row
31
- .large-3.columns
32
- = f.label :is_public
33
- = f.check_box :is_public
34
- .large-3.columns
35
- = f.label :is_done
36
- = f.check_box :is_done
37
- .large-3.columns
38
- = f.label :is_trash
39
- = f.check_box :is_trash
40
- .large-3.columns
41
- = f.label :is_feature
42
- = f.check_box :is_feature
43
-
44
- .row
45
- .large-3.columns.end
46
- = f.submit
@@ -1,14 +0,0 @@
1
-
2
- .manager-galleries--index
3
- .row
4
- .large-12.columns
5
- %h2 Galleries (#{galleries.length})
6
-
7
- = paginate galleries, :param_name => :galleries_page
8
- %ol
9
- - galleries.each do |gallery|
10
- %li
11
- - gallery.photos.unscoped.where({ :is_trash => false })[0..4].each do |photo|
12
- .mini= image_tag photo.photo.url( :mini ), :alt => ''
13
- #{link_to gallery.name, manager_gallery_path( gallery )} (#{gallery.photos.unscoped.where({ :is_trash => false }).length})
14
- = paginate galleries, :param_name => :galleries_page
@@ -1,23 +0,0 @@
1
-
2
- - n_thumbs ||= 8
3
-
4
- - if galleries.length > 0
5
- .galleries--list
6
- - galleries.each do |g|
7
- .item
8
- %h3
9
- = link_to '[~]', edit_gallery_path( g.galleryname )
10
- = link_to g.name, gallery_path(g.galleryname)
11
- -# = render 'meta', :item => g
12
- - if g.photos.length == 0
13
- = image_missing
14
- - else
15
- - g.photos.each_with_index do |photo, idx|
16
- - break if n_thumbs == idx + 1
17
- = link_to image_tag(photo.photo.url(:thumb), :alt => g.name, :class => :thumb ), gallery_path(g.galleryname)
18
- .c
19
-
20
- = paginate galleries, :param_name => :galleries_page
21
-
22
- - else
23
- %h5 No Galleries
@@ -1,9 +0,0 @@
1
-
2
- %ul
3
- - galleries.each do |gallery|
4
- %li
5
- = link_to '[~]', edit_manager_gallery_path( gallery )
6
- = link_to gallery.name, manager_gallery_path( gallery )
7
- %br
8
- \      
9
- N photos: #{gallery.photos.length}
@@ -1,13 +0,0 @@
1
-
2
-
3
- .row.menu-secondary
4
- .large-12.columns.tags
5
- Tags
6
- %ul.inline-list
7
- - @tags.each do |tag|
8
- %li
9
- = link_to tag.name, manager_tag_path(tag)
10
- (#{tag.galleries.length})
11
-
12
- .c
13
-
@@ -1,16 +0,0 @@
1
-
2
- .galleries--meta
3
- .row
4
- .large-12.columns
5
- - if gallery.site
6
- Site #{link_to "http://#{gallery.site.domain}/#{gallery.site.lang}", site_path(gallery.site)}
7
- - if gallery.user
8
- User #{link_to gallery.user.username, user_path(gallery.user)}
9
- - if gallery.tag
10
- Tag #{link_to gallery.tag.name, tag_path(gallery.tag)}
11
- - if gallery.city
12
- City #{link_to gallery.city.name, city_path(gallery.city)}
13
- - if gallery.venue
14
- Venue #{link_to gallery.venue.name, venue_path(gallery.venue)}
15
- - if gallery.is_trash
16
- = trash_image_tag
@@ -1,7 +0,0 @@
1
- = form_tag galleries_path, :method => :get, :class => :search do
2
- .field.search_words
3
- .hide [x]
4
- = text_field_tag 'keywords', nil, :placeholder => 'Search'
5
- .actions.hide
6
- = submit_tag 'Search'
7
- .c
@@ -1,12 +0,0 @@
1
-
2
- - #
3
- - # manager / galleries / _thumbs
4
- - #
5
-
6
- %hr
7
- .manager-galleries--thumbs
8
- .row
9
- .large-12.columns
10
- - gallery.photos.each do |photo|
11
- = image_tag photo.photo.url( :thumb )
12
- %hr
@@ -1,17 +0,0 @@
1
-
2
- .title
3
- %h5
4
- .btn-group
5
- %a{ 'data-toggle' => 'dropdown', :class => 'btn dropdown-toggle' }
6
- = t('galleries.list')
7
- %span.caret
8
- %ul.dropdown-menu
9
- %li= link_to 'Add New', new_manager_gallery_path
10
- %li= link_to 'Public', :action => :index, :public => '1'
11
- %li= link_to 'Nonpublic', :action => :index, :public => '0'
12
- %li= link_to 'Done', :action => :index, :done => '1'
13
- %li= link_to 'Nondone', :action => :index, :done => '0'
14
- %li= link_to 'Trash', :action => :index, :is_trash => '1'
15
- %li= link_to 'Fullindex', manager_galleries_fullindex_path
16
- %li= link_to 'Paginated', manager_galleries_path
17
- %li= link_to 'Short List', :action => :index, :short_list => true
@@ -1,4 +0,0 @@
1
-
2
-
3
- - @photos.fresh.each do |ph|
4
- = image_tag ph.photo.url(:mini)
@@ -1,11 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h1
5
- = t('galleries.edit')
6
- = link_to @gallery.name, manager_gallery_path( @gallery )
7
- (#{@gallery.photos.count})
8
-
9
- = render 'manager/galleries/form', :gallery => @gallery, :url => manager_gallery_path( @gallery )
10
- = render 'manager/galleries/thumbs', :gallery => @gallery
11
- = render 'manager/photos/multinew', :gallery => @gallery
@@ -1,18 +0,0 @@
1
-
2
- - content_for :title do
3
- Manager Galleries Index
4
-
5
- - content_for :menu do
6
- - # nothing
7
-
8
- .container
9
- .row
10
- .col-xs-6
11
- %h4
12
- = t('galleries.list')
13
- = link_to '[+]', new_gallery_path
14
- .col-xs-6= render 'search'
15
- .row
16
- .lcol-xs-12
17
- -# = render 'ish_manager/galleries/menu_secondary'
18
- = render 'ish_manager/galleries/list', :galleries => @galleries
@@ -1,9 +0,0 @@
1
-
2
- - content_for :title do
3
- Manager Galleries Index
4
-
5
- - content_for :menu do
6
- = render 'search'
7
-
8
- = render 'manager/galleries/menu_secondary'
9
-
File without changes
@@ -1,19 +0,0 @@
1
-
2
-
3
- %h2
4
- = link_to 'Galleries', manager_galleries_path
5
- = link_to '[+]', new_manager_gallery_path
6
-
7
- .as
8
- - @galleries.each do |g|
9
- .clear
10
- .a
11
- = link_to '[~]', edit_manager_gallery_path(g)
12
- = link_to g.name, manager_gallery_path(g.id)
13
- = link_to '[+]', new_photo_path( :galleryname => g.galleryname )
14
- = link_to '[++]', add_photos_path(g.id)
15
- .float-right= button_to '[x]', manager_gallery_path(g), :method => :delete
16
-
17
- .clear
18
- = paginate @galleries, :param_name => :galleries_page
19
-
@@ -1,16 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h1 Manager Galleries List
5
-
6
- = paginate @galleries, :param_name => :galleries_page
7
- %ul
8
- - @galleries.each do |gallery|
9
- %li
10
- = link_to '[~]', edit_manager_gallery_path( gallery )
11
- = link_to gallery.name, manager_gallery_path( gallery )
12
- %br
13
- - gallery.photos.each_with_index do |photo, idx|
14
- - if idx < 8
15
- = image_tag photo.photo.url :thumb
16
- = paginate @galleries, :param_name => :galleries_page
@@ -1,15 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h1 Titled Galleries
5
-
6
- %ul
7
- - @galleries.each do |gallery|
8
- %li
9
- %h4= link_to gallery.name, manager_gallery_path(gallery)
10
- %span
11
- = link_to '[~]', edit_manager_gallery_path( gallery )
12
- = link_to '[x]', manager_gallery_path( gallery ), :method => :delete, :data => { :confirm => 'Are you sure?' }
13
- = is_public_image_tag( gallery )
14
- <i>#{gallery.created_at.to_s.slice(0, 10)}</i>
15
-
@@ -1,20 +0,0 @@
1
-
2
- %ol.galleries-index
3
- - @galleries.each do |g|
4
- %li
5
- = link_to '[~]', edit_manager_gallery_path( g )
6
- = link_to g.name, manager_gallery_path( g.galleryname )
7
- = link_to '[+]', new_photo_path( :galleryname => g.galleryname )
8
- = link_to '[++]', add_photos_path( g.id )
9
- .delete= button_to '[x]', manager_gallery_path( g.galleryname ), :method => :delete
10
- .site= g.site.domain unless g.site.blank?
11
- .tag= g.tag.name unless g.tag.blank?
12
-
13
- %br
14
- - g.photos.fresh.each_with_index do |ph, idx|
15
- - break if idx == Photo.n_per_manager_gallery - 1
16
- = link_to image_tag( ph.photo.url( :mini ), :alt => '' ), ph.photo.url(:large), :rel => "lightbox[#{g.galleryname}]"
17
-
18
- .c
19
- - unless params[:fullindex]
20
- = paginate @galleries, :param_name => :galleries_page
@@ -1,7 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h3 New Gallery
5
- = flash[:error]
6
-
7
- = render 'manager/galleries/form', :gallery => @gallery
@@ -1,34 +0,0 @@
1
-
2
- .row
3
- .col-xs-12
4
- .center
5
- Gallery
6
- %h2
7
- #{@gallery.name} (#{@photos.length})
8
- = link_to '[~]', edit_gallery_path( @gallery )
9
- [x]
10
- = @gallery.galleryname
11
- = render 'meta', :gallery => @gallery
12
-
13
- .row
14
- %ul
15
- - @photos.each do |photo|
16
- %li.col-xs-1= image_tag photo.photo.url( :mini ), :alt => ''
17
-
18
- .spacer{ :style => 'height: 500px' }
19
-
20
- .row
21
- %ul
22
- - @photos.each do |photo|
23
- %li.col-xs-2
24
- = link_to '[x]', photo_path( :id => photo.id ), :method => :delete, :confirm => 'Are you sure?'
25
- %br
26
- = image_tag photo.photo.url( :thumb ), :alt => ''
27
-
28
- .spacer{ :style => 'height: 500px' }
29
-
30
- .center
31
- %ol
32
- - @photos.each do |photo|
33
- %li.item
34
- = image_tag photo.photo.url( :large ), :alt => ''
@@ -1,10 +0,0 @@
1
-
2
- = form_for [ :manager, newsitem ], :url => url do |f|
3
- = f.label :name
4
- = f.text_field :name
5
-
6
- = f.label :descr
7
- = f.text_area :descr, :class => :tinymce
8
-
9
- = f.submit :submit
10
-
@@ -1,17 +0,0 @@
1
-
2
- - if defined? site
3
- - edit_url = ->(n) { edit_manager_site_newsitem_path( site, n ) }
4
- - delete_url = ->(n) { manager_site_newsitem_path( site, n ) }
5
- - if defined? city
6
- - edit_url = ->(n) { edit_manager_city_newsitem_path( city, n ) }
7
- - delete_url = ->(n) { manager_city_newsitem_path( city, n ) }
8
-
9
- .row
10
- .small-12.columns
11
- %h2 Newsitems (#{newsitems.count})
12
- %ul
13
- - newsitems.each do |n|
14
- %li
15
- = link_to '[~]', edit_url.call( n )
16
- = link_to '[x]', delete_url.call( n ), :method => :delete, :data => { :confirm => 'Are you sure?' }
17
- = n.name
@@ -1,53 +0,0 @@
1
-
2
- - n ||= newsitem
3
-
4
- - if !n.photo.blank?
5
- .Nphoto.panel
6
- .the-photo
7
- - if n.photo.gallery.blank?
8
- = link_to image_tag( n.photo.photo.url(:small) ), n.photo.photo.url(:large), :rel => 'lightbox[newsitem]'
9
- - else
10
- = link_to image_tag( n.photo.photo.url(:small) ), gallery_path( n.photo.gallery.galleryname, n.photo.gallery.photos.index(n.photo) )
11
- .meta= render 'photos/meta', :photo => n.photo
12
-
13
- - if !n.report.blank?
14
- .Nreport
15
- %h3= link_to n.report.name, report_path(n.report.name_seo)
16
- .meta
17
- New Report on #{pretty_date n.report.created_at} by #{n.report.username}
18
- - unless n.report.photo.blank?
19
- .thumb= link_to image_tag(n.report.photo.photo.url(:thumb), :alt => ''), report_path( n.report.name_seo )
20
- .subhead= n.report.subhead
21
- .c
22
-
23
- - if !n.gallery.blank?
24
- .Ngallery
25
- %h3= link_to n.gallery.name, gallery_path(n.gallery.galleryname, 0)
26
- .meta
27
- #{t('newsitems.new_gallery', :username => n.gallery.username, :date => pretty_date(n.gallery.created_at))}
28
- - unless n.gallery.city.blank?
29
- = t('cities.in')
30
- = link_to n.gallery.city.name, city_path(n.gallery.city.cityname, :lang => :en)
31
- - unless n.gallery.tag.blank?
32
- = t('tags.in')
33
- = link_to n.gallery.tag.name, tag_path(n.gallery.tag.name_seo)
34
- - unless 0 == n.gallery.photos.length
35
- - n.gallery.photos.where( :is_trash => false )[0...8].each do |photo|
36
- = link_to image_tag( photo.photo.url(:thumb), :alt => photo.name ), photo.photo.url(:small), :rel => "lightbox[#{n.gallery.galleryname}]"
37
- -# .subhead= n.descr
38
- .c
39
-
40
- - if !n.video.blank?
41
- .Nvideo
42
- %h3
43
- = link_to (n.video.name.blank? ? t('videos.no_title') : n.video.name), video_path(n.video.youtube_id)
44
- = render 'application/meta', :item => n.video
45
- = render 'videos/embed_half', :video => n.video
46
- .c
47
-
48
- - if !n.descr.blank? && n.gallery.blank? && n.report.blank?
49
- .Ndescr.panel
50
- .meta= pretty_date n.created_at
51
- .subhead= simple_format n.descr
52
- .c
53
-