Fix index err on chans w/o extern links

pull/2059/head
syeopite 4 years ago
parent fbe9a0c0f2
commit d91eff14d7
No known key found for this signature in database
GPG Key ID: 6FA616E5A5294A82

@ -1,7 +1,7 @@
<% if channel.banner %>
<div class="pure-g" id="channel-banner-container">
<div class="pure-u-1" id="banner" style='background-image: url(/ggpht<%= URI.parse(channel.banner.not_nil!.gsub("=w1060-", "=w1280-")).request_target %>)'>
<% if channel.links %>
<% if !channel.links.empty? %>
<div id="link-holder">
<div id="link-widget-primary" class="link-widget-link">
<a href="<%=channel.links[0][1]%>" title=<%=channel.links[0][0]%>>

Loading…
Cancel
Save