Fix clickable titles in subscription feed

This commit is contained in:
Omar Roth 2018-11-20 22:58:30 -06:00
parent f01cfd0226
commit d6d73bd336

View File

@ -69,9 +69,9 @@
<h5>Shared <%= recode_date(item.published) %> ago</h5> <h5>Shared <%= recode_date(item.published) %> ago</h5>
<% end %> <% end %>
<% else %> <% else %>
<a style="width:100%;" href="/watch?v=<%= item.id %>">
<% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %> <% if env.get?("user") && env.get("user").as(User).preferences.thin_mode %>
<% else %> <% else %>
<a style="width:100%;" href="/watch?v=<%= item.id %>">
<div class="thumbnail"> <div class="thumbnail">
<img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/> <img class="thumbnail" src="/vi/<%= item.id %>/mqdefault.jpg"/>
<% if env.get? "show_watched" %> <% if env.get? "show_watched" %>
@ -79,21 +79,19 @@
<a onclick="mark_watched(this)" <a onclick="mark_watched(this)"
data-id="<%= item.id %>" data-id="<%= item.id %>"
onmouseenter='this["href"]="javascript:void(0)"' onmouseenter='this["href"]="javascript:void(0)"'
href="/mark_watched?id=<%= item.id %>"' href="/mark_watched?id=<%= item.id %>">
>
<i onmouseenter='this.setAttribute("class", "icon ion-ios-eye-off")' <i onmouseenter='this.setAttribute("class", "icon ion-ios-eye-off")'
onmouseleave='this.setAttribute("class", "icon ion-ios-eye")' onmouseleave='this.setAttribute("class", "icon ion-ios-eye")'
class="icon ion-ios-eye" class="icon ion-ios-eye">
>
</i> </i>
</a> </a>
</p> </p>
<% end %> <% end %>
<p class="length"><%= recode_length_seconds(item.length_seconds) %></p> <p class="length"><%= recode_length_seconds(item.length_seconds) %></p>
</div> </div>
<% end %>
<p><%= item.title %></p>
</a> </a>
<% end %>
<p><a href="/watch?v=<%= item.id %>"><%= item.title %></a></p>
<% if item.responds_to?(:live_now) && item.live_now %> <% if item.responds_to?(:live_now) && item.live_now %>
<p>LIVE</p> <p>LIVE</p>
<% end %> <% end %>