public
Created

  • Download Gist
twitter_profile.erb
HTML+ERB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
<div class="row">
<div class="span4">
<div class="thumbnail">
<img src="<%= current_user.profile_image_url %>" style="float: left;margin: 5px;">
<h3><%= current_user.name %></h3>
<h4><%= current_user.location %></h4>
<br>
<p><%= current_user.description %></p>
</div>
</div>
</div>
 
<div class="row" style="margin-top: 16px;">
<div class="span5">
<h1>User Timeline</h1>
<table class="table table-striped">
<tr>
<th>Text</th>
</tr>
<% @user_timeline.each do |t| %>
<tr>
<th><%= t.text %></th>
</tr>
<% end %>
</table>
</div>
<div class="span5">
<h1>Home Timeline</h1>
<table class="table table-striped">
<tr>
<th>User Name</th>
<th>Profile Image</th>
<th>Text</th>
</tr>
<% @home_timeline.each do |t| %>
<tr>
<th><%= t.user.name %></th>
<th><img src="<%= t.user.profile_image_url %>" /></th>
<th><%= t.text %></th>
</tr>
<% end %>
</table>
</div>
</div>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.