mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Add buttons for switching inst and using yt on chan
(cherry picked from commit 634f59df0e
)
This commit is contained in:
parent
b89027d22d
commit
b844e9b5b8
1 changed files with 25 additions and 5 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue