Add buttons for switching inst and using yt on chan

(cherry picked from commit 634f59df0e)
This commit is contained in:
syeopite 2021-06-25 15:11:36 -07:00
parent b89027d22d
commit b844e9b5b8
No known key found for this signature in database
GPG key ID: 6FA616E5A5294A82

View file

@ -37,6 +37,12 @@
<div class="pure-u-1-3" style="text-align:right">
<h3>
<a href="/feed/channel/<%= channel.ucid %>"><i class="icon ion-logo-rss"></i></a>
<a title="<%=translate(locale, "Watch on YouTube")%>" href="https://youtube.com/<%=URI.decode_www_form(env.get("current_page").to_s)%>">
<i class="icon ion-logo-youtube"></i>
</a>
<a title="<%=translate(locale, "Switch Invidious Instance")%>" href="/redirect?referer=<%=env.get("current_page")%>">
<i class="icon ion-md-jet"></i>
</a>
</h3>
</div>
</div>
@ -54,12 +60,26 @@
<div class="h-box" id="content-navigation">
<div class="">
<!-- TODO Add these!
<a href="https://www.youtube.com/channel/<%= channel.ucid %>"><%= translate(locale, "View channel on YouTube") %></a> -->
<!-- <a href="/redirect?referer=<%= env.get?("current_page") %>"><%= translate(locale, "Switch Invidious Instance") %></a> -->
<!-- TODO Refactor this! -->
<div class="pure-menu pure-menu-horizontal">
<ui class="pure-menu-list">
<ul class="pure-menu-list">
<%
#
#<% if content_type == 0 %>
#<li class="pure-menu-item pure-menu-selected">
#<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
#<b> <%= translate(locale, "Home") %> </b>
#</a>
#</li>
#<% else %>
#<li class="pure-menu-item">
#<a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
#<%= translate(locale, "Home") %>
#</a>
#</li>
#<% end %>
%>
<% if !channel.auto_generated %>
<% if content_type == 0 %>
<li class="pure-menu-item pure-menu-selected">
@ -133,7 +153,7 @@
</div>
</li>
<% end %>
</ui>
</ul>
</div>
</div>
</div>