ish_manager 0.1.8.277 → 0.1.8.281

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: 4d8e601e092ac1ab90f429616e5f3b26d990977bac988fa493f84d9663d26c3d
4
- data.tar.gz: f1260c4bd594f5c4c1700ac8f786292f31eedd5ba824df50c4b83598711112c7
3
+ metadata.gz: 86ca58721ef98208906684dba65e6779fd6f9361478d5ec4bd6c92f57e230c4c
4
+ data.tar.gz: 8fc5fa254d82d6c7429d40d0d0b8221810dbe44ef2ba952d09525ae431285075
5
5
  SHA512:
6
- metadata.gz: cd92f8a2cc6fb2e1750735173b13e927c2e5538d1b649bebbab784c87d586b5ed2296307e2afc63c29752ba0596f2a408f9f186f8fde752f618d06a625db54e2
7
- data.tar.gz: b30ea95ef1b0dfbbe2a4b9c286a5c01f28047f8d51217a2071c7dc9abd40dd1db9570de5440fca6d669c5ff6d636cb7310544d0f4b17d5f24b680b055008ef02
6
+ metadata.gz: fab190a5c5251be2723bc4bcc8fbf4740405e49e9dba4dedb97769500fc75183308056b588dde28fd4c0ffe7851eb403fc72d86e396ae816574d658c41bcf061
7
+ data.tar.gz: 7eaa891ba83f9d90de248f7b082e16a3777847c800987859a320449d02c7358562d2a96defac1a5e5b5daff177446ad9dfecd7d3bf1267199b32f3d2c275fa4d
@@ -58,23 +58,6 @@ ul:not(.browser-default).bullets, {
58
58
  }
59
59
 
60
60
 
61
- .flat-row {
62
- display: flex;
63
- flex-direction: row;
64
- justify-content: flex-start;
65
- align-content: flex-start;
66
-
67
- height: 2.4em;
68
- line-height: 3em;
69
-
70
- width: 100%;
71
- margin: 1em 0 0 0;
72
- padding: 0;
73
-
74
- > * {
75
- padding-right: 1em;
76
- }
77
- }
78
61
 
79
62
 
80
63
  /* A */
