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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ish_manager/application.js +1 -0
- data/app/assets/stylesheets/ish_manager/application.css +0 -4
- data/app/controllers/ish_manager/application_controller.rb +1 -1
- data/app/controllers/ish_manager/sites_controller.rb +0 -2
- data/app/helpers/ish_manager/images_helper.rb +1 -2
- data/app/views/ish_manager/application/_main_footer.haml +2 -6
- data/app/views/ish_manager/cities/edit.haml +3 -3
- data/app/views/ish_manager/sites/_form.haml +1 -1
- data/app/views/ish_manager/sites/edit.haml +2 -2
- data/app/views/ish_manager/sites/index.haml +7 -7
- data/app/views/layouts/ish_manager/application.haml +1 -2
- data/config/routes.rb +1 -4
- data/lib/ish_manager.rb +0 -2
- data/lib/ish_manager/version.rb +1 -1
- metadata +1 -80
- data/app/controllers/ish_manager/features_controller.rb +0 -125
- data/app/controllers/ish_manager/galleries_controller.rb +0 -86
- data/app/controllers/ish_manager/newsitems_controller.rb +0 -113
- data/app/controllers/ish_manager/photos_controller.rb +0 -55
- data/app/controllers/ish_manager/reports_controller.rb +0 -64
- data/app/controllers/ish_manager/tags_controller.rb +0 -54
- data/app/controllers/ish_manager/users_controller.rb +0 -13
- data/app/views/ish_manager/features/_form.haml +0 -61
- data/app/views/ish_manager/features/_index.haml +0 -23
- data/app/views/ish_manager/features/_item.haml +0 -14
- data/app/views/ish_manager/features/edit.haml +0 -16
- data/app/views/ish_manager/features/index.haml +0 -25
- data/app/views/ish_manager/features/new.haml +0 -11
- data/app/views/ish_manager/features/show.haml +0 -0
- data/app/views/ish_manager/galleries/#_thumbs.haml# +0 -5
- data/app/views/ish_manager/galleries/_form.haml +0 -46
- data/app/views/ish_manager/galleries/_index.haml +0 -14
- data/app/views/ish_manager/galleries/_list.haml +0 -23
- data/app/views/ish_manager/galleries/_list_short.haml +0 -9
- data/app/views/ish_manager/galleries/_menu_secondary.haml +0 -13
- data/app/views/ish_manager/galleries/_meta.haml +0 -16
- data/app/views/ish_manager/galleries/_search.haml +0 -7
- data/app/views/ish_manager/galleries/_thumbs.haml +0 -12
- data/app/views/ish_manager/galleries/_title.haml +0 -17
- data/app/views/ish_manager/galleries/all_photos.haml +0 -4
- data/app/views/ish_manager/galleries/edit.haml +0 -11
- data/app/views/ish_manager/galleries/index.haml +0 -18
- data/app/views/ish_manager/galleries/index_ajax.haml +0 -9
- data/app/views/ish_manager/galleries/index_mini.haml +0 -0
- data/app/views/ish_manager/galleries/index_short.haml +0 -19
- data/app/views/ish_manager/galleries/index_thumb.haml +0 -16
- data/app/views/ish_manager/galleries/index_title.haml +0 -15
- data/app/views/ish_manager/galleries/index_trash.haml +0 -20
- data/app/views/ish_manager/galleries/new.haml +0 -7
- data/app/views/ish_manager/galleries/show.haml +0 -34
- data/app/views/ish_manager/newsitems/_form.haml +0 -10
- data/app/views/ish_manager/newsitems/_index.haml +0 -17
- data/app/views/ish_manager/newsitems/_item.haml +0 -53
- data/app/views/ish_manager/newsitems/edit.haml +0 -14
- data/app/views/ish_manager/newsitems/new.haml +0 -16
- data/app/views/ish_manager/photos/_meta.haml +0 -9
- data/app/views/ish_manager/photos/_multinew.haml +0 -23
- data/app/views/ish_manager/photos/show.haml +0 -2
- data/app/views/ish_manager/photos/without_gallery.haml +0 -11
- data/app/views/ish_manager/reports/_form.haml +0 -42
- data/app/views/ish_manager/reports/_index.haml +0 -16
- data/app/views/ish_manager/reports/edit.haml +0 -6
- data/app/views/ish_manager/reports/index.haml +0 -26
- data/app/views/ish_manager/reports/new.haml +0 -5
- data/app/views/ish_manager/reports/show.haml +0 -18
- data/app/views/ish_manager/videos/_index.haml +0 -12
File without changes
|
@@ -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,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,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,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
|
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,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,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
|
-
|