summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorguntasgrewal <guntasgrewal@gmail.com>2014-04-27 23:26:00 -0400
committerguntasgrewal <guntasgrewal@gmail.com>2014-04-27 23:26:00 -0400
commit6cbf08bb7659dc3265b45d05a66170f1c69ce696 (patch)
tree05e4c3c2a1fe430191d5da14a0604214f069aff9 /app/views/layouts
parenta0ac7f939c770a8202f32805b879abd71de91170 (diff)
Alerts now have AJAX. Seeds were changed for tournaments to have sampling methods.
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/application.html.erb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 9eea734..f3535e9 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -35,9 +35,8 @@
<%= link_to "Create Alert", new_alert_path, :class => "create-alert" %>
<% end %>
<%= link_to "Sign out", session_path("current"), method: "delete", :class => "signout" %>
- <%= link_to "", alerts_path, :class => "alerts"%>
-
-
+ <%# if there is an unread alert then I wanna be able to show the notification icon by saying :style => display:inline. This will be Done by Guntas once he figures out how to get unread alerts. Psuedo if alerts.unread > 0 then display else don't.%>
+ <%= link_to "", alerts_path, :class => "alerts", :id => "alerts-ajax"%>
<% else %>
<%= link_to "Log in", new_session_path, :class => "signin" %>
<%= link_to "Sign up", new_user_path, :class => "signup" %>