@@ -130,9 +113,28 @@ ul:not(.browser-default).bullets, {
130
113
  /* E */
131
114
  /* F */
132
115
 
116
+ .flat-row {
117
+ display: flex;
118
+ flex-direction: row;
119
+ justify-content: flex-start;
120
+ align-content: flex-start;
121
+
122
+ height: 2.4em;
123
+ line-height: 3em;
124
+
125
+ width: 100%;
126
+ margin: 1em 0 0 0;
127
+ padding: 0;
128
+
129
+ > * {
130
+ padding-right: 1em;
131
+ }
132
+ }
133
+
134
+
133
135
  .flex-row {
134
136
  display: flex;
135
- flex-wrap: wrap;
137
+ flex-wrap: wrap; /* @TODO: why does it wrap? in ish_manager/show , I'd prefer it didn't. */
136
138
  }
137
139
 
138
140
  .float-left {
@@ -172,14 +174,6 @@ textarea.large {
172
174
 
173
175
  /* M */
174
176
 
175
- .menu-secondary li {
176
- display: inline;
177
- }
178
- .menu-secondary li a {
179
- padding: 1rem;
180
- background: white;
181
- }
182
-
183
177
 
184
178
  .manager--main-header {
185
179
  background: url('/assets/bg/weather.png');
@@ -217,6 +211,16 @@ textarea.large {
217
211
  border-bottom: 1px solid red;
218
212
  }
219
213
 
214
+ .menu-secondary li {
215
+ display: inline;
216
+ }
217
+ .menu-secondary li a {
218
+ padding: 1rem;
219
+ background: white;
220
+ }
221
+ .meta-edit {
222
+ display: inline;
223
+ }
220
224
 
221
225
  /* P */
222
226
  .panel-content {
@@ -1 +1,26 @@
1
1
 
2
+ .ish_manager-videos-show {
3
+ border-bottom: 2px solid red;
4
+ margin: 0 auto;
5
+ padding-bottom: .8em;
6
+ width: 640px;
7
+
8
+
9
+ .title {
10
+ font-size: 1.4em;
11
+ margin-left: .2em;
12
+ }
13
+
14
+ .row {
15
+ display: flex;
16
+ margin: 0;
17
+
18
+ img {
19
+ margin-right: .8em;
20
+ width: 100px;
21
+ height: 100px;
22
+ }
23
+ }
24
+
25
+
26
+ }
@@ -34,7 +34,7 @@ class IshManager::VideosController < IshManager::ApplicationController
34
34
  def destroy
35
35
  @video = Video.unscoped.find params[:id]
36
36
  authorize! :destroy, @video
37
- flag = @video.update_attributes( :is_trash => true )
37
+ flag = @video.delete
38
38
  @video.city.touch if @video.city
39
39
  @video.site.touch if @video.site
40
40
  @video.tags.map &:touch
@@ -91,7 +91,7 @@ class IshManager::VideosController < IshManager::ApplicationController
91
91
  end
92
92
 
93
93
  def show
94
- @video = Video.where( :youtube_id => params[:youtube_id] ).first
94
+ @video = Video.unscoped.where( :youtube_id => params[:youtube_id] ).first
95
95
  @video ||= Video.unscoped.find params[:id]
96
96
  authorize! :show, @video
97
97
 
@@ -15,5 +15,12 @@ module IshManager
15
15
  :subject => 'You got new shared galleries on pi manager' ).deliver
16
16
  end
17
17
 
18
+
19
+ def stock_alert stock
20
+ @stock = stock
21
+ mail( :to => stock.profile.email, :subject => "IshManager Stock Alert :: #{stock.ticker}" ).deliver
22
+ end
23
+
24
+
18
25
  end
19
26
  end
@@ -0,0 +1,5 @@
1
+
2
+ - if !video.youtube_id.blank?
3
+ = render 'embed_youtube', video: video
4
+ - else
5
+ = render 'embed_s3', video: video
@@ -0,0 +1,6 @@
1
+
2
+ <div class="" style="" >
3
+ <!-- <iframe width="430" height="322" src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe> -->
4
+ <iframe width="640" height="480" src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe>
5
+ <!-- <iframe src="<%= video.video.url %>" frameborder="0" allowfullscreen></iframe> -->
6
+ </div>
@@ -23,9 +23,8 @@
23
23
  .thumb= image_tag video.thumb.url(:thumb)
24
24
  .a
25
25
  = link_to video.name, video_path( video )
26
- .inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
27
- = link_to '[~]', edit_video_path( video )
28
- = render 'meta', :item => video
26
+ = render 'meta_edit', item: video
27
+ = render 'meta', item: video
29
28
  .c
30
29
 
31
30
  = paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
@@ -0,0 +1,4 @@
1
+
2
+ .meta-edit
3
+ .inline= button_to '[x]', video_path( item ), :method => :delete, :data => { :confirm => 'Are you sure?' }
4
+ = link_to '[~]', edit_video_path( item )
@@ -2,19 +2,18 @@
2
2
  - content_for :title do
3
3
  #{@video.name} | #{@site ? @site.title : ''}
4
4
 
5
- .row
6
- .large-12.columns
5
+ .ish_manager-videos-show
6
+ = link_to '[Back]', videos_path
7
7
 
8
- %h3
9
- - if @video.name.blank?
10
- = t('videos.no_title')
11
- - else
12
- = @video.name
13
- = render 'ish_manager/application/meta', :item => @video
14
- .text-center= render 'embed', :video => @video
15
- %hr
16
- = link_to @video.video.url, @video.video.url
8
+ = render 'embed', :video => @video
9
+
10
+ .row
11
+ = image_tag @video.thumb.url(:thumb)
12
+ .a
13
+ .title
14
+ = @video.name.blank? ? t('videos.no_title') : @video.name
15
+ .flex-row
16
+ = render 'meta_edit', item: @video
17
+ = render 'ish_manager/application/meta', :item => @video
18
+ = link_to @video.video_file_name, @video.video.url
17
19
 
18
- %p <b>User Profile:</b> #{@video.user_profile.name}
19
- %p= image_tag @video.thumb.url(:thumb)
20
- %p <b>Video:</b> #{@video.inspect}
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.277
4
+ version: 0.1.8.281
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-18 00:00:00.000000000 Z
11
+ date: 2022-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -355,14 +355,17 @@ files:
355
355
  - app/views/ish_manager/venues/index.haml
356
356
  - app/views/ish_manager/venues/new.haml
357
357
  - app/views/ish_manager/venues/show.haml
358
- - app/views/ish_manager/videos/_embed.erb
358
+ - app/views/ish_manager/videos/_embed.haml
359
359
  - app/views/ish_manager/videos/_embed_half.erb
360
360
  - app/views/ish_manager/videos/_embed_mini.erb
361
+ - app/views/ish_manager/videos/_embed_s3.erb
362
+ - app/views/ish_manager/videos/_embed_youtube.erb
361
363
  - app/views/ish_manager/videos/_form.haml
362
364
  - app/views/ish_manager/videos/_index.haml
363
365
  - app/views/ish_manager/videos/_index_title.haml
364
366
  - app/views/ish_manager/videos/_list.haml
365
367
  - app/views/ish_manager/videos/_list_small.haml
368
+ - app/views/ish_manager/videos/_meta_edit.haml
366
369
  - app/views/ish_manager/videos/_preview.haml
367
370
  - app/views/ish_manager/videos/edit.haml
368
371
  - app/views/ish_manager/videos/index.haml