Skip to content

Commit

Permalink
add social links to questions sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlazypanda committed Mar 8, 2020
1 parent 783fbe2 commit c9fc620
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/sidebar/_question.html.erb
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<div class="col-lg-3">

<%= render :partial => "like/like", :locals => {:node => @node, :tagnames => @tagnames } %>

<a style="margin-top:-16px;margin-bottom:0;" class="btn btn-sm btn-block btn-link d-lg-none" href="javascript:void()" onClick="toggle_sidebar()"><i class="fa fa-chevron-down"></i></a>

<div id="sidebar" class="d-lg-inline">

<a rel="tooltip" title="Ask question<% if @tagnames %> about <%= (@tagnames.uniq.collect {|x| x.gsub(/[\w-]+:/, '') }).join(',') %><% end %>" data-placement="bottom" href="/post<%= '?tags=' + @tagnames.uniq.join(',') if @tagnames %>&template=question&redirect=question" class="btn btn-primary btn-lg btn-block requireLogin"><i class="fa fa-question-circle fa-white"></i> Ask related question &raquo;</a>

<br />

<% if @node %>
<%= render :partial => "sidebar/list" %>
<% end %>
Expand All @@ -31,6 +31,8 @@
<div id=sidebar-tags>
<%= render partial: 'tag/tagging' %>
</div>


<%= render partial: "home/social" %>

</div>
<%= javascript_include_tag 'sidebar' %>

0 comments on commit c9fc620

Please sign in to comment.