Skip to content

Commit

Permalink
prettier h1s for each page
Browse files Browse the repository at this point in the history
  • Loading branch information
caseywatts committed Sep 24, 2014
1 parent 17a82a6 commit 82ba747
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 28 deletions.
2 changes: 1 addition & 1 deletion app/views/attendance_entries/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<li><%= link_to @attendance_entry.name, attendance_entry_path(@attendance_entry) %></li>
<li>Edit</li>
</ol>
<h1>An Attendance Entry for <%= @attendance_entry.event.title %></h1>
<h1><%= @attendance_entry.name %> <small>Edit</small></h1>

<%= render 'form' %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/attendance_entries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<li><%= @event.title %></li>
</ol>

<h1>Attendance List for <%= @event.title %></h1>
<h1><%= @event.title %> <small>Attendance List</small></h1>

<p>
This table shows only the most useful Yale Phonebook (LDAP) attributes - you can see more details in two ways:
Expand Down
2 changes: 1 addition & 1 deletion app/views/attendance_entries/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<li><%= link_to @event.title, event_attendance_entries_path(@event) %></li>
<li>New Entry</li>
</ol>
<h1>An Attendance Entry for <%= @event.title %></h1>
<h1><%= @event.title %> <small>New Attendance Entry</small></h1>

<%= render 'form' %>
Expand Down
3 changes: 3 additions & 0 deletions app/views/attendance_entries/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<li><%= link_to @attendance_entry.event.title, event_attendance_entries_path(@attendance_entry.event) %></li>
<li><%= @attendance_entry.name %></li>
</ol>

<h1><%= @attendance_entry.name %> <small>Details</small></h1>

<p id="notice"><%= notice %></p>

<p>
Expand Down
7 changes: 2 additions & 5 deletions app/views/events/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
<li><%= link_to @event.title, event_path(@event) %></li>
<li>Edit</li>
</ol>
<h1>Editing event</h1>
<h1><%= @event.title %> <small>Edit</small></h1>

<%= render 'form' %>
<%= link_to 'Show', @event %> |
<%= link_to 'Back', events_path %>
<%= render 'form' %>
4 changes: 2 additions & 2 deletions app/views/events/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th></th>
<th></th>
<th>Title</th>
<th>Description</th>
<th>Count</th>
<th>Last Swipe-In</th>
<th></th>
<th></th>
</tr>
</thead>

Expand All @@ -38,11 +38,11 @@
<span class="glyphicon glyphicon-list-alt"></span> Attendance
<% end %>
</td>
<td><%= link_to 'Edit Event', edit_event_path(event), :class => "btn btn-default" %></td>
<td><%= event.title %></td>
<td><%= event.description %></td>
<td><%= event.attendance_entries.count %></td>
<td><%= event.last_edited %></td>
<td><%= link_to 'Edit', edit_event_path(event), :class => "btn btn-default" %></td>
<td><%= link_to 'Destroy', event, method: :delete, data: { confirm: 'Are you sure?' }, :class => "btn btn-danger" %></td>
</tr>
<% end %>
Expand Down
8 changes: 5 additions & 3 deletions app/views/events/new.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<ol class="breadcrumb">
<li><%= link_to "Events", events_path %></li>
<li>New</li>
</ol>
<h1>New event</h1>

<%= render 'form' %>
<%= link_to 'Back', events_path %>
<%= render 'form' %>
14 changes: 0 additions & 14 deletions app/views/events/show.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion app/views/events/show.json.jbuilder

This file was deleted.

0 comments on commit 82ba747

Please sign in to comment.