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,14 +0,0 @@
1
-
2
- - if defined? @city
3
- - url = manager_city_newsitem_path( @city, @newsitem ) if @city
4
- - if defined? @site
5
- - url = manager_site_newsitem_path( @site, @newsitem ) if @site
6
-
7
- .row
8
- .small-12.columns
9
- %h1 Edit this newsitem
10
- For site: #{@sity} <br />
11
- city: #{@city} <br />
12
- id: #{@newsitem.id}
13
-
14
- = render 'form', :newsitem => @newsitem, :url => url
@@ -1,16 +0,0 @@
1
-
2
- - if @city
3
- - url = manager_city_newsitems_path( :city_id => @city.id )
4
- - if @site
5
- - url = manager_site_newsitems_path( :site_id => @site.id )
6
-
7
- .row
8
- .small-12.columns
9
- %h1
10
- New Newsitem
11
- - if @site
12
- For Site #{@site.domain}
13
- - if @city
14
- For City #{@city.name}
15
- = render 'form', :newsitem => @newsitem, :url => url
16
-
@@ -1,9 +0,0 @@
1
-
2
- .photos-meta.row
3
- .meta
4
- On #{ pretty_date photo.created_at }
5
- - unless photo.user.blank?
6
- By #{ link_to photo.user.username, user_path(photo.user.username) }
7
- - unless photo.gallery.blank?
8
- In #{ link_to photo.gallery.name, gallery_path(photo.gallery.galleryname, 0) }
9
- = photo.name unless photo.name.blank?
@@ -1,23 +0,0 @@
1
-
2
- .photos--multinew
3
- .row
4
- .small-12.columns
5
- %h3.center Add Photos
6
- %ul{ :id => 'photos', :class => 'thumbnails', 'data-json-url' => manager_j_gallery_path( gallery.id ) }
7
- %input{ :id => 'fileupload', :type => 'file', :name => 'photo[photo]', 'data-url' => manager_photos_multiadd_path( gallery.galleryname ), :multiple => '' }
8
-
9
- %script{:src => "//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"}
10
- %script{:src => "/js/jquery.ui.widget.js"}
11
- %script{:src => "/js/jquery.iframe-transport.js"}
12
- %script{:src => "/js/jquery.fileupload.js"}
13
- :javascript
14
- $(function () {
15
- $('#fileupload').fileupload({
16
- dataType: 'json',
17
- done: function (e, data) {
18
- $.each(data.result.files, function (index, file) {
19
- $('<p/>').text(file.name).appendTo(document.body);
20
- });
21
- }
22
- });
23
- });
@@ -1,2 +0,0 @@
1
-
2
- = image_tag @photo.photo.url( :small )
@@ -1,11 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h5 Photos without gallery
5
-
6
- - @photos.each do |photo|
7
- .box.left
8
- = image_tag photo.photo.url(:thumb)
9
- = link_to '[x]', manager_photo_path( photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
10
-
11
- .c
@@ -1,42 +0,0 @@
1
-
2
- - url ||= manager_reports_path
3
- = form_for @report, :url => url, :html => { :multipart => true } do |f|
4
-
5
- - if @report.errors.any?
6
- #error_explanation
7
- %h3= t('e.there_are_errors')
8
-
9
- %ul
10
- - @report.errors.full_messages.each do |msg|
11
- %li= msg
12
-
13
- .name= f.text_field :name
14
- .subhead= f.text_area :subhead
15
- .descr= f.text_area :descr, :class => 'tinymce'
16
-
17
- .row
18
- .large-6.columns
19
- = f.label :city_id
20
- = select :report, :city_id, @cities_list
21
-
22
- = f.label :coords
23
- = f.text_field :x
24
- = f.text_field :y
25
-
26
- = f.label :site
27
- = select :report, :site_id, @sites_list
28
-
29
- .large-6.columns
30
- = f.label :tag_id
31
- = select :report, :tag_id, @tags_list
32
-
33
- .check
34
- = f.label :is_public
35
- = f.check_box :is_public
36
-
37
- = f.file_field :photo
38
-
39
- = recaptcha_tags
40
-
41
- = f.submit
42
-
@@ -1,16 +0,0 @@
1
-
2
- .manager-reports--index
3
- .row
4
- .large-12.columns
5
- %h2 Reports (#{reports.length})
6
-
7
- = paginate reports, :param_name => :reports_page
8
- %ol
9
- - reports.each do |report|
10
- %li
11
- = link_to '[~]', edit_manager_report_path( report )
12
- = link_to '[x]', manager_report_path( report ), :method => :delete, :data => { :confirm => 'Are you sure?' }
13
- = link_to report.name, manager_report_path( report )
14
- - if report.subhead && report.subhead.length > 3
15
- .subhead= report.subhead
16
- = paginate reports, :param_name => :reports_page
@@ -1,6 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h1= t 'reports.edit'
5
-
6
- = render 'form', :url => manager_report_path(@report.id)
@@ -1,26 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h3
5
- Reports Index (#{@reports.length})
6
- - if @site
7
- In #{@site.domain}/#{@site.lang}
8
- = paginate @reports, :param_name => :reports_page
9
-
10
- %ol
11
- - @reports.each do |report|
12
- %li
13
- = link_to '[~]', edit_report_path( report )
14
- = link_to '[x]', report_path( report ), :method => :delete, :data => { :confirm => 'Are you sure?' }
15
- - if report.is_public
16
- [public&nbsp;]
17
- - else
18
- [private]
19
- = link_to report.name, report_path( report )
20
- %br
21
- .gray
22
- - if report.site
23
- Site #{report.site.domain}/#{report.site.lang}
24
-
25
- = paginate @reports, :param_name => :reports_page
26
-
@@ -1,5 +0,0 @@
1
-
2
- .row
3
- .large-12.columns
4
- %h2= t('reports.new')
5
- = render 'reports/form'
@@ -1,18 +0,0 @@
1
-
2
- .manager-reports-show
3
- .row
4
- .large-12.columns
5
- %h1= @report.name
6
-
7
- .meta
8
- -# By #{link_to @report.user_profile.username, user_path( @report.user )}
9
- On #{@report.created_at.to_s.slice(0, 10)}
10
- In #{link_to "http://#{@report.site.domain}/#{@report.site.lang}", site_path( @report.site )}
11
- -# - if @report.tag
12
- -# Tagged #{link_to @report.tag.name, manager_tag_path( @report.tag )}
13
- - if @report.city
14
- In #{link_to @report.city.name, city_path( @report.city )}
15
-
16
- - if @report.subhead.length > 3
17
- .subhead= @report.subhead
18
- .descr= raw @report.descr
@@ -1,12 +0,0 @@
1
-
2
- .manager-videos--index
3
- .row
4
- .large-12.columns
5
- %h2 Videos (#{videos.length})
6
-
7
- = paginate videos, :param_name => :videos_page
8
- %ol
9
- - videos.each do |video|
10
- %li= video.name
11
- = paginate videos, :param_name => :videos_page
12
-