Add buttons for switching inst and using yt on chan

This commit is contained in:
syeopite 2021-06-25 15:11:36 -07:00
parent a6f3c80b6b
commit f381f909f4
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,9 @@
<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 %>">
@ -161,7 +164,7 @@
</div>
</li>
<% end %>
</ui>
</ul>
</div>
</div>
</div>