Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ad05088c59
Fetching contributors…

Cannot retrieve contributors at this time

file 129 lines (108 sloc) 4.402 kb
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><%= content_for?(:title) ? yield(:title) : "Xcombinator" %></title>
    <%= csrf_meta_tags %>

    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
    <!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->

    <%= stylesheet_link_tag "application", :media => "all" %>

    <!-- For third-generation iPad with high-resolution Retina display: -->
    <!-- Size should be 144 x 144 pixels -->
    <!-- IMAGE -->

    <!-- For iPhone with high-resolution Retina display: -->
    <!-- Size should be 114 x 114 pixels -->
    <!-- IMAGE -->

    <!-- For first- and second-generation iPad: -->
    <!-- Size should be 72 x 72 pixels -->
   <!-- IMAGE -->

    <!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
    <!-- Size should be 57 x 57 pixels -->
    <!-- IMAGE -->



    <!-- For all other devices -->
    <!-- Size should be 32 x 32 pixels -->
    <!-- IMAGE -->
  </head>
  <body>

    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="/">XXcombinator</a>

          <div class="container nav-collapse">
            <ul class="nav">
              <li><%= link_to "Why Join?", "/about" %></li>
               <% if signed_in? %>
                 <li><%= link_to "Sign Out :(", signout_path %></li>
               <% else %>
                 <li><%= link_to "Sign In", signin_path%></li>
                <% end %>
                <% if Post.count > 0 %>
                  <li><%= link_to "Random Post", post_path(Post.random_post) %></li>
                <% end %>
                <% if signed_in? %>
                 <div class="brand"><%= link_to "Welcome, #{current_user.name}!", current_user %> </div>
                <% end %>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container">
      <div class="content">
        <div class="row">
           <div class="span9">
              <% if flash[:error] %>
                <p class='flash notice'>
                  <%= flash[:error] %>
                </p>
              <% end %>
              <%= yield %>
            </div>
            <div class="span3">
              <% if signed_in? %>
               <%= link_to "Sign Me Out :(", signout_path, class: "btn btn-large btn-primary" %>
               <% else %>
               <%= link_to "Sign In To Vote", signin_path, class: "btn btn-large btn-primary" %>
               <br />
               <%= link_to "...or, create an account", signup_path %>
               <% end %>
               <br />
                <br />

              <div class="well sidebar-nav">
                <h3>Side Dish</h3>
                <ul class="nav nav-list">
                  <!-- <li class="nav-header">In case this page doesn't have enough links for you...</li> -->
                  <% if signed_in? %>
                  <li><%= link_to "My Profile", "#{current_user.id}" %></li>
                  <li><%= link_to "Submit Post", new_post_path %></li>
                  <% else %>
                  <li><%= link_to "Why Join Us?", "/about" %></li>
                  <% end %>
                  <% if Post.count > 0 %>
                    <li><%= link_to "Random Post", post_path(Post.random_post) %></li>
                  <% end %>
                  <li><%= link_to "Our Fav Post", "/posts/31" %></li>

                   </ul>
                    </div><!--/.well -->



            </div><!--/span-->
        </div><!--/row-->
      </div><!--/content-->

      <footer>
        <p>&copy; JK 2012</p>
      </footer>

    </div> <!-- /container -->

    <!-- Javascripts
================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <%= javascript_include_tag "application" %>

  </body>
</html>
Something went wrong with that request. Please try again.