1
0
Fork 0

Layout cleanup

This commit is contained in:
Andrew Tomaka 2014-10-27 12:16:50 -04:00
parent ed72967007
commit 461d3c6b7b
3 changed files with 14 additions and 9 deletions

View file

@ -1,9 +1,12 @@
<h1>Listing friendships</h1>
<h2>Listing friendships</h2>
<table>
<table class="table table-striped table-hover">
<thead>
<tr>
<th colspan="3"></th>
<th>Name</th>
<th>Created</th>
<th>Updated</th>
<th>Actions</th>
</tr>
</thead>
@ -11,6 +14,8 @@
<% @friendships.each do |friendship| %>
<tr>
<td><%= friendship.friend.name %></td>
<td><%= friendship.created_at %></td>
<td><%= friendship.updated_at %></td>
<td>[ <%= link_to 'Destroy', friendship, method: :delete,
data: { confirm: 'Are you sure?' } %> ]</td>
</tr>

View file

@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Finduslunch</title>
<title>Find Us Lunch</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
@ -23,8 +23,8 @@
<ul class="nav navbar-nav">
<li><%= link_to 'Home', root_path %></li>
<% if current_user %>
<li><%= link_to 'Friends', friendships_path %></li>
<li><%= link_to 'Users', users_path %></li>
<li><%= link_to 'Friendships', friendships_path %></li>
<% end %>
</ul>
<ul class="nav navbar-nav navbar-right">

View file

@ -3,10 +3,10 @@
<table class="table table-striped table-hover">
<thead>
<tr>
<td>Name</td>
<td>Created</td>
<td>Updated</td>
<td>Actions</td>
<th>Name</th>
<th>Created</th>
<th>Updated</th>
<th>Actions</th>
</tr>
</thead>
<tbody>