ish_manager 0.1.8.50 → 0.1.8.51
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/ish_manager/application.css +3 -2
- data/app/controllers/ish_manager/application_controller.rb +5 -0
- data/app/controllers/ish_manager/user_profiles_controller.rb +5 -1
- data/app/controllers/ish_manager/videos_controller.rb +1 -1
- data/app/views/ish_manager/application/_meta.haml +2 -0
- data/app/views/ish_manager/videos/_index.haml +38 -11
- data/app/views/ish_manager/videos/_preview.haml +2 -0
- data/app/views/ish_manager/videos/_preview.haml~ +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 618fe86245ca25daaaa69aa91094bdd95aae23ef
|
4
|
+
data.tar.gz: 04a017790df0e7f90172eb1fb5c4de2a82a5abb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a98823084c92a427f57b180527270fe089a9f29ace65ced4a93e62c4a9e2e72baac380da8a7018ebe4d847f20ef837d7937b70ec1fd020a4b8087d38430f0a2
|
7
|
+
data.tar.gz: 7387f0160e625e4a0fc2e18338adbc66c21a1803d7909294e7d63a751a08368ee54ad3a99f57605be737ca7ebd50c86d959af0726b6c77393b18e763d0d480a0
|
@@ -25,7 +25,11 @@ class IshManager::UserProfilesController < IshManager::ApplicationController
|
|
25
25
|
else
|
26
26
|
flash[:alert] = "Cannot update profile: #{pp_errors @profile.errors.messages}"
|
27
27
|
end
|
28
|
-
|
28
|
+
if params[:redirect_to]
|
29
|
+
redirect_to params[:redirect_to]
|
30
|
+
else
|
31
|
+
redirect_to :action => :index
|
32
|
+
end
|
29
33
|
end
|
30
34
|
|
31
35
|
end
|
@@ -8,16 +8,43 @@
|
|
8
8
|
Videos (#{videos.count})
|
9
9
|
= link_to '[+]', new_video_path
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
=
|
16
|
-
=
|
17
|
-
=
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
11
|
+
- if @current_user.profile.videos_embed
|
12
|
+
Embed?
|
13
|
+
.inline
|
14
|
+
= form_tag user_profile_path( @current_user.profile ), :method => :patch do
|
15
|
+
= hidden_field_tag 'ish_models_user_profile[videos_embed]', false
|
16
|
+
= hidden_field_tag 'redirect_to', videos_path
|
17
|
+
= submit_tag 'Preview?'
|
18
|
+
- else
|
19
|
+
.inline
|
20
|
+
= form_tag user_profile_path( @current_user.profile ), :method => :patch do
|
21
|
+
= hidden_field_tag 'ish_models_user_profile[videos_embed]', true
|
22
|
+
= hidden_field_tag 'redirect_to', videos_path
|
23
|
+
= submit_tag 'Embed?'
|
24
|
+
Preview?
|
25
|
+
|
26
|
+
%br
|
27
|
+
|
28
|
+
= paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
|
29
|
+
|
30
|
+
- videos.each do |video|
|
31
|
+
.panel
|
32
|
+
.panel-content
|
33
|
+
.row
|
34
|
+
.col-xs-12.col-sm-6
|
35
|
+
.center
|
36
|
+
= link_to video.name, video_path( video )
|
37
|
+
.inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
38
|
+
= link_to '[~]', edit_video_path( video )
|
39
|
+
= render 'meta', :item => video
|
40
|
+
.description= video.description
|
41
|
+
.col-xs-12.col-sm-6
|
42
|
+
.center
|
43
|
+
- if @current_user.profile.videos_embed
|
44
|
+
= render 'embed', :video => video
|
45
|
+
- else
|
46
|
+
= render 'preview', :video => video
|
47
|
+
|
48
|
+
= paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
|
22
49
|
%hr
|
23
50
|
|
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.
|
4
|
+
version: 0.1.8.51
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -287,6 +287,8 @@ files:
|
|
287
287
|
- app/views/ish_manager/videos/_index.haml
|
288
288
|
- app/views/ish_manager/videos/_list.haml
|
289
289
|
- app/views/ish_manager/videos/_list_small.haml
|
290
|
+
- app/views/ish_manager/videos/_preview.haml
|
291
|
+
- app/views/ish_manager/videos/_preview.haml~
|
290
292
|
- app/views/ish_manager/videos/edit.haml
|
291
293
|
- app/views/ish_manager/videos/index.haml
|
292
294
|
- app/views/ish_manager/videos/index.haml~
|