Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
sample_app_ch9/app/views/static_pages/home.html.erb
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (31 sloc)
864 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if signed_in? %> | |
<div class="row"> | |
<aside class="span4"> | |
<section> | |
<%= render 'shared/user_info' %> | |
</section> | |
<section> | |
<%= render 'shared/stats' %> | |
</section> | |
<section> | |
<%= render 'shared/micropost_form' %> | |
</section> | |
</aside> | |
<div class="span8"> | |
<h3>Micropost Feed</h3> | |
<%= render 'shared/feed' %> | |
</div> | |
</div> | |
<% else %> | |
<div class="center hero-unit"> | |
<h1>Welcome to the Sample App</h1> | |
<h2> | |
This is the home page for the | |
<a href="http://railstutorial.org/">Ruby on Rails Tutorial</a> | |
sample application. | |
</h2> | |
<%= link_to "Sign up now!", signup_path, | |
class: "btn btn-large btn-primary" %> | |
</div> | |
<%= link_to image_tag("rails.png", alt: "Rails"), 'http://rubyonrails.org/' %> | |
<% end %> |