Layout cleanup
This commit is contained in:
parent
ed72967007
commit
461d3c6b7b
3 changed files with 14 additions and 9 deletions
|
@ -1,9 +1,12 @@
|
||||||
<h1>Listing friendships</h1>
|
<h2>Listing friendships</h2>
|
||||||
|
|
||||||
<table>
|
<table class="table table-striped table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="3"></th>
|
<th>Name</th>
|
||||||
|
<th>Created</th>
|
||||||
|
<th>Updated</th>
|
||||||
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -11,6 +14,8 @@
|
||||||
<% @friendships.each do |friendship| %>
|
<% @friendships.each do |friendship| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= friendship.friend.name %></td>
|
<td><%= friendship.friend.name %></td>
|
||||||
|
<td><%= friendship.created_at %></td>
|
||||||
|
<td><%= friendship.updated_at %></td>
|
||||||
<td>[ <%= link_to 'Destroy', friendship, method: :delete,
|
<td>[ <%= link_to 'Destroy', friendship, method: :delete,
|
||||||
data: { confirm: 'Are you sure?' } %> ]</td>
|
data: { confirm: 'Are you sure?' } %> ]</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>Finduslunch</title>
|
<title>Find Us Lunch</title>
|
||||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
|
||||||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
|
||||||
<%= csrf_meta_tags %>
|
<%= csrf_meta_tags %>
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li><%= link_to 'Home', root_path %></li>
|
<li><%= link_to 'Home', root_path %></li>
|
||||||
<% if current_user %>
|
<% if current_user %>
|
||||||
|
<li><%= link_to 'Friends', friendships_path %></li>
|
||||||
<li><%= link_to 'Users', users_path %></li>
|
<li><%= link_to 'Users', users_path %></li>
|
||||||
<li><%= link_to 'Friendships', friendships_path %></li>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="nav navbar-nav navbar-right">
|
<ul class="nav navbar-nav navbar-right">
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Name</td>
|
<th>Name</th>
|
||||||
<td>Created</td>
|
<th>Created</th>
|
||||||
<td>Updated</td>
|
<th>Updated</th>
|
||||||
<td>Actions</td>
|
<th>Actions</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
Loading…
Reference in a new issue