summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrewMurrell <amurrel@purdue.edu>2014-04-27 21:08:01 -0400
committerAndrewMurrell <amurrel@purdue.edu>2014-04-27 21:08:01 -0400
commit35e21c339f87c1b0b1ed2c871c83ae9602adadc0 (patch)
tree46f7fa69e3350de1c9b491d16d3b9923fedab454
parentdc9c2855c044f18b82a073a6067c81130a99f76a (diff)
parent0f6489cdfcc1c75500a66bc906a13b98629e0617 (diff)
Merge branch 'master' of http://github.com/LukeShu/leaguer
-rw-r--r--app/views/alerts/index.html.erb2
-rw-r--r--app/views/common/_show_tournament.html.erb8
2 files changed, 6 insertions, 4 deletions
diff --git a/app/views/alerts/index.html.erb b/app/views/alerts/index.html.erb
index 1d441a2..c978bea 100644
--- a/app/views/alerts/index.html.erb
+++ b/app/views/alerts/index.html.erb
@@ -15,7 +15,7 @@
<% if !@alerts.nil? %>
<% @alerts.each do |alert| %>
<tr>
- <td><%= alert.author %></td>
+ <td><%= alert.author.user_name %></td>
<td><%= alert.message %></td>
<td><%= link_to 'Show', alert %></td>
<td><%= link_to 'Edit', edit_alert_path(alert) %></td>
diff --git a/app/views/common/_show_tournament.html.erb b/app/views/common/_show_tournament.html.erb
index a1d01d2..151e5d2 100644
--- a/app/views/common/_show_tournament.html.erb
+++ b/app/views/common/_show_tournament.html.erb
@@ -25,9 +25,11 @@
<% if signed_in? %>
<% if !target.players.include?(current_user) %>
<%= form_tag(tournament_path(target), method: "put") do %>
- <input type="hidden" name="update_action" value="join">
- <%= submit_tag("Join")%>
- <% end %>
+ <p>
+ <input type="hidden" name="update_action" value="join">
+ <%= submit_tag("Join")%>
+ <% end %>
+ </p>
<% else %>
<p style="margin-top:10px;"> You've signed up for this tournament! </p>
<% end %>