ish_manager 0.1.8.314 → 0.1.8.316
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ish_manager/application.js +13 -39
- data/app/assets/stylesheets/ish_manager/application.scss +107 -155
- data/app/assets/stylesheets/ish_manager/galleries.scss +30 -18
- data/app/assets/stylesheets/ish_manager/maps.scss +45 -32
- data/app/assets/stylesheets/ish_manager/markers.scss +8 -0
- data/app/assets/stylesheets/ish_manager/pagination.scss +54 -0
- data/app/assets/stylesheets/ish_manager/photos.scss +39 -2
- data/app/assets/stylesheets/ish_manager/{tags.css → tags.scss} +0 -0
- data/app/assets/stylesheets/ish_manager/{bootstrap.css → trash/bootstrap.css} +0 -0
- data/app/assets/stylesheets/ish_manager/{materialize.css → trash/materialize.css} +0 -0
- data/app/assets/stylesheets/ish_manager/{reset.css → trash/reset.css} +0 -0
- data/app/controllers/ish_manager/leads_controller.rb +0 -1
- data/app/controllers/ish_manager/maps_controller.rb +0 -2
- data/app/controllers/ish_manager/markers_controller.rb +0 -2
- data/app/controllers/ish_manager/meetings_controller.rb +0 -2
- data/app/controllers/ish_manager/newsitems_controller.rb +4 -5
- data/app/helpers/ish_manager/application_helper.rb +12 -1
- data/app/views/ish_manager/application/_debug.haml +8 -6
- data/app/views/ish_manager/application/_main_footer.haml +7 -6
- data/app/views/ish_manager/application/_main_header.haml +1 -1
- data/app/views/ish_manager/application/_main_header_admin.haml +3 -7
- 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/application/_search.haml +5 -10
- data/app/views/ish_manager/application/home.haml +8 -7
- data/app/views/ish_manager/galleries/_index.haml +19 -19
- data/app/views/ish_manager/galleries/_menu.haml +12 -14
- data/app/views/ish_manager/galleries/_menu_secondary.haml +12 -0
- data/app/views/ish_manager/galleries/_title.haml +12 -14
- data/app/views/ish_manager/galleries/{index_ajax.haml → index_ajax.haml-trash} +0 -0
- data/app/views/ish_manager/galleries/show.haml +24 -33
- data/app/views/ish_manager/markers/_index.haml +1 -1
- data/app/views/ish_manager/newsitems/_form.haml +3 -0
- data/app/views/ish_manager/photos/_index_thumbs.haml +7 -0
- data/app/views/ish_manager/photos/_meta_manager.haml +5 -5
- data/app/views/ish_manager/photos/_multinew.haml +4 -6
- data/app/views/ish_manager/videos/_index.haml +1 -1
- data/app/views/layouts/ish_manager/application.haml +53 -0
- data/app/views/layouts/ish_manager/{application2.haml → application.haml-trash} +0 -0
- metadata +12 -12
- data/app/assets/stylesheets/ish_manager/trash/bootstrap.min.css +0 -6
- data/app/assets/stylesheets/ish_manager/trash/bootstrap.min.css.map +0 -1
- data/app/views/ish_manager/galleries/_index_thumbs.haml +0 -1
- data/app/views/layouts/ish_manager/application.haml +0 -1
- data/app/views/layouts/ish_manager/application_no_material.haml +0 -53
@@ -1,12 +1,49 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
.photos--index-mini {
|
3
|
+
}
|
4
|
+
.photos--index-thumbs {
|
5
|
+
.item {
|
6
|
+
border: 1px solid red;
|
7
|
+
padding: 10px;
|
8
|
+
|
9
|
+
max-width: Min(125px, 30vw);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
.photos--meta-manager {
|
3
13
|
display: flex;
|
4
14
|
justify-content: space-between;
|
5
15
|
|
16
|
+
.right-hand {
|
17
|
+
text-align: right;
|
18
|
+
}
|
6
19
|
.right-hand a {
|
20
|
+
|
7
21
|
}
|
8
|
-
.right-hand a:not(:
|
22
|
+
.right-hand a:not(:first-child):before {
|
9
23
|
content: "|";
|
10
24
|
padding: 0 10px 0 15px;
|
11
25
|
}
|
12
26
|
}
|
27
|
+
.photos--multinew {
|
28
|
+
border: 1px dashed #356;
|
29
|
+
display: inline-block;
|
30
|
+
margin-bottom: 2em;
|
31
|
+
padding: 10px;
|
32
|
+
|
33
|
+
input[type='file'] {
|
34
|
+
overflow-x: auto;
|
35
|
+
max-width: Max( 300px, 50vw );
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.row-deleted {
|
40
|
+
.goto,
|
41
|
+
.x {
|
42
|
+
display: none;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
.row-mini {
|
46
|
+
.flex-row {
|
47
|
+
margin-bottom: 500px;
|
48
|
+
}
|
49
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -4,8 +4,6 @@ class IshManager::MapsController < IshManager::ApplicationController
|
|
4
4
|
before_action :set_map, only: [ :destroy, :edit, :export, :map_editor, :show, :update, ] # alphabetized
|
5
5
|
before_action :set_lists
|
6
6
|
|
7
|
-
layout 'ish_manager/application_no_material', only: %w| index |
|
8
|
-
|
9
7
|
# alphabetized
|
10
8
|
|
11
9
|
def create
|
@@ -5,8 +5,6 @@ class IshManager::MarkersController < IshManager::ApplicationController
|
|
5
5
|
before_action :set_marker, only: [ :edit, :update ]
|
6
6
|
before_action :set_lists
|
7
7
|
|
8
|
-
layout 'ish_manager/application_no_material'
|
9
|
-
|
10
8
|
def new
|
11
9
|
authorize! :new_marker, ::Gameui::Map
|
12
10
|
@marker = ::Gameui::Marker.new
|
@@ -1,6 +1,5 @@
|
|
1
1
|
class IshManager::NewsitemsController < IshManager::ApplicationController
|
2
2
|
before_action :set_lists
|
3
|
-
layout 'ish_manager/application2'
|
4
3
|
|
5
4
|
## Alphabetized : )
|
6
5
|
|
@@ -20,7 +19,10 @@ class IshManager::NewsitemsController < IshManager::ApplicationController
|
|
20
19
|
authorize! :create_newsitem, @resource
|
21
20
|
|
22
21
|
if params[:photo]
|
23
|
-
photo = Photo.create :photo => params[:photo],
|
22
|
+
photo = Photo.create( :photo => params[:photo],
|
23
|
+
:user_profile => current_user.profile,
|
24
|
+
descr: params[:descr],
|
25
|
+
subhead: params[:subhead] )
|
24
26
|
@newsitem.photo = photo
|
25
27
|
end
|
26
28
|
|
@@ -57,8 +59,6 @@ class IshManager::NewsitemsController < IshManager::ApplicationController
|
|
57
59
|
authorize! :destroy, @newsitem
|
58
60
|
|
59
61
|
if @newsitem.destroy
|
60
|
-
# City.find(@newsitem.city_id).touch if @newsitem.city_id
|
61
|
-
# Site.find(@newsitem.site_id).touch if @newsitem.site_id
|
62
62
|
Tag.find(@newsitem.tag_id).touch if @newsitem.tag_id
|
63
63
|
Map.find(@newsitem.map_id).touch if @newsitem.map_id
|
64
64
|
|
@@ -105,7 +105,6 @@ class IshManager::NewsitemsController < IshManager::ApplicationController
|
|
105
105
|
@newsitem.tag = @tag
|
106
106
|
end
|
107
107
|
authorize! :new, @newsitem
|
108
|
-
render layout: 'ish_manager/application_no_material'
|
109
108
|
end
|
110
109
|
|
111
110
|
def update
|
@@ -1,6 +1,17 @@
|
|
1
1
|
module IshManager
|
2
2
|
module ApplicationHelper
|
3
3
|
|
4
|
+
def current_layout
|
5
|
+
layout = controller.class.send(:_layout)
|
6
|
+
if layout.nil?
|
7
|
+
'<default>'
|
8
|
+
elsif layout.instance_of? String or layout.instance_of? Symbol
|
9
|
+
layout
|
10
|
+
else
|
11
|
+
File.basename(layout.identifier).split('.').first
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
4
15
|
def pretty_date input
|
5
16
|
return input.strftime("%Y-%m-%d")
|
6
17
|
end
|
@@ -51,7 +62,7 @@ module IshManager
|
|
51
62
|
end
|
52
63
|
|
53
64
|
def api_marker_path marker
|
54
|
-
"/api/markers/view/#{marker.
|
65
|
+
"/api/markers/view/#{marker.id}"
|
55
66
|
end
|
56
67
|
|
57
68
|
end
|
@@ -1,7 +1,9 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
%
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
%i.fa.fa-compress.collapse-expand#debug
|
3
|
+
.application--debug
|
4
|
+
%ul.browser-default
|
5
|
+
%li= params.inspect
|
6
|
+
%li= "Cached?: #{Rails.application.config.action_controller.perform_caching}"
|
7
|
+
%li Cache key: #{@cache_key.inspect}
|
8
|
+
%li Layout: #{current_layout}
|
9
|
+
%li= "Env: #{Rails.env}"
|
@@ -2,23 +2,24 @@
|
|
2
2
|
.manager--main-footer
|
3
3
|
.container
|
4
4
|
|
5
|
-
%i.fa.fa-compress.collapse-expand#
|
5
|
+
%i.fa.fa-compress.collapse-expand#mainFooter
|
6
6
|
.a
|
7
7
|
.row
|
8
8
|
.col-sm-6
|
9
9
|
- if @current_user
|
10
|
-
%
|
11
|
-
|
12
|
-
%li >[ #{@current_user.profile&.role_name} ]<
|
10
|
+
%div >[ #{@current_user.email} ]<
|
11
|
+
%div >[ #{@current_user.profile&.role_name} ]<
|
13
12
|
- else
|
14
13
|
Please log in
|
15
14
|
= link_to '[+]', main_app.new_user_session_path
|
16
15
|
|
17
16
|
.col-sm-4
|
18
|
-
%br
|
19
17
|
\~__^
|
20
18
|
= @version
|
21
19
|
-# <pre>#{@changelog}</pre>
|
22
20
|
|
23
|
-
.col-sm
|
21
|
+
.col-sm-2
|
24
22
|
= button_to 'Logout', main_app.destroy_user_session_path, :method => :delete
|
23
|
+
|
24
|
+
.c
|
25
|
+
= render 'debug' if !Rails.env.production?
|
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
.application--main-header-admin.
|
3
|
+
.application--main-header-admin.main-header{ class: "#{ENV['RAILS_ENV']} #{ENV['RAILS_ENV'][0...3]=="dev" ? "development" : ''}" }
|
4
4
|
.container
|
5
5
|
%i.fa.fa-compress.collapse-expand#collapseHeader
|
6
6
|
.content
|
7
7
|
%ul
|
8
|
-
%li{ :class => params[:controller] == 'ish_manager/maps'
|
8
|
+
%li{ :class => params[:controller] == 'ish_manager/maps' ? 'active' : '' }
|
9
9
|
= link_to 'Maps', maps_path
|
10
10
|
.inline-search
|
11
11
|
= form_tag maps_path, method: :get do
|
@@ -13,11 +13,7 @@
|
|
13
13
|
= link_to '[+]', new_map_path
|
14
14
|
|
15
15
|
%li{ :class => params[:controller] == 'ish_manager/galleries' ? 'active' : '' }
|
16
|
-
=
|
17
|
-
.inline-search
|
18
|
-
= form_tag galleries_path, method: :get do
|
19
|
-
= text_field_tag :q
|
20
|
-
= link_to '[+]', new_gallery_path
|
16
|
+
= render 'ish_manager/galleries/menu'
|
21
17
|
%li{ :class => params[:controller] == 'ish_manager/reports' ? 'active' : '' }
|
22
18
|
= link_to 'Reports', reports_path
|
23
19
|
.inline-search
|
@@ -1,11 +1,6 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
=
|
6
|
-
|
7
|
-
.hide [x]
|
8
|
-
= text_field_tag 'q', nil, :placeholder => 'Search'
|
9
|
-
.actions.hide
|
10
|
-
= submit_tag 'Search'
|
11
|
-
.c
|
2
|
+
.application--search
|
3
|
+
= form_tag path, :method => :get, :class => :search do
|
4
|
+
.field.search_words
|
5
|
+
= text_field_tag 'q', nil, :placeholder => 'Search'
|
6
|
+
.c
|
@@ -1,9 +1,10 @@
|
|
1
1
|
|
2
|
-
|
2
|
+
.application-home
|
3
|
+
Welcome home! Your role is `#{current_user.profile.role_name}`.
|
3
4
|
|
4
|
-
.bordered
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
.bordered-card
|
6
|
+
= form_tag "https://www.cgtrader.com/free-3d-models", method: :get do
|
7
|
+
%p Search CGTrader:
|
8
|
+
= hidden_field_tag "polygons", "lt_5k"
|
9
|
+
= text_field_tag "keywords"
|
10
|
+
= submit_tag 'search'
|
@@ -1,38 +1,38 @@
|
|
1
1
|
-#
|
2
2
|
-# ish_manager / galleries / _index.haml
|
3
3
|
-#
|
4
|
+
-# _vp_ 2022-09-25 :: Small styling revision
|
5
|
+
-#
|
4
6
|
|
5
7
|
- n_thumbs ||= 8
|
6
|
-
- param_name ||= :galleries_page
|
7
8
|
|
8
|
-
.galleries--index
|
9
|
+
.galleries--index
|
9
10
|
|
10
|
-
= render 'ish_manager/galleries/menu'
|
11
|
+
= render 'ish_manager/galleries/menu', count: @galleries.count
|
11
12
|
|
12
13
|
- if @galleries.length > 0
|
13
14
|
|
14
15
|
- if @galleries.respond_to? :total_pages
|
15
|
-
= paginate @galleries, :param_name =>
|
16
|
+
= paginate @galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
|
16
17
|
|
17
18
|
.row
|
18
19
|
- @galleries.each do |g|
|
19
|
-
.col.
|
20
|
-
.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
-
|
30
|
-
.
|
31
|
-
|
32
|
-
= link_to image_tag(photo.photo.url(:thumb), :alt => g.name), gallery_path(g.slug)
|
20
|
+
.col-sm-12.col-md-6
|
21
|
+
.bordered-card
|
22
|
+
%h5
|
23
|
+
= link_to '[~]', edit_gallery_path( g )
|
24
|
+
= link_to g.name, gallery_path(g.slug)
|
25
|
+
(#{g.photos.length})
|
26
|
+
= render 'meta', item: g
|
27
|
+
- if g.photos.length == 0
|
28
|
+
No Photos
|
29
|
+
- else
|
30
|
+
.flex-row
|
31
|
+
- g.photos.limit( n_thumbs ).each do |photo|
|
32
|
+
= link_to image_tag(photo.photo.url(:thumb), :alt => g.name), gallery_path(g.slug)
|
33
33
|
|
34
34
|
- if @galleries.respond_to? :total_pages
|
35
|
-
= paginate @galleries, :param_name =>
|
35
|
+
= paginate @galleries, :param_name => :galleries_page, :views_prefix => 'ish_manager'
|
36
36
|
|
37
37
|
- else
|
38
38
|
%h5 No Galleries
|
@@ -1,16 +1,14 @@
|
|
1
1
|
|
2
|
-
.
|
3
|
-
.row
|
4
|
-
.col.s12.col.m12
|
5
|
-
%h1.center Galleries #{params[:action]} (#{@galleries.count}) #{link_to '[+]', new_gallery_path}
|
6
|
-
= render 'search', path: galleries_path
|
7
|
-
%ul.menu-secondary
|
8
|
-
%li{ class: "#{params[:render_type] == 'index_titles' ? 'active' : ''}" }
|
9
|
-
= link_to 'titles list', galleries_index_titles_path( :render_type => Gallery::RENDER_THUMBS )
|
10
|
-
%li{ class: "#{params[:render_type] == 'index_thumbs' ? 'active' : ''}" }
|
11
|
-
= link_to 'thumbs list', galleries_index_thumbs_path( :render_type => Gallery::RENDER_TITLES )
|
12
|
-
%li{ class: "#{params[:render_type] == 'index_thumbs' ? 'active' : ''}" }
|
13
|
-
= link_to 'shared with me (thumbs)', galleries_shared_path( :render_type => Gallery::RENDER_THUMBS )
|
14
|
-
%li{ class: "#{params[:render_type] == 'index_titles' ? 'active' : ''}" }
|
15
|
-
= link_to 'shared with me (titles)', galleries_shared_titles_path
|
2
|
+
.galleries--menu
|
16
3
|
|
4
|
+
-# .title Galleries (#{@galleries.count}) #{link_to '[+]', new_gallery_path}
|
5
|
+
= link_to 'Galleries', galleries_path
|
6
|
+
- if defined?(count)
|
7
|
+
(#{count})
|
8
|
+
|
9
|
+
-# = render 'search', path: galleries_path
|
10
|
+
.inline-search
|
11
|
+
= form_tag galleries_path, method: :get do
|
12
|
+
= text_field_tag :q
|
13
|
+
|
14
|
+
= link_to '[+]', new_gallery_path
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
.galleries--menu-secondary
|
3
|
+
%ul
|
4
|
+
%li{ class: "#{params[:render_type] == 'index_titles' ? 'active' : ''}" }
|
5
|
+
= link_to 'titles list', galleries_index_titles_path( :render_type => Gallery::RENDER_THUMBS )
|
6
|
+
%li{ class: "#{params[:render_type] == 'index_thumbs' ? 'active' : ''}" }
|
7
|
+
= link_to 'thumbs list', galleries_index_thumbs_path( :render_type => Gallery::RENDER_TITLES )
|
8
|
+
%li{ class: "#{params[:render_type] == 'index_thumbs' ? 'active' : ''}" }
|
9
|
+
= link_to 'shared with me (thumbs)', galleries_shared_path( :render_type => Gallery::RENDER_THUMBS )
|
10
|
+
%li{ class: "#{params[:render_type] == 'index_titles' ? 'active' : ''}" }
|
11
|
+
= link_to 'shared with me (titles)', galleries_shared_titles_path
|
12
|
+
|
@@ -1,15 +1,13 @@
|
|
1
1
|
|
2
|
-
.
|
3
|
-
|
4
|
-
.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
slug :: #{gallery.slug}
|
15
|
-
= render 'meta', :item => gallery
|
2
|
+
.galleries--title
|
3
|
+
%h2
|
4
|
+
= link_to gallery.name, gallery_path(gallery)
|
5
|
+
(#{gallery.photos.length})
|
6
|
+
= link_to '[~]', edit_gallery_path( gallery )
|
7
|
+
[x]
|
8
|
+
- if gallery.is_public && !gallery.is_trash && !gallery.is_done
|
9
|
+
%i.material-icons visibility
|
10
|
+
- else
|
11
|
+
%i.material-icons visibility_off
|
12
|
+
slug :: #{gallery.slug}
|
13
|
+
= render 'meta', :item => gallery
|
File without changes
|
@@ -1,41 +1,32 @@
|
|
1
1
|
-#
|
2
|
-
-# ish_manager / galleries / show
|
2
|
+
-# ish_manager / galleries / show
|
3
3
|
-#
|
4
4
|
|
5
|
-
|
6
|
-
= render '
|
5
|
+
.galleries-show
|
6
|
+
= render 'title', :gallery => @gallery
|
7
7
|
|
8
|
-
|
9
|
-
.row
|
10
|
-
%p.addToggle Deleted [<>]
|
11
|
-
.a
|
12
|
-
%ul.inline
|
13
|
-
- @deleted_photos.each do |ph|
|
14
|
-
%li.border-red= image_tag ph.photo.url( :mini )
|
15
|
-
%hr
|
8
|
+
= render 'ish_manager/photos/multinew', :gallery => @gallery
|
16
9
|
|
17
|
-
|
18
|
-
.
|
19
|
-
|
20
|
-
- @photos.each do |photo|
|
21
|
-
%li.col.s1
|
22
|
-
= link_to image_tag(photo.photo.url( :mini ), :alt => ''), "#large_#{photo.id}"
|
10
|
+
.row.row-deleted
|
11
|
+
%p.collapse-expand#rowDeleted Deleted
|
12
|
+
= render 'ish_manager/photos/index_thumbs', photos: @deleted_photos
|
23
13
|
|
24
|
-
.
|
14
|
+
.row.row-mini
|
15
|
+
%p.collapse-expand#rowMinis Mini's
|
16
|
+
.flex-row
|
17
|
+
- @photos.each do |photo|
|
18
|
+
.item
|
19
|
+
= link_to image_tag(photo.photo.url( :mini ), :alt => ''), "#large_#{photo.id}"
|
25
20
|
|
26
|
-
|
27
|
-
.
|
28
|
-
|
29
|
-
.col.s3
|
30
|
-
.item
|
31
|
-
= render 'ish_manager/photos/meta_manager', photo: photo
|
32
|
-
= image_tag photo.photo.url( :thumb ), :alt => ''
|
33
|
-
.spacer{ :style => 'height: 100px' }
|
21
|
+
.row.row-thumbs
|
22
|
+
%p.collapse-expand#rowThumbs Thumbs
|
23
|
+
= render 'ish_manager/photos/index_thumbs', photos: @photos
|
34
24
|
|
35
|
-
|
36
|
-
.
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
25
|
+
.row.row-large
|
26
|
+
%p.collapse-expand#rowLarge Large
|
27
|
+
.a
|
28
|
+
- @photos.each do |photo|
|
29
|
+
.item
|
30
|
+
%a{id: "large_#{photo.id}" }
|
31
|
+
= render 'ish_manager/photos/meta_manager', photo: photo
|
32
|
+
.wrapper{ style: "background-image: url('#{photo.photo.url( :large )}')" }
|
@@ -12,7 +12,7 @@
|
|
12
12
|
.a= button_to 'x', marker_path(marker), method: :delete, data: { confirm: 'Are you sure?' }
|
13
13
|
.flex-row
|
14
14
|
.a= link_to '[api]', api_marker_path(marker)
|
15
|
-
.a= link_to '[this map]', edit_map_path(marker.slug)
|
15
|
+
.a= link_to '[this map]', edit_map_path(marker.destination.slug)
|
16
16
|
.hide
|
17
17
|
%ul.bullets
|
18
18
|
%li <b>item_type:</b> #{marker.item_type}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
= button_to '[x]', photo_path( :id => photo.id ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
2
|
+
.photos--meta-manager
|
3
|
+
= button_to '[x]', photo_path( :id => photo.id ), class: 'x', :method => :delete, :data => { :confirm => 'Are you sure?' }
|
4
4
|
.right-hand
|
5
|
-
= link_to "
|
6
|
-
= link_to "
|
7
|
-
= link_to "
|
5
|
+
= link_to "Goto", "#large_#{photo.id}", class: 'goto'
|
6
|
+
= link_to "Lg", photo.photo.url(:large)
|
7
|
+
= link_to "Orig", photo.photo.url(:original)
|
@@ -1,7 +1,5 @@
|
|
1
1
|
|
2
|
-
.
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
%ul{ :id => 'photos', :class => 'thumbnails' }
|
7
|
-
%input{ :id => 'fileupload', :type => 'file', :name => 'photo[photo]', 'data-url' => gallery_multiadd_path( gallery.id ), :multiple => '' }
|
2
|
+
.photos--multinew
|
3
|
+
%h3 Add Photos
|
4
|
+
%ul{ :id => 'photos', :class => 'thumbnails' }
|
5
|
+
%input{ :id => 'fileupload', :type => 'file', :name => 'photo[photo]', 'data-url' => gallery_multiadd_path( gallery.id ), :multiple => '' }
|
@@ -0,0 +1,53 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title Ish Manager
|
5
|
+
%link{ :rel => 'icon', :href => "/favicon_#{ENV['RAILS_ENV']}.gif" }
|
6
|
+
%meta{ :name => :viewport, :content => 'width=device-width, initial-scale=1.0' }
|
7
|
+
%meta{ :charset => 'UTF-8' }
|
8
|
+
%meta{ :description => 'some description' }
|
9
|
+
|
10
|
+
= javascript_include_tag "//code.jquery.com/jquery-3.3.1.min.js"
|
11
|
+
|
12
|
+
%script{ :src => "//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" }
|
13
|
+
= stylesheet_link_tag "//cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css"
|
14
|
+
|
15
|
+
%script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
|
16
|
+
%script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
|
17
|
+
|
18
|
+
= stylesheet_link_tag "//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css", :media => 'all'
|
19
|
+
= stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
|
20
|
+
|
21
|
+
= stylesheet_link_tag "//cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/css/bootstrap.min.css"
|
22
|
+
= javascript_include_tag "//cdn.jsdelivr.net/npm/popper.js@1.14.7/dist/umd/popper.min.js"
|
23
|
+
= javascript_include_tag "//cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/js/bootstrap.min.js"
|
24
|
+
|
25
|
+
= stylesheet_link_tag "//cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css"
|
26
|
+
= javascript_include_tag "//cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"
|
27
|
+
|
28
|
+
= stylesheet_link_tag "ish_manager/application", media: "all"
|
29
|
+
= javascript_include_tag "ish_manager/application"
|
30
|
+
|
31
|
+
= csrf_meta_tags
|
32
|
+
%body{ class: [ params[:controller].gsub("ish_manager/",""), "#{params[:controller].gsub("ish_manager/","")}-#{params[:action]}", params[:action]] }
|
33
|
+
.bg-white
|
34
|
+
= render :partial => "ish_manager/application/main_header_#{current_user.profile.role_name}"
|
35
|
+
- if notice || alert
|
36
|
+
.row
|
37
|
+
.col.s12
|
38
|
+
- if notice
|
39
|
+
- if notice.class == Array
|
40
|
+
%ul
|
41
|
+
- notice.map do |n|
|
42
|
+
%li
|
43
|
+
- n.map do |k,v|
|
44
|
+
<b>#{k} :</b> #{v}
|
45
|
+
%p.notice= notice
|
46
|
+
- if alert
|
47
|
+
%p.alert= alert
|
48
|
+
.container
|
49
|
+
= yield
|
50
|
+
= render 'ish_manager/application/main_footer'
|
51
|
+
= render 'analytics' if Rails.env.production?
|
52
|
+
|
53
|
+
|
File without changes
|