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
@@ -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,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,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 ]
|
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,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
|