-
Notifications
You must be signed in to change notification settings - Fork 408
/
application.html.erb
36 lines (31 loc) · 1.06 KB
/
application.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<title>Kandan</title>
<%= stylesheet_link_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-lightness/jquery-ui.css" %>
<%= stylesheet_link_tag "http://fonts.googleapis.com/css?family=PT+Sans:400,700" %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%- Kandan::Config.broadcaster.assets.each do |asset| %>
<%= javascript_include_tag asset %>
<%- end %>
<%= javascript_include_tag "application" %>
<%= javascript_tag do %>
<%- if user_signed_in? %>
<%- current_user_data = {
:id => current_user.id,
:first_name => current_user.first_name,
:last_name => current_user.last_name,
:auth_token => current_user.authentication_token,
:gravatar_hash => current_user.gravatar_hash
}
%>
$.data(document, "current-user", <%= current_user_data.to_json.html_safe %>);
<%- end %>
$(document).data("active-users", [])
<%- end %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>