added default bootstrap navbar

This commit is contained in:
Bret Haynie 2014-04-24 21:32:32 -04:00
parent e63409d72a
commit ca2c204b67
4 changed files with 67 additions and 43 deletions

View File

@ -1,3 +1,10 @@
nav {
background: #f9f9f9;
}
section {
margin-top: 70px;
}
$medgray: #3A9AC9; $medgray: #3A9AC9;
.videolisting { .videolisting {

View File

@ -1,8 +1,10 @@
<h1>Listing campaigns</h1> <div class="container">
<table class="table table-striped"> <section>
<h1>Listing Campaigns</h1>
<table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Listing Code(Form Hash)</th> <th>Listing Code (Form Hash)</th>
<th>Processed?</th> <th>Processed?</th>
<th>Billing Code</th> <th>Billing Code</th>
<th>Address</th> <th>Address</th>
@ -13,7 +15,6 @@
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<% @campaigns.each do |campaign| %> <% @campaigns.each do |campaign| %>
<tr> <tr>
@ -29,8 +30,7 @@
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<%= link_to 'Add New Campaign', new_campaign_path %>
<br> </section>
</div>
<%= link_to 'New Campaign', new_campaign_path %>

View File

@ -1,3 +1,4 @@
<br><br><br>
<%= link_to 'Edit', edit_campaign_path(@campaign.listingcode) %> | <%= link_to 'Edit', edit_campaign_path(@campaign.listingcode) %> |
<%= link_to 'Back', campaigns_path %> <%= link_to 'Back', campaigns_path %>

View File

@ -1,7 +1,23 @@
<% if user_signed_in? %> <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<%= link_to "Profile", edit_user_registration_path %> <div class="container">
<%= link_to "Logout", destroy_user_session_path, :method => :delete %> <div class="navbar-header">
<% else %> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<%= link_to "Sign in", new_user_session_path %> <span class="sr-only">Toggle navigation</span>
<% end %> <span class="icon-bar"></span>
----- <span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">VidPush</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<% if user_signed_in? %>
<li><%= link_to "Profile", edit_user_registration_path %></li>
<li><%= link_to "Logout", destroy_user_session_path, :method => :delete %></li>
<% else %>
<li><%= link_to "Sign in", new_user_session_path %></li>
<% end %>
</ul>
</div>
</div>
</div>