Add subscriptions to feed menu
parent
1692f7640c
commit
c5a17cd043
@ -0,0 +1,19 @@
|
||||
<div class="h-box pure-g">
|
||||
<div class="pure-u-1-4"></div>
|
||||
<div class="pure-u-1 pure-u-md-1-2">
|
||||
<div class="pure-g">
|
||||
<% feeds = ["Popular", "Top", "Trending"] %>
|
||||
<% if env.get? "user" %>
|
||||
<% feeds << "Subscriptions" %>
|
||||
<% end %>
|
||||
<% feeds.each do |feed| %>
|
||||
<div class="pure-u-1-<%= feeds.size %>">
|
||||
<a href="/feed/<%= feed.downcase %>" style="text-align:center;" class="pure-menu-heading">
|
||||
<%= translate(locale, feed) %>
|
||||
</a>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="pure-u-1-4"></div>
|
||||
</div>
|
Loading…
Reference in New Issue