Fetching contributors…
Cannot retrieve contributors at this time
28 lines (26 sloc) 1.08 KB
<div class="jumbotron" style="margin-top: 10px">
<% if current_user %>
<p>Hello, <%= %>!</p>
<p><%= link_to "View your profile", user_path(current_user), class: 'btn btn-primary' %> or
<%= link_to "Sign Out", session_path(current_user), method: :delete, class: 'btn btn-danger' %></p>
<% else %>
<p>Bloccit is a hub of tips, fun and randomness to share with your friends!</p>
<p><%= link_to "Sign in", new_session_path, class: 'btn btn-success' %> or
<%= link_to "Sign up today!", new_user_path, class: 'btn btn-primary' %></p>
<% end %>
<div class="row">
<div class="col-md-4">
<h2><i class="glyphicon glyphicon-pushpin"></i>&nbsp; Hot Topics</h2>
<%= render "topics/popular_topics" %>
<div class="col-md-4">
<h2><i class="glyphicon glyphicon-send"></i>&nbsp; Popular Posts</h2>
<%= render "posts/top_posts" %>
<div class="col-md-4">
<h2><i class="glyphicon glyphicon-comment"></i>&nbsp; Recent Comments</h2>
<%= render "comments/recent_comments" %>