Video asset: Show link to login as well as subscribe

This commit is contained in:
Pablo Vazquez 2017-09-20 14:19:15 +02:00
parent 54b5e8e3d4
commit 5012d19180
2 changed files with 24 additions and 28 deletions

View File

@ -1011,26 +1011,23 @@ section.node-preview
height: 100% height: 100%
.video-dummy .video-dummy
min-height: 320px position: absolute
display: flex top: 0
width: 100% bottom: 0
align-items: center left: 0
justify-content: center right: 0
color: white
background:
repeat: no-repeat
size: cover
position: center
height: 100%
&-content &-content
background-color: rgba(black, .8) +position-center-translate
padding: 15px
border-radius: 3px
position: relative
z-index: 2
display: flex
align-items: center align-items: center
background-color: rgba(darken($color-primary, 25%), .8)
color: $color-text-light
display: flex
height: 100%
justify-content: center
padding: 15px
width: 100%
z-index: 2
&-icon &-icon
font-size: 4em font-size: 4em
@ -1039,10 +1036,13 @@ section.node-preview
font-size: 1.6em font-size: 1.6em
span span
display: block display: block
hr
border-color: rgba(white, .5)
a a
display: inline-block display: inline-block
color: white color: white
font-size: .8em font-size: .7em
em em
font-style: normal font-style: normal

View File

@ -22,10 +22,13 @@
.video-dummy.sorry( .video-dummy.sorry(
style="{% if node.picture %}background-image: url({{ node.picture.thumbnail('l', api=api) }});{% endif %}") style="{% if node.picture %}background-image: url({{ node.picture.thumbnail('l', api=api) }});{% endif %}")
.video-dummy-content .video-dummy-content
i.pi-lock.video-dummy-content-icon
.video-dummy-content-text .video-dummy-content-text
span Only available to Blender Cloud subscribers. span Available to Blender Cloud subscribers
a(href="{{ url_for('cloud.join') }}") Support Blender and get awesome stuff. <em>Subscribe now!</em> span
small Support Blender and get awesome stuff!
hr
a.subscribe(href="{{ url_for('cloud.join') }}") <em>Subscribe</em>
a(href="{{ url_for('users.login') }}") Already a subscriber? Log in
| {% endif %} | {% endif %}
@ -75,13 +78,6 @@ script(type="text/javascript").
var content_type = $("li.node-details-meta-list-item.type").text(); var content_type = $("li.node-details-meta-list-item.type").text();
$("li.node-details-meta-list-item.type").text(content_type.substring(content_type.indexOf("/") + 1)); $("li.node-details-meta-list-item.type").text(content_type.substring(content_type.indexOf("/") + 1));
{% if not node.video_sources %}
$('.sorry').click(function() {
$.get('/403', function(data) {
$('#node-overlay').html(data).addClass('active');
})
});
{% endif %}
}); });
include ../../_scripts include ../../_scripts