Use properties instead of info

This commit is contained in:
Omar Roth 2018-06-02 22:15:15 -05:00
parent ce714a0854
commit 3c9fb5ab71

View file

@ -117,7 +117,7 @@ player.src(currentSources);
<div class="h-box"> <div class="h-box">
<h1> <h1>
<%= video.info["title"] %> <%= video.title %>
<% if listen %> <% if listen %>
<a href="/watch?<%= env.params.query %>"> <a href="/watch?<%= env.params.query %>">
<i class="fa fa-video" aria-hidden="true"></i> <i class="fa fa-video" aria-hidden="true"></i>
@ -155,28 +155,28 @@ player.src(currentSources);
<div class="pure-u-1 pure-u-md-3-5"> <div class="pure-u-1 pure-u-md-3-5">
<div class="h-box"> <div class="h-box">
<p> <p>
<a href="https://youtube.com/channel/<%= video.info["ucid"] %>"> <a href="/channel/<%= video.ucid %>">
<h3><%= video.info["author"] %></h3> <h3><%= video.author %></h3>
</a> </a>
</p> </p>
<% if authorized %> <% if authorized %>
<% if subscriptions.includes? video.info["ucid"] %> <% if subscriptions.includes? video.ucid %>
<p> <p>
<a href="/subscription_ajax?action_remove_subscriptions=1&c=<%= video.info["ucid"] %>"> <a href="/subscription_ajax?action_remove_subscriptions=1&c=<%= video.ucid %>">
<b>Unsubscribe from <%= video.info["author"] %></b> <b>Unsubscribe from <%= video.author %></b>
</a> </a>
</p> </p>
<% else %> <% else %>
<p> <p>
<a href="/subscription_ajax?action_create_subscription_to_channel=1&c=<%= video.info["ucid"] %>"> <a href="/subscription_ajax?action_create_subscription_to_channel=1&c=<%= video.ucid %>">
<b>Subscribe to <%= video.info["author"] %></b> <b>Subscribe to <%= video.author %></b>
</a> </a>
</p> </p>
<% end %> <% end %>
<% else %> <% else %>
<p> <p>
<a href="/login"> <a href="/login">
<b>Login to subscribe to <%= video.info["author"] %></b> <b>Login to subscribe to <%= video.author %></b>
</a> </a>
</p> </p>
<% end %> <% end %>