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"> <div class="pure-u-1-3" style="text-align:right">
<h3> <h3>
<a href="/feed/channel/<%= channel.ucid %>"><i class="icon ion-logo-rss"></i></a> <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> </h3>
</div> </div>
</div> </div>
@ -54,12 +60,9 @@
<div class="h-box" id="content-navigation"> <div class="h-box" id="content-navigation">
<div class=""> <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! --> <!-- TODO Refactor this! -->
<div class="pure-menu pure-menu-horizontal"> <div class="pure-menu pure-menu-horizontal">
<ui class="pure-menu-list"> <ul class="pure-menu-list">
<% if content_type == 0 %> <% if content_type == 0 %>
<li class="pure-menu-item pure-menu-selected"> <li class="pure-menu-item pure-menu-selected">
<a class="pure-menu-link" href="/channel/<%= channel.ucid %>"> <a class="pure-menu-link" href="/channel/<%= channel.ucid %>">
@ -161,7 +164,7 @@
</div> </div>
</li> </li>
<% end %> <% end %>
</ui> </ul>
</div> </div>
</div> </div>
</div> </div>