Skip to content

Commit

Permalink
Move 'More Topics' on new dashboard into left column (#9658)
Browse files Browse the repository at this point in the history
Update dashboard.html.erb
  • Loading branch information
Rutwij12 authored Jun 3, 2021
1 parent 6ad3102 commit 0b739d1
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions app/views/dashboard_v2/dashboard.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@
<%= render partial: "dashboard_v2/blog"%>
<%= render partial: "dashboard_v2/alerts"%>
<%= render partial: "dashboard_v2/topicCard"%>
<%# Additional Topics %>
<div class="other-topics">
<h4>
<i class="form-grey"><%= translation('dashboard_v2.sidebar.interest_topics', :url => '/subscriptions')%></i>
</h4>
<%# Featured topics %>
<small><a href="/tags" class="form-grey"><%= translation('dashboard_v2.sidebar.featured_topics') %>:</a></small>
<span>
<%= feature('feature-tags') %>
<small class="text-format form-grey" style="text-decoration: underline"><%= translation('dashboard_v2.sidebar.more_topics',:url => '/wiki/topics') %> </small>
</span>
<br/>
<%# Trending topics %>
<small><a href="/tags" class="form-grey"><%= translation('dashboard_v2.sidebar.trending_topics') %>:</a></small>
<span>
<% cache('trending-tags', expires_in: 24.hours, skip_digest: true) do %>
<% @trending_tags.each do |i| %>
<a href="/tag/<%= i.name %>" class="badge badge-primary"><%= i.name %></a>
<% end %>
<% end %>
<small class="text-format form-grey" style="text-decoration: underline"><%= translation('dashboard_v2.sidebar.more_topics',:url => '/wiki/topics') %> </small>
</span>
</div>
<div class="dashboard-topics-footer">
<%= feature('dashboard-topics-footer') %>
</div>
</div>
<%# Sidebar %>
<div class="col-lg-4">
Expand All @@ -13,32 +39,6 @@
<%= render partial: "dashboard_v2/sidebar"%>
</div>
</div>
<%# Additional Topics %>
<div class="other-topics">
<h4>
<i class="form-grey"><%= translation('dashboard_v2.sidebar.interest_topics', :url => '/subscriptions')%></i>
</h4>
<%# Featured topics %>
<small><a href="/tags" class="form-grey"><%= translation('dashboard_v2.sidebar.featured_topics') %>:</a></small>
<span>
<%= feature('feature-tags') %>
<small class="text-format form-grey" style="text-decoration: underline"><%= translation('dashboard_v2.sidebar.more_topics',:url => '/wiki/topics') %> </small>
</span>
<br/>
<%# Trending topics %>
<small><a href="/tags" class="form-grey"><%= translation('dashboard_v2.sidebar.trending_topics') %>:</a></small>
<span>
<% cache('trending-tags', expires_in: 24.hours, skip_digest: true) do %>
<% @trending_tags.each do |i| %>
<a href="/tag/<%= i.name %>" class="badge badge-primary"><%= i.name %></a>
<% end %>
<% end %>
<small class="text-format form-grey" style="text-decoration: underline"><%= translation('dashboard_v2.sidebar.more_topics',:url => '/wiki/topics') %> </small>
</span>
</div>
<div class="dashboard-topics-footer">
<%= feature('dashboard-topics-footer') %>
</div>
</div>

<style>
Expand Down

0 comments on commit 0b739d1

Please sign in to comment.