Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bootstrap Site Blueprints Volume II

You're reading from  Bootstrap Site Blueprints Volume II

Product type Book
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Pages 328 pages
Edition 1st Edition
Languages
Author (1):
Matt Lambert Matt Lambert
Profile icon Matt Lambert

Coding the activity feed


The next template in the project that we're going to tackle is the activity feed. This is the page that you would see when you log in to your account. The main differences compared to the public profile are the form for posting an update and some changes to the right sidebar.

Let's see what this page will look like:

Customizing the first column

As I mentioned earlier, the first column in this template is going to be different compared to the public profile. The second left sidebar will be the one used for the remaining templates as they are all pages that are viewable by the logged-in user only. Start by creating a new file called _sidebar-left.ejs and save it to the /partial directory. The top of the sidebar, which includes the avatar and description, will remain the same. Here's the code again, or you can copy it from the first file:

<div><img src="img/main-avatar.jpg" class="main-avatar"></div>
<h2><a href="#">John Smith</a>&lt...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime}