ish_manager 0.1.8.251 → 0.1.8.255
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/bg/confectionary.png +0 -0
- data/app/assets/images/bg/gplaypattern.png +0 -0
- data/app/assets/images/bg/triangular.png +0 -0
- data/app/assets/images/bg/weather.png +0 -0
- data/app/assets/images/favicon.gif +0 -0
- data/app/assets/images/icons/10x10_red-cross.png +0 -0
- data/app/assets/images/icons/20x20/private.png +0 -0
- data/app/assets/images/icons/20x20/public2.png +0 -0
- data/app/assets/images/missing.png +0 -0
- data/app/assets/images/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/images/wait.gif +0 -0
- data/app/assets/javascripts/ish_manager/bootstrap.min.js +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_444444_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_555555_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_777777_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.js +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.min.css +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.min.js +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.structure.min.css +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.theme.min.css +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1.zip +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui.min.js +1 -1
- data/app/assets/javascripts/ish_manager/shared.js +1 -1
- data/app/assets/stylesheets/ish_manager/{application.css → application.scss} +96 -93
- data/app/assets/stylesheets/ish_manager/maps.scss +8 -1
- data/app/assets/stylesheets/ish_manager/reset.css +1 -1
- data/app/assets/stylesheets/ish_manager/trash/bootstrap.min.css +1 -1
- data/app/assets/stylesheets/ish_manager/trash/bootstrap.min.css.map +1 -1
- data/app/assets/stylesheets/ish_manager/user_profiles.scss +1 -1
- data/app/assets/stylesheets/ish_manager/utils.scss +3 -3
- data/app/assets/stylesheets/ish_manager/videos.scss +6 -0
- data/app/controllers/ish_manager/application_controller.rb +5 -5
- data/app/controllers/ish_manager/features_controller.rb +7 -7
- data/app/controllers/ish_manager/galleries_controller.rb +1 -1
- data/app/controllers/ish_manager/maps_controller.rb +4 -2
- data/app/controllers/ish_manager/markers_controller.rb +1 -7
- data/app/controllers/ish_manager/newsitems_controller.rb +57 -96
- data/app/controllers/ish_manager/photos_controller.rb +4 -4
- data/app/controllers/ish_manager/reports_controller.rb +39 -71
- data/app/controllers/ish_manager/tags_controller.rb +40 -37
- data/app/controllers/ish_manager/user_profiles_controller.rb +13 -1
- data/app/mailers/ish_manager/application_mailer.rb +1 -1
- data/app/views/ish_manager/application/_main_footer.haml +3 -3
- data/app/views/ish_manager/application/_main_header.haml +1 -1
- data/app/views/ish_manager/application/_main_header_admin.haml +34 -39
- data/app/views/ish_manager/application/_main_header_guy.haml +1 -1
- data/app/views/ish_manager/application/_main_header_manager.haml +1 -1
- data/app/views/ish_manager/cities/_form.haml +5 -5
- data/app/views/ish_manager/cities/edit_feature.haml +1 -1
- data/app/views/ish_manager/cities/index.haml +2 -2
- data/app/views/ish_manager/cities/show.haml +15 -15
- data/app/views/ish_manager/events/_form.haml +7 -7
- data/app/views/ish_manager/features/_form.haml +6 -6
- data/app/views/ish_manager/features/_index.haml +42 -28
- data/app/views/ish_manager/features/_index.haml-trash +36 -0
- data/app/views/ish_manager/features/_item.haml +1 -1
- data/app/views/ish_manager/features/index.haml +4 -25
- data/app/views/ish_manager/galleries/_form.haml +17 -17
- data/app/views/ish_manager/galleries/_index.haml +3 -4
- data/app/views/ish_manager/galleries/_index_thumbs.haml +1 -1
- data/app/views/ish_manager/galleries/_menu.haml +1 -1
- data/app/views/ish_manager/galleries/_thumbs.haml +1 -1
- data/app/views/ish_manager/galleries/_title.haml +2 -2
- data/app/views/ish_manager/galleries/show.haml +3 -3
- data/app/views/ish_manager/invoices/index.haml +1 -1
- data/app/views/ish_manager/invoices/new.haml +1 -1
- data/app/views/ish_manager/leads/new.haml +1 -1
- data/app/views/ish_manager/maps/_form.haml +20 -5
- data/app/views/ish_manager/maps/_index_item.haml +8 -0
- data/app/views/ish_manager/maps/_map_meta_row.haml +10 -9
- data/app/views/ish_manager/maps/edit.haml +2 -1
- data/app/views/ish_manager/maps/index.haml +5 -3
- data/app/views/ish_manager/maps/show.haml +1 -4
- data/app/views/ish_manager/markers/_form.haml +16 -16
- data/app/views/ish_manager/newsitems/_form.haml +45 -35
- data/app/views/ish_manager/newsitems/_index.haml +23 -34
- data/app/views/ish_manager/newsitems/_item.haml +8 -8
- data/app/views/ish_manager/newsitems/edit.haml +11 -10
- data/app/views/ish_manager/photos/_meta.haml +1 -1
- data/app/views/ish_manager/reports/_form.haml +24 -14
- data/app/views/ish_manager/reports/_index.haml +1 -1
- data/app/views/ish_manager/reports/new.haml +1 -1
- data/app/views/ish_manager/reports/show.haml +2 -1
- data/app/views/ish_manager/sites/_header.haml +8 -3
- data/app/views/ish_manager/sites/galleries.haml +1 -1
- data/app/views/ish_manager/sites/index.haml +1 -1
- data/app/views/ish_manager/sites/show.haml +4 -4
- data/app/views/ish_manager/stock_watches/_form.haml +1 -1
- data/app/views/ish_manager/tags/_features.haml +2 -2
- data/app/views/ish_manager/tags/_form.haml +12 -16
- data/app/views/ish_manager/tags/_list.haml +1 -1
- data/app/views/ish_manager/tags/_list_simple.haml +1 -1
- data/app/views/ish_manager/tags/_meta.haml +9 -0
- data/app/views/ish_manager/tags/edit.haml +1 -1
- data/app/views/ish_manager/tags/show.haml +8 -12
- data/app/views/ish_manager/user_profiles/_form.haml +42 -29
- data/app/views/ish_manager/user_profiles/index.haml +15 -10
- data/app/views/ish_manager/user_profiles/new.haml +1 -1
- data/app/views/ish_manager/venues/_form.haml +19 -16
- data/app/views/ish_manager/venues/_index.haml +1 -1
- data/app/views/ish_manager/videos/_embed.erb +1 -1
- data/app/views/ish_manager/videos/_form.haml +8 -8
- data/app/views/ish_manager/videos/_index.haml +25 -25
- data/app/views/ish_manager/videos/_index_title.haml +2 -2
- data/app/views/layouts/ish_manager/application.haml +1 -1
- data/app/views/layouts/ish_manager/application_no_materialize.haml +2 -2
- data/config/routes.rb +1 -1
- data/lib/ish_manager.rb +1 -1
- metadata +7 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
.row
|
3
|
-
.col
|
3
|
+
.col.s12
|
4
4
|
.center
|
5
5
|
%h2
|
6
6
|
= link_to gallery.name, gallery_path(gallery)
|
@@ -11,5 +11,5 @@
|
|
11
11
|
%i.material-icons visibility
|
12
12
|
- else
|
13
13
|
%i.material-icons visibility_off
|
14
|
-
|
14
|
+
slug :: #{gallery.slug}
|
15
15
|
= render 'meta', :item => gallery
|
@@ -18,7 +18,7 @@
|
|
18
18
|
.row
|
19
19
|
%ul
|
20
20
|
- @photos.each do |photo|
|
21
|
-
%li.col
|
21
|
+
%li.col.s1
|
22
22
|
= link_to image_tag(photo.photo.url( :mini ), :alt => ''), "#large_#{photo.id}"
|
23
23
|
|
24
24
|
.spacer{ :style => 'height: 500px' }
|
@@ -26,7 +26,7 @@
|
|
26
26
|
-# thumb
|
27
27
|
.row.row-thumbs
|
28
28
|
- @photos.each do |photo|
|
29
|
-
.col
|
29
|
+
.col.s3
|
30
30
|
.item
|
31
31
|
= render 'ish_manager/photos/meta_manager', photo: photo
|
32
32
|
= image_tag photo.photo.url( :thumb ), :alt => ''
|
@@ -38,4 +38,4 @@
|
|
38
38
|
.item
|
39
39
|
%a{id: "large_#{photo.id}" }
|
40
40
|
= render 'ish_manager/photos/meta_manager', photo: photo
|
41
|
-
.wrapper{ style: "background-image: url('#{photo.photo.url( :large )}')" }
|
41
|
+
.wrapper{ style: "background-image: url('#{photo.photo.url( :large )}')" }
|
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
- url = params[:action] == 'new' ? maps_path : map_path(@map.id)
|
6
6
|
|
7
|
-
= form_for @map, :html => { :multipart => true }, url: url do |f|
|
7
|
+
= form_for @map, :html => { :multipart => true, class: 'maps--form' }, url: url do |f|
|
8
8
|
- if @map.errors.any?
|
9
9
|
#error_explanation
|
10
10
|
%h2= "#{pluralize(@map.errors.count, "error")} prohibited this map from being saved:"
|
@@ -13,25 +13,25 @@
|
|
13
13
|
%li= message
|
14
14
|
|
15
15
|
.row
|
16
|
-
.col
|
16
|
+
.col.s3
|
17
17
|
.field
|
18
18
|
= f.label :name
|
19
19
|
= f.text_field :name
|
20
20
|
.field
|
21
21
|
= f.label :map_slug, "Map slug (if any)"
|
22
22
|
= f.text_field :map_slug
|
23
|
-
.col
|
23
|
+
.col.s3
|
24
24
|
.field
|
25
25
|
= f.label :slug
|
26
26
|
= f.text_field :slug
|
27
27
|
.field
|
28
28
|
= f.label :parent_slug
|
29
29
|
= f.text_field :parent_slug
|
30
|
-
.col
|
30
|
+
.col.s2
|
31
31
|
.field
|
32
32
|
= f.label :ordering_type
|
33
33
|
= f.select :ordering_type, options_for_select(::Gameui::Map::ORDERING_TYPES)
|
34
|
-
.col
|
34
|
+
.col.s4
|
35
35
|
|
36
36
|
.field
|
37
37
|
= f.label :image
|
@@ -42,5 +42,20 @@
|
|
42
42
|
= f.label :description
|
43
43
|
= f.text_area :description, class: 'tinymce'
|
44
44
|
|
45
|
+
.row
|
46
|
+
.col.s6
|
47
|
+
= f.label "Labels"
|
48
|
+
= f.text_area :labels, class: 'large'
|
49
|
+
%pre.small
|
50
|
+
description
|
51
|
+
map
|
52
|
+
markers
|
53
|
+
newsitems
|
54
|
+
.col.s6
|
55
|
+
= f.label "Config"
|
56
|
+
= f.text_area :config, class: 'large'
|
57
|
+
%pre.small
|
58
|
+
description.collapsible: bool
|
59
|
+
map_panel_type: "MapPanel" | "MapPanelNoZoom" | "ThreePanelV1"
|
45
60
|
.actions
|
46
61
|
= f.submit 'Save'
|
@@ -1,10 +1,11 @@
|
|
1
1
|
|
2
|
-
.
|
3
|
-
.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
2
|
+
.maps--map-meta-row
|
3
|
+
.flat-row
|
4
|
+
.a= link_to map.name, map_path(map)
|
5
|
+
.a= button_to '~', edit_map_path(map), method: :get
|
6
|
+
.a= button_to 'map editor', location_map_editor_path(map.id), method: :get
|
7
|
+
.a= button_to '+marker', new_map_marker_path(map), method: :get
|
8
|
+
.a= button_to '+newsitem', new_map_newsitem_path(map), method: :get
|
9
|
+
.a= link_to '[api]', api_map_path(map)
|
10
|
+
.a= button_to 'x', map_path(map), method: :delete, data: { confirm: 'Are you sure?' }
|
11
|
+
.a= map.slug
|
@@ -5,10 +5,12 @@
|
|
5
5
|
.maps-index
|
6
6
|
%h1 Maps (#{@maps.length}) #{link_to '[+]', new_map_path}
|
7
7
|
- @maps.each do |map|
|
8
|
-
|
9
|
-
|
8
|
+
= render 'index_item', map: map
|
9
|
+
|
10
10
|
|
11
11
|
%h1 All Maps (#{@all_maps.length})
|
12
12
|
%ul
|
13
13
|
- @all_maps.each do |m|
|
14
|
-
%li
|
14
|
+
%li
|
15
|
+
= link_to m.slug, map_path(m.id)
|
16
|
+
= link_to '[~]', edit_map_path(m.id)
|
@@ -32,10 +32,7 @@
|
|
32
32
|
%li <b>item_type:</b> #{marker.item_type}
|
33
33
|
|
34
34
|
%p.addToggle Newsitems (#{@map.newsitems.count}) [<>]
|
35
|
-
.newsitems
|
36
|
-
- @map.newsitems.each do |newsitem|
|
37
|
-
.item
|
38
|
-
= newsitem.inspect
|
35
|
+
= render 'ish_manager/newsitems/index', newsitems: @map.newsitems
|
39
36
|
|
40
37
|
%p.addToggle Maps (#{@maps.count}) [<>]
|
41
38
|
.maps-list
|
@@ -18,40 +18,40 @@
|
|
18
18
|
%li= message
|
19
19
|
|
20
20
|
.row
|
21
|
-
.col
|
21
|
+
.col.s1
|
22
22
|
= f.label :map
|
23
23
|
= f.text_field :map_id, value: @marker.map_id || params[:map_id]
|
24
|
-
.col
|
24
|
+
.col.s5
|
25
25
|
.field
|
26
26
|
= f.label :name
|
27
27
|
= f.text_field :name
|
28
|
-
.col
|
28
|
+
.col.s6
|
29
29
|
.field
|
30
30
|
= f.label :slug
|
31
31
|
= f.text_field :slug
|
32
32
|
.row
|
33
|
-
.col
|
33
|
+
.col.s3
|
34
34
|
.field
|
35
35
|
= f.label :image
|
36
36
|
= file_field_tag :image
|
37
37
|
.image-thumb
|
38
38
|
= image_tag(@marker.image.image.url(:thumb)) rescue nil
|
39
39
|
= image_tag('icons/10x10_red-cross.png', class: 'red-cross', style: "top: #{@marker.centerOffsetY-10}px; left: #{@marker.centerOffsetX-10}px;" )
|
40
|
-
.col
|
40
|
+
.col.s3
|
41
41
|
.field
|
42
42
|
= f.label :centerOffsetX
|
43
43
|
= f.text_field :centerOffsetX
|
44
44
|
.field
|
45
45
|
= f.label :centerOffsetY
|
46
46
|
= f.text_field :centerOffsetY
|
47
|
-
.col
|
47
|
+
.col.s3
|
48
48
|
.field
|
49
49
|
= f.label :x
|
50
50
|
= f.text_field :x
|
51
51
|
.field
|
52
52
|
= f.label :y
|
53
53
|
= f.text_field :y
|
54
|
-
.col
|
54
|
+
.col.s3
|
55
55
|
.field
|
56
56
|
= f.label :title_image
|
57
57
|
= file_field_tag :title_image
|
@@ -61,29 +61,29 @@
|
|
61
61
|
= f.label :url, "URL (if any)"
|
62
62
|
= f.text_field :url
|
63
63
|
.row
|
64
|
-
.col
|
65
|
-
.col
|
64
|
+
.col.s3
|
65
|
+
.col.s6
|
66
66
|
.field
|
67
67
|
= f.label :description
|
68
68
|
= f.text_area :description
|
69
69
|
.row
|
70
|
-
.col
|
70
|
+
.col.s4
|
71
71
|
.field
|
72
72
|
= f.label :item_type
|
73
73
|
= f.select :item_type, options_for_select( ::Gameui::Marker::ITEM_TYPES, selected: @marker.item_type )
|
74
|
-
.col
|
74
|
+
.col.s4
|
75
75
|
.field
|
76
76
|
= f.label :ordering
|
77
77
|
= f.text_field :ordering
|
78
|
-
.col
|
78
|
+
.col.s4
|
79
79
|
.row
|
80
|
-
.col
|
81
|
-
.col
|
80
|
+
.col.s3
|
81
|
+
.col.s6
|
82
82
|
.row
|
83
|
-
.col
|
83
|
+
.col.s6
|
84
84
|
.field
|
85
85
|
= f.check_box :is_active
|
86
86
|
= f.label :is_active
|
87
|
-
.col
|
87
|
+
.col.s6
|
88
88
|
.actions
|
89
89
|
= f.submit 'Save'
|
@@ -1,43 +1,53 @@
|
|
1
|
+
-#
|
2
|
+
-# ish_manager / newsitems / _form
|
3
|
+
-#
|
1
4
|
|
2
5
|
= form_for newsitem, :html => { :multipart => true } do |f|
|
3
6
|
.row
|
4
|
-
.col-sm-6{ style: 'border-right: 1px solid red;' }
|
5
|
-
%br
|
6
|
-
= f.label :map
|
7
|
-
= f.select :map_id, options_for_select( @maps_list, selected:( @map ? @map.id : params[:map_id] || nil ) )
|
8
|
-
%br
|
9
|
-
= f.label :site
|
10
|
-
= f.select :site_id, options_for_select( @sites_list, :selected => ( @site ? @site.id : params[:site_id] || nil ) )
|
11
|
-
%br
|
12
|
-
= f.label :city
|
13
|
-
= f.select :city_id, options_for_select( @cities_list, :selected => ( @city ? @city.id : params[:city_id] || nil ) )
|
14
|
-
%br
|
15
|
-
= f.label :tag
|
16
|
-
= f.select :tag_id, options_for_select( @tags_list, selected:( @tag ? @tag.id : params[:tag_id] || nil ) )
|
17
|
-
%br
|
18
|
-
= f.label :user_profile
|
19
|
-
= f.select :user_profile_id, options_for_select( @user_profiles_list, selected: ( @user_profile ? @user_profile.id : params[:user_profile_id] || nil ) )
|
20
7
|
|
21
|
-
.col
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
8
|
+
.col.s6
|
9
|
+
.field
|
10
|
+
= f.label :name
|
11
|
+
= f.text_field :name
|
12
|
+
.field
|
13
|
+
= f.label :created_at
|
14
|
+
= f.text_field :created_at
|
15
|
+
.field
|
16
|
+
= f.label :descr
|
17
|
+
= f.text_area :descr, :class => :tinymce
|
18
|
+
.field
|
19
|
+
= label_tag :photo
|
20
|
+
= file_field_tag :photo
|
21
|
+
|
22
|
+
.col.s6
|
23
|
+
.field
|
24
|
+
= f.label :map
|
25
|
+
= f.select :map_id, options_for_select( @maps_list, selected:( newsitem[:map_id] || params[:map_id] ) )
|
26
|
+
.field
|
27
|
+
= f.label :site
|
28
|
+
= f.select :site_id, options_for_select( @sites_list, :selected => ( newsitem[:site_id] || params[:site_id] ) )
|
29
|
+
.field
|
30
|
+
= f.label :city
|
31
|
+
= f.select :city_id, options_for_select( @cities_list, :selected => ( newsitem[:city_id] || params[:city_id] ) )
|
32
|
+
-# @TODO: tags must be multi-select, not 1x1
|
33
|
+
.field
|
34
|
+
= f.label :user_profile
|
35
|
+
= f.select :user_profile_id, options_for_select( @user_profiles_list, selected: ( newsitem[:user_profile_id] || params[:user_profile_id] ) )
|
36
|
+
|
37
|
+
|
28
38
|
%hr
|
29
39
|
.row
|
30
|
-
.col
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
+
.col.s6
|
41
|
+
.field
|
42
|
+
= f.label :video
|
43
|
+
= f.select :video_id, options_for_select( @videos_list, :selected => @newsitem.video_id )
|
44
|
+
.field
|
45
|
+
= f.label :gallery
|
46
|
+
= f.select :gallery_id, options_for_select( @galleries_list, :selected => @newsitem.gallery_id )
|
47
|
+
.field
|
48
|
+
= f.label :report
|
49
|
+
= f.select :report_id, options_for_select( @reports_list, :selected => @newsitem.report_id )
|
40
50
|
|
41
|
-
|
42
|
-
|
51
|
+
.col.s6
|
52
|
+
= f.submit :submit
|
43
53
|
|
@@ -1,38 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
- delete_url = ->(n) { site_newsitem_path( site, n ) }
|
5
|
-
- new_newsitem = new_site_newsitem_path( site.id )
|
6
|
-
- if defined? city
|
7
|
-
- edit_url = ->(n) { edit_city_newsitem_path( city, n ) }
|
8
|
-
- delete_url = ->(n) { city_newsitem_path( city, n ) }
|
9
|
-
- new_newsitem = new_city_newsitem_path( city.id )
|
10
|
-
- if defined?( tag ) && tag.class.name == 'Tag'
|
11
|
-
- edit_url = ->(n) { edit_tag_newsitem_path( tag, n ) }
|
12
|
-
- delete_url = ->(n) { tag_newsitem_path( tag, n ) }
|
13
|
-
- new_newsitem = new_tag_newsitem_path( tag.id )
|
1
|
+
-#
|
2
|
+
-# ish_manager / newsitems / _index
|
3
|
+
-#
|
14
4
|
|
15
5
|
- newsitems = newsitems.page( params[:newsitems_page] ).per( 10 )
|
16
6
|
|
17
7
|
.manager-newsitems--index
|
18
|
-
.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
%hr
|
8
|
+
%h5 Newsitems (#{newsitems.count}) #{link_to image_new, new_newsitem_path }
|
9
|
+
= paginate newsitems, :param_name => :newsitems_page, :views_prefix => 'ish_manager'
|
10
|
+
- newsitems.each do |n|
|
11
|
+
.card
|
12
|
+
.card-content
|
13
|
+
%ul
|
14
|
+
%li
|
15
|
+
.float-left= link_to '[~]', edit_newsitem_path(n)
|
16
|
+
.float-left= button_to '[x]', newsitem_path( n ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
17
|
+
Name: #{n.name}
|
18
|
+
%li Desc: #{n.descr}
|
19
|
+
%li Created at: #{n.created_at}
|
20
|
+
%li Report id: #{n.report_id}
|
21
|
+
%li Gallery id: #{n.gallery_id}
|
22
|
+
%li username: #{n.username}
|
23
|
+
- if n.photo
|
24
|
+
%li Photo id: #{n.photo.id}
|
25
|
+
= render 'ish_manager/newsitems/item', :newsitem => n
|
26
|
+
= paginate newsitems, :param_name => :newsitems_page, :views_prefix => 'ish_manager'
|
27
|
+
|
@@ -8,7 +8,7 @@
|
|
8
8
|
- if n.photo.gallery.blank?
|
9
9
|
= link_to image_tag( n.photo.photo.url(:small) ), n.photo.photo.url(:large), :rel => 'lightbox[newsitem]'
|
10
10
|
- else
|
11
|
-
= link_to image_tag( n.photo.photo.url(:small) ), gallery_path( n.photo.gallery.
|
11
|
+
= link_to image_tag( n.photo.photo.url(:small) ), gallery_path( n.photo.gallery.slug, n.photo.gallery.photos.index(n.photo) )
|
12
12
|
.meta= render 'ish_manager/photos/meta', :photo => n.photo
|
13
13
|
|
14
14
|
- if n.report
|
@@ -17,19 +17,19 @@
|
|
17
17
|
%li <b>Report</b> #{n.report.id}
|
18
18
|
%li Premium Tier #{n.report.premium_tier}
|
19
19
|
%h5
|
20
|
-
= link_to n.report.name, report_path(n.report.
|
20
|
+
= link_to n.report.name, report_path(n.report.slug)
|
21
21
|
= link_to "[~]", edit_report_path(n.report)
|
22
22
|
.meta
|
23
23
|
on #{pretty_date n.report.created_at} by #{n.report.username}
|
24
24
|
- unless n.report.photo.blank?
|
25
|
-
.thumb= link_to image_tag(n.report.photo.photo.url(:thumb), :alt => ''), report_path( n.report.
|
25
|
+
.thumb= link_to image_tag(n.report.photo.photo.url(:thumb), :alt => ''), report_path( n.report.slug )
|
26
26
|
.subhead= n.report.subhead
|
27
27
|
.c
|
28
28
|
|
29
29
|
- if !n.gallery.blank?
|
30
30
|
.Ngallery
|
31
31
|
|
32
|
-
%h3= link_to n.gallery.name, gallery_path(n.gallery.
|
32
|
+
%h3= link_to n.gallery.name, gallery_path(n.gallery.slug, 0)
|
33
33
|
.meta
|
34
34
|
#{t('newsitems.gallery', :username => n.gallery.username, :date => pretty_date(n.gallery.created_at))}
|
35
35
|
- unless n.gallery.city.blank?
|
@@ -38,11 +38,11 @@
|
|
38
38
|
- unless n.gallery.tags.blank?
|
39
39
|
= t('tags.in')
|
40
40
|
- n.gallery.tags do |tag|
|
41
|
-
= link_to tag, tag_path(tag.
|
41
|
+
= link_to tag, tag_path(tag.slug)
|
42
42
|
- unless 0 == n.gallery.photos.length
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
.thumbnails
|
44
|
+
- n.gallery.photos.where( :is_trash => false )[0...8].each do |photo|
|
45
|
+
= link_to image_tag( photo.photo.url(:thumb), :alt => photo.name ), photo.photo.url(:small), :rel => "lightbox[#{n.gallery.slug}]"
|
46
46
|
.c
|
47
47
|
|
48
48
|
- if n.video_id
|
@@ -4,13 +4,14 @@
|
|
4
4
|
- if defined? @site
|
5
5
|
- url = site_newsitem_path( @site, @newsitem ) if @site
|
6
6
|
|
7
|
-
.
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
.newsitems-edit
|
8
|
+
%h1 Edit Newsitem
|
9
|
+
- if @site
|
10
|
+
For site: #{@site.domain} #{@site.lang} <br />
|
11
|
+
- if @city
|
12
|
+
For city: #{@city.name} <br />
|
13
|
+
|
14
|
+
= render 'form', :newsitem => @newsitem, :url => url
|
15
|
+
|
16
|
+
.debug
|
17
|
+
= @newsitem.inspect
|
@@ -5,5 +5,5 @@
|
|
5
5
|
- unless photo.user.blank?
|
6
6
|
By #{ link_to photo.user.username, user_path(photo.user.username) }
|
7
7
|
- unless photo.gallery.blank?
|
8
|
-
In #{ link_to photo.gallery.name, gallery_path(photo.gallery.
|
8
|
+
In #{ link_to photo.gallery.name, gallery_path(photo.gallery.slug, 0) }
|
9
9
|
= photo.name unless photo.name.blank?
|
@@ -1,25 +1,35 @@
|
|
1
|
+
-#
|
2
|
+
-# ish_manager / reports / _form
|
3
|
+
-#
|
1
4
|
|
2
5
|
- url ||= reports_path
|
3
6
|
= form_for report, :url => url, :html => { :multipart => true } do |f|
|
4
|
-
|
5
7
|
- if report.errors.any?
|
6
8
|
#error_explanation
|
7
9
|
%h3= t('e.there_are_errors')
|
8
|
-
|
9
10
|
%ul
|
10
11
|
- report.errors.full_messages.each do |msg|
|
11
12
|
%li= msg
|
13
|
+
|
12
14
|
.row
|
13
|
-
.col
|
15
|
+
.col.s4
|
14
16
|
.field
|
15
|
-
= f.label :"Name
|
17
|
+
= f.label :"Name"
|
16
18
|
= f.text_field :name, :class=> 'form-control', :placeholder => "name of report", :type => "text"
|
17
|
-
= f.text_field :
|
19
|
+
-# = f.text_field :slug, :class=> 'form-control', :placeholder => "name seo", :type => "text"
|
18
20
|
|
19
|
-
.col
|
21
|
+
.col.s4
|
20
22
|
.field
|
21
23
|
= f.label :subhead
|
22
24
|
= f.text_area :subhead, :class => 'form-control', :rows => "5", :style=> "resize: vertical;"
|
25
|
+
.field
|
26
|
+
= f.label "Item Type: default, longscroll"
|
27
|
+
= f.text_field :item_type
|
28
|
+
|
29
|
+
.col.s4
|
30
|
+
.field
|
31
|
+
= f.label :created_at
|
32
|
+
= f.text_field :created_at
|
23
33
|
|
24
34
|
.field
|
25
35
|
= f.label :Description
|
@@ -28,7 +38,7 @@
|
|
28
38
|
%br
|
29
39
|
|
30
40
|
.row
|
31
|
-
.col
|
41
|
+
.col.s4
|
32
42
|
.field
|
33
43
|
%label City
|
34
44
|
= select :report, :city_id, @cities_list, :class=>"btn"
|
@@ -36,30 +46,30 @@
|
|
36
46
|
= f.label :Coordinates
|
37
47
|
.panel.panel-default
|
38
48
|
.panel-body
|
39
|
-
.col
|
49
|
+
.col.s6
|
40
50
|
.form-group
|
41
51
|
%label{} X-coordinate
|
42
52
|
= f.text_field :x, :placeholder => "x", :type => "text", :class=>"form-control"
|
43
53
|
|
44
|
-
.col
|
54
|
+
.col.s6
|
45
55
|
.form-group
|
46
56
|
%label{} Y-coordinate
|
47
57
|
= f.text_field :y, :placeholder => "y", :type => "text", :class=>"form-control"
|
48
|
-
.col
|
58
|
+
.col.s4
|
49
59
|
.field
|
50
60
|
= f.label :premium_tier
|
51
61
|
= f.number_field :premium_tier
|
52
62
|
.field
|
53
63
|
= f.label :user_profile
|
54
64
|
= select :report, :user_profile_id, @user_profiles_list
|
55
|
-
.col
|
65
|
+
.col.s4
|
56
66
|
unused
|
57
67
|
|
58
68
|
.row
|
59
|
-
.col
|
69
|
+
.col.s6
|
60
70
|
= f.label :site
|
61
71
|
= f.select :site_id, options_for_select(@sites_list, :selected => report.site_id || params[:site_id] )
|
62
|
-
.col
|
72
|
+
.col.s6
|
63
73
|
= f.label :tags
|
64
74
|
= f.select :tag_ids, @tags_list, {}, { multiple: true }
|
65
75
|
|
@@ -68,7 +78,7 @@
|
|
68
78
|
%h3.panel-title Upload File
|
69
79
|
.panel-body
|
70
80
|
.row
|
71
|
-
.col
|
81
|
+
.col.s6.col.soffset-3
|
72
82
|
%button.btn.btn-primary.btn-lg.btn-block{:type => "button", :onClick => "upload()"} Upload File
|
73
83
|
= file_field_tag :photo, :style => "display:none", :id=>"photo"
|
74
84
|
.div.center
|
@@ -9,7 +9,8 @@
|
|
9
9
|
.meta
|
10
10
|
-# By #{link_to @report.user_profile.username, user_path( @report.user )}
|
11
11
|
On #{@report.created_at.to_s.slice(0, 10)}
|
12
|
-
|
12
|
+
- if @report.site
|
13
|
+
In #{link_to "http://#{@report.site.domain}/#{@report.site.lang}", site_path( @report.site )}
|
13
14
|
-# - if @report.tag
|
14
15
|
-# Tagged #{link_to @report.tag.name, manager_tag_path( @report.tag )}
|
15
16
|
- if @report.city
|