ish_manager 0.1.8.313 → 0.1.8.315

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2264f938ca1b829a33a034b011f8b772f7d70475cdac1ffeb244ef2668baf5d
4
- data.tar.gz: 2ac39dfcd50a93c87c603a627dba86470a8490f13b5a6fd490265a0e48c2f7f8
3
+ metadata.gz: 2004c1173de616a39ef2d2b185f1bd906a30dea6a77989847d549e976284f36a
4
+ data.tar.gz: b6d799d9a77d78a2db6cb591ab0e836e5aed4e17c9c2b85901bee69c7b1be328
5
5
  SHA512:
6
- metadata.gz: c9afd9b1e238acc8d192d447fb3fd11f29c039246fb6e598a7cd8d147a5a4f6a37f5b08f3d7d93fd3206f7aae3e7c1048c06b1891a569ad5f0281d466dff2ec0
7
- data.tar.gz: 363a73b3dd5221f9b55f20486ea3504c6b0f04aac26674a6ee2b762f7c732831a858e6c2443c10a6e43c79e62e0ffb8dab1d52f99d0add890aa24ea7e1acc151
6
+ metadata.gz: 3246003592e1c7e17a696cc2036007fd8f680349947d1477a698aae7ab824339e18e2990bd3a04e0bf06fda8cf0d4e2491bd66b2c5c38a9e7f2eedc1b4c8c1bb
7
+ data.tar.gz: 03063e33940ecced352f7fa41ea2fe60e60a984f686863cde1d52b86062d9120d9a31095369c206eeb77dcebbc3fa20fa0a265db227c07aa1c39380b00262f05
@@ -62,46 +62,24 @@ $(function () {
62
62
  }
63
63
 
64
64
 
65
- var mainHeaderContext = $(".manager--main-header")
66
- $(".manager--main-header #collapseHeader").click(function (_e) {
67
- if ($(this).hasClass('fa-compress')) {
68
- $(this).addClass('fa-expand')
69
- $(this).removeClass('fa-compress')
70
- localStorage.setItem('mainHeaderCollapsed', 'true')
71
- $('.content', $(this).parent()).css('display', 'none')
72
- } else {
73
- $(this).removeClass('fa-expand')
74
- $(this).addClass('fa-compress')
75
- localStorage.setItem('mainHeaderCollapsed', 'false')
76
- $('.content', $(this).parent()).css('display', 'block')
65
+ $(".collapse-expand").each(function(idx, obj) {
66
+ const thisId = $(this).attr('id')
67
+ const state = localStorage.getItem("collapse-expand#"+thisId)
68
+ if (state === 'collapsed') {
69
+ $(this).next().slideToggle();
77
70
  }
78
71
  })
79
- if (localStorage.getItem('mainHeaderCollapsed') === 'true') {
80
- $("#collapseHeader").addClass('fa-expand')
81
- $("#collapseHeader").removeClass('fa-compress')
82
- $(".content", mainHeaderContext).css("display", 'none')
83
- }
84
-
85
- var mainFooterContext = $(".manager--main-footer")
86
- $(".manager--main-footer #collapseFooter").click(function (_e) {
87
- const el = $(this).next()
88
- if ($(this).hasClass('fa-compress')) {
89
- $(this).addClass('fa-expand')
90
- $(this).removeClass('fa-compress')
91
- localStorage.setItem('mainFooterCollapsed', 'true')
92
- $(el, $(this).parent()).css('display', 'none')
72
+ $(".collapse-expand").click(function (_e) {
73
+ const thisId = $(this).attr('id')
74
+ const state = localStorage.getItem("collapse-expand#"+thisId)
75
+ if (state === 'collapsed') {
76
+ localStorage.removeItem("collapse-expand#"+thisId)
93
77
  } else {
94
- $(this).removeClass('fa-expand')
95
- $(this).addClass('fa-compress')
96
- localStorage.setItem('mainFooterCollapsed', 'false')
97
- $(el, $(this).parent()).css('display', 'block')
78
+ localStorage.setItem("collapse-expand#"+thisId, "collapsed")
98
79
  }
80
+ $(this).next().slideToggle();
99
81
  })
100
- if (localStorage.getItem('mainFooterCollapsed') === 'true') {
101
- $("#collapseFooter").addClass('fa-expand')
102
- $("#collapseFooter").removeClass('fa-compress')
103
- $(".content", mainFooterContext).css("display", 'none')
104
- }
82
+
105
83
 
106
84
  if ('function' === typeof $('body').DataTable) {
107
85
  $('#dataTable').DataTable({
@@ -26,6 +26,7 @@
26
26
  *= require ish_manager/tags
27
27
  *= require ish_manager/user_profiles
28
28
  *= require ish_manager/videos
29
+ *= require ish_manager/pagination
29
30
  */
30
31
 
31
32
 
@@ -85,6 +86,17 @@ ul:not(.browser-default).bullets, {
85
86
  padding: .8em;
86
87
  }
87
88
 
89
+ .application--debug {
90
+ width: 100vwh;
91
+ overflow-x: auto;
92
+ }
93
+ .application-home {
94
+ .bordered-card {
95
+ max-width: 400px;
96
+ }
97
+ }
98
+
99
+
88
100
  /* B */
89
101
 
90
102
  .bg-white {
@@ -102,7 +114,7 @@ ul:not(.browser-default).bullets, {
102
114
  padding: 1em;
103
115
  }
104
116
 
105
- .bordered {
117
+ .bordered-card {
106
118
  border: 1px solid grey;
107
119
  padding: .5em;
108
120
  border-radius: 8px;
@@ -124,7 +136,7 @@ ul:not(.browser-default).bullets, {
124
136
  text-align: center;
125
137
  }
126
138
 
127
- .clearfix {
139
+ .c {
128
140
  clear: both;
129
141
  }
130
142
 
@@ -170,6 +182,7 @@ ul:not(.browser-default).bullets, {
170
182
  .flex-row {
171
183
  display: flex;
172
184
  flex-wrap: wrap; /* @TODO: why does it wrap? in ish_manager/show , I'd prefer it didn't. */
185
+
173
186
  }
174
187
 
175
188
  .float-left {
@@ -257,13 +270,17 @@ textarea.large {
257
270
  border-bottom: 1px solid blue;
258
271
  }
259
272
 
260
- .menu-secondary li {
261
- display: inline;
262
- }
263
- .menu-secondary li a {
264
- padding: 1rem;
265
- background: white;
273
+ .menu-secondary {
274
+ margin: 20px 0;
275
+ padding: 0;
276
+ li {
277
+ display: inline;
278
+ a {
279
+ background: white;
280
+ }
281
+ }
266
282
  }
283
+
267
284
  .meta-edit {
268
285
  display: inline;
269
286
  }
@@ -1,9 +1,5 @@
1
1
  /* utils */
2
2
 
3
- .thumbnails {
4
- display: flex;
5
- }
6
-
7
3
  .row-thumbs .item {
8
4
  margin-bottom: 1em;
9
5
  border: 1px solid red;
@@ -0,0 +1,54 @@
1
+
2
+
3
+ .pagination li {
4
+ display: inline-block;
5
+ border-radius: 2px;
6
+ text-align: center;
7
+ vertical-align: top;
8
+ height: 30px;
9
+ }
10
+
11
+ .pagination li a {
12
+ color: #444;
13
+ display: inline-block;
14
+ font-size: 1.2rem;
15
+ padding: 0 10px;
16
+ line-height: 30px;
17
+ }
18
+
19
+ .pagination li.active a {
20
+ color: #fff;
21
+ }
22
+
23
+ .pagination li.active {
24
+ background-color: #ee6e73;
25
+ }
26
+
27
+ .pagination li.disabled a {
28
+ cursor: default;
29
+ color: #999;
30
+ }
31
+
32
+ .pagination li i {
33
+ font-size: 2rem;
34
+ }
35
+
36
+ .pagination li.pages ul li {
37
+ display: inline-block;
38
+ float: none;
39
+ }
40
+
41
+ @media only screen and (max-width: 992px) {
42
+ .pagination {
43
+ width: 100%;
44
+ }
45
+ .pagination li.prev,
46
+ .pagination li.next {
47
+ width: 10%;
48
+ }
49
+ .pagination li.pages {
50
+ width: 80%;
51
+ overflow: hidden;
52
+ white-space: nowrap;
53
+ }
54
+ }
@@ -48,7 +48,7 @@ class IshManager::GalleriesController < IshManager::ApplicationController
48
48
  # @galleries.selector.delete('is_done')
49
49
  end
50
50
  @galleries = @galleries.page( params[:galleries_page] ).per( 10 )
51
- render params[:render_type]
51
+ render params[:render_type], layout: 'ish_manager/application_no_material'
52
52
  end
53
53
 
54
54
  def j_show
@@ -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], :user_profile => current_user.profile
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,9 +59,10 @@ 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
+ # City.find(@newsitem.city_id).touch if @newsitem.city_id
63
+ # Site.find(@newsitem.site_id).touch if @newsitem.site_id
62
64
  Tag.find(@newsitem.tag_id).touch if @newsitem.tag_id
65
+ Map.find(@newsitem.map_id).touch if @newsitem.map_id
63
66
 
64
67
  flash[:notice] = "Destroyed the newsitem."
65
68
  else
@@ -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
@@ -1,7 +1,9 @@
1
1
 
2
-
3
- %ul{ style: "margin: 2em;" }
4
- %li= params.inspect
5
- %li= "Cached?: #{Rails.application.config.action_controller.perform_caching}"
6
- %li= "Cache key: #{@cache_key.inspect}" if @cache_key
7
- %li= "Env: #{Rails.env}"
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,22 @@
2
2
  .manager--main-footer
3
3
  .container
4
4
 
5
- %i.fa.fa-compress.collapse-expand#collapseFooter
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
- %ul
11
- %li >[ #{@current_user.email} ]<
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--2
21
+ .col-sm-2
24
22
  = button_to 'Logout', main_app.destroy_user_session_path, :method => :delete
23
+ .c
@@ -1,11 +1,6 @@
1
1
 
2
- - # @TODO: definitely more abstract
3
- - path ||= galleries_path
4
-
5
- = form_tag path, :method => :get, :class => :search do
6
- .field.search_words
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
- Welcome home! Your role is `#{current_user.profile.role_name}`.
2
+ .application-home
3
+ Welcome home! Your role is `#{current_user.profile.role_name}`.
3
4
 
4
- .bordered{ style: 'width: 400px;' }
5
- = form_tag "https://www.cgtrader.com/free-3d-models", method: :get do
6
- %p Search CGTrader:
7
- = hidden_field_tag "polygons", "lt_5k"
8
- = text_field_tag "keywords"
9
- = submit_tag 'search'
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,6 +1,8 @@
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
8
  - param_name ||= :galleries_page
@@ -16,20 +18,19 @@
16
18
 
17
19
  .row
18
20
  - @galleries.each do |g|
19
- .col.s6
20
- .item.panel
21
- .panel-body
22
- %h4
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
- = image_missing
29
- - else
30
- .thumbnails.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)
21
+ .col-sm-12.col-md-6
22
+ .bordered-card
23
+ %h5
24
+ = link_to '[~]', edit_gallery_path( g )
25
+ = link_to g.name, gallery_path(g.slug)
26
+ (#{g.photos.length})
27
+ = render 'meta', item: g
28
+ - if g.photos.length == 0
29
+ No Photos
30
+ - else
31
+ .flex-row
32
+ - g.photos.limit( n_thumbs ).each do |photo|
33
+ = link_to image_tag(photo.photo.url(:thumb), :alt => g.name), gallery_path(g.slug)
33
34
 
34
35
  - if @galleries.respond_to? :total_pages
35
36
  = paginate @galleries, :param_name => param_name, :views_prefix => 'ish_manager'
@@ -1,16 +1,15 @@
1
1
 
2
- .title
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
3
+ .flex-row
4
+ .title Galleries (#{@galleries.count}) #{link_to '[+]', new_gallery_path}
5
+ = render 'search', path: galleries_path
6
+ %ul.menu-secondary
7
+ %li{ class: "#{params[:render_type] == 'index_titles' ? 'active' : ''}" }
8
+ = link_to 'titles list', galleries_index_titles_path( :render_type => Gallery::RENDER_THUMBS )
9
+ %li{ class: "#{params[:render_type] == 'index_thumbs' ? 'active' : ''}" }
10
+ = link_to 'thumbs list', galleries_index_thumbs_path( :render_type => Gallery::RENDER_TITLES )
11
+ %li{ class: "#{params[:render_type] == 'index_thumbs' ? 'active' : ''}" }
12
+ = link_to 'shared with me (thumbs)', galleries_shared_path( :render_type => Gallery::RENDER_THUMBS )
13
+ %li{ class: "#{params[:render_type] == 'index_titles' ? 'active' : ''}" }
14
+ = link_to 'shared with me (titles)', galleries_shared_titles_path
16
15
 
@@ -26,6 +26,9 @@
26
26
  .field
27
27
  = label_tag :photo
28
28
  = file_field_tag :photo
29
+ .field
30
+ = f.label :subhead
31
+ = f.text_area :subhead
29
32
  .field
30
33
  = f.label :descr
31
34
  = f.text_area :descr, :class => :tinymce
@@ -5,7 +5,8 @@
5
5
  - url = site_newsitem_path( @site, @newsitem ) if @site
6
6
 
7
7
  .newsitems-edit
8
- %h1 Edit Newsitem
8
+ %h1
9
+ Edit Newsitem
9
10
  - if @site
10
11
  For site: #{@site.domain} #{@site.lang} <br />
11
12
  - if @city
@@ -0,0 +1,46 @@
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
+ %script{ :src => "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" }
10
+ %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
11
+ %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
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
+ = stylesheet_link_tag "//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css", :media => 'all'
15
+ = stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
16
+
17
+ = stylesheet_link_tag "ish_manager/materialize", media: "all"
18
+ = stylesheet_link_tag "ish_manager/application", media: "all"
19
+
20
+ = javascript_include_tag "ish_manager/application"
21
+ = javascript_include_tag "ish_manager/materialize"
22
+ = javascript_include_tag "ish_manager/application_materialize"
23
+
24
+ = csrf_meta_tags
25
+ %body{ class: [ params[:controller].gsub("ish_manager/",""), "#{params[:controller].gsub("ish_manager/","")}-#{params[:action]}", params[:action]] }
26
+ .bg-white
27
+ = render :partial => "ish_manager/application/main_header_#{current_user.profile.role_name}"
28
+ .container
29
+ .row
30
+ .col.s12
31
+ - if notice
32
+ - if notice.class == Array
33
+ %ul
34
+ - notice.map do |n|
35
+ %li
36
+ - n.map do |k,v|
37
+ <b>#{k} :</b> #{v}
38
+ %p.notice= notice
39
+ - if alert
40
+ %p.alert= alert
41
+
42
+ = yield
43
+ = render 'ish_manager/application/main_footer'
44
+ = render 'analytics' if Rails.env.production?
45
+ = render 'debug' if !Rails.env.production?
46
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.313
4
+ version: 0.1.8.315
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-20 00:00:00.000000000 Z
11
+ date: 2022-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -257,6 +257,7 @@ files:
257
257
  - app/assets/stylesheets/ish_manager/leads.scss
258
258
  - app/assets/stylesheets/ish_manager/maps.scss
259
259
  - app/assets/stylesheets/ish_manager/materialize.css
260
+ - app/assets/stylesheets/ish_manager/pagination.scss
260
261
  - app/assets/stylesheets/ish_manager/photos.scss
261
262
  - app/assets/stylesheets/ish_manager/reset.css
262
263
  - app/assets/stylesheets/ish_manager/tags.css
@@ -454,7 +455,6 @@ files:
454
455
  - app/views/ish_manager/videos/show.haml
455
456
  - app/views/layouts/ish_manager/README.txt
456
457
  - app/views/layouts/ish_manager/application.haml
457
- - app/views/layouts/ish_manager/application2.haml
458
458
  - app/views/layouts/ish_manager/application_no_material.haml
459
459
  - config/routes.rb
460
460
  - config/systemd/system/README.txt
@@ -1 +0,0 @@
1
- app/views/layouts/ish_manager/application2.haml
@@ -1,46 +0,0 @@
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
- %script{ :src => "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" }
10
- %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
11
- %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
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
- = stylesheet_link_tag "//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css", :media => 'all'
15
- = stylesheet_link_tag "//fonts.googleapis.com/icon?family=Material+Icons"
16
-
17
- = stylesheet_link_tag "ish_manager/materialize", media: "all"
18
- = stylesheet_link_tag "ish_manager/application", media: "all"
19
-
20
- = javascript_include_tag "ish_manager/application"
21
- = javascript_include_tag "ish_manager/materialize"
22
- = javascript_include_tag "ish_manager/application_materialize"
23
-
24
- = csrf_meta_tags
25
- %body{ class: [ params[:controller].gsub("ish_manager/",""), "#{params[:controller].gsub("ish_manager/","")}-#{params[:action]}", params[:action]] }
26
- .bg-white
27
- = render :partial => "ish_manager/application/main_header_#{current_user.profile.role_name}"
28
- .container
29
- .row
30
- .col.s12
31
- - if notice
32
- - if notice.class == Array
33
- %ul
34
- - notice.map do |n|
35
- %li
36
- - n.map do |k,v|
37
- <b>#{k} :</b> #{v}
38
- %p.notice= notice
39
- - if alert
40
- %p.alert= alert
41
-
42
- = yield
43
- = render 'ish_manager/application/main_footer'
44
- = render 'analytics' if Rails.env.production?
45
- = render 'debug' if !Rails.env.production?
46
-