VRFS-3055 : Make video features optional via config option.
This commit is contained in:
parent
a2c64ee13a
commit
ea45c286ea
|
|
@ -57,6 +57,9 @@
|
|||
<br clear="all" />
|
||||
<hr />
|
||||
|
||||
|
||||
<% if Rails.application.config.video_available || (current_user && current_user.admin) %>
|
||||
|
||||
<div class="account-left">
|
||||
<h2>video gear:</h2>
|
||||
</div>
|
||||
|
|
@ -71,7 +74,7 @@
|
|||
<br clear="all" />
|
||||
|
||||
<hr />
|
||||
|
||||
<% end %>
|
||||
|
||||
|
||||
<div class="account-left">
|
||||
|
|
|
|||
|
|
@ -15,9 +15,10 @@
|
|||
a.button-grey.left[layout-link="share-dialog"]
|
||||
= image_tag "content/icon_share.png", {:align => "texttop", :height => 12, :width => 12}
|
||||
| SHARE
|
||||
a#session-webcam.button-grey-toggle.video.left
|
||||
= image_tag "content/icon_cam.png", {:align => "texttop", :height => 12, :width => 12}
|
||||
| VIDEO
|
||||
- if Rails.application.config.video_available || (current_user && current_user.admin)
|
||||
a#session-webcam.button-grey-toggle.video.left
|
||||
= image_tag "content/icon_cam.png", {:align => "texttop", :height => 12, :width => 12}
|
||||
| VIDEO
|
||||
.block
|
||||
.label
|
||||
| VOLUME:
|
||||
|
|
|
|||
|
|
@ -23,16 +23,16 @@
|
|||
.field.w100.left{:purpose => "description"}
|
||||
%label{:for => "description"} Description:
|
||||
%textarea#claim-recording-description.w100{:name => "description"}
|
||||
- if Rails.application.config.jam_tracks_available
|
||||
.field.left{:purpose => "save_video"}
|
||||
%input{:checked => "checked", :name => "save_video", :type => "checkbox"}/
|
||||
%label{:for => "save_video"} Save Video to Computer
|
||||
.field.left{:purpose => "upload_to_youtube"}
|
||||
%span
|
||||
%input{:checked => "checked", :name => "upload_to_youtube", :type => "checkbox"}/
|
||||
%label{:for => "upload_to_youtube"} Upload Video to YouTube
|
||||
%span
|
||||
= render(:partial => "shared/google_login")
|
||||
- if Rails.application.config.video_available || (current_user && current_user.admin)
|
||||
.field.left{:purpose => "save_video"}
|
||||
%input{:checked => "checked", :name => "save_video", :type => "checkbox"}/
|
||||
%label{:for => "save_video"} Save Video to Computer
|
||||
.field.left{:purpose => "upload_to_youtube"}
|
||||
%span
|
||||
%input{:checked => "checked", :name => "upload_to_youtube", :type => "checkbox"}/
|
||||
%label{:for => "upload_to_youtube"} Upload Video to YouTube
|
||||
%span
|
||||
= render(:partial => "shared/google_login")
|
||||
.field.left{:purpose => "is_public"}
|
||||
%input{:checked => "checked", :name => "is_public", :type => "checkbox"}/
|
||||
%label{:for => "is_public"} Public Recording
|
||||
|
|
|
|||
|
|
@ -22,7 +22,9 @@
|
|||
<% if current_user && current_user.musician? %>
|
||||
<% class_val = current_user.affiliate_partner.present? ? 'audio' : 'audio account-menu-group' %>
|
||||
<li class="audio"><%= link_to "Audio Gear", '/client#/account/audio' %></li>
|
||||
<li class="<%= class_val%>"><%= link_to "Video Gear", '/client#/account/video' %></li>
|
||||
<% if Rails.application.config.video_available || (current_user && current_user.admin) %>
|
||||
<li class="<%= class_val%>"><%= link_to "Video Gear", '/client#/account/video' %></li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<% if current_user && current_user.affiliate_partner.present? %>
|
||||
<li class="affiliate account-menu-group"><%= link_to "Affiliate Report", '/client#/account/affiliate' %></li>
|
||||
|
|
|
|||
|
|
@ -321,6 +321,7 @@ if defined?(Bundler)
|
|||
config.metronome_available = true
|
||||
config.backing_tracks_available = true
|
||||
config.one_free_jamtrack_per_user = true
|
||||
config.video_available = false
|
||||
|
||||
config.nominated_jam_track = 'jamtrack-pearljam-alive'
|
||||
config.recurly_tax_estimate_jam_track_plan = 'jamtrack-acdc-backinblack'
|
||||
|
|
|
|||
|
|
@ -90,4 +90,5 @@ SampleApp::Application.configure do
|
|||
config.youtube_developer_key = "AI39si5bPqiNc5GQHscWJh9Wl1WTAr9aZqr_YncUvaR7Kz0rgPdBVWVubHZ94xZ3KLIBqtE9mu3VZe-UpMU80QxXoC66kBNp7A"
|
||||
config.youtube_app_name = "JamKazamDev"
|
||||
config.jam_tracks_available=true
|
||||
config.video_available=false
|
||||
end
|
||||
|
|
|
|||
|
|
@ -105,5 +105,6 @@ SampleApp::Application.configure do
|
|||
config.recurly_subdomain = 'jamkazam-test'
|
||||
config.log_level = :debug
|
||||
config.jam_tracks_available = true
|
||||
config.video_available = true
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue