Changeset View
Changeset View
Standalone View
Standalone View
web/templates/layout/chat.html.eex
- This file was added.
<!DOCTYPE html> | |||||
<html lang="en"> | |||||
<head> | |||||
<meta charset="utf-8"> | |||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1"> | |||||
<meta name="description" content=""> | |||||
<meta name="author" content=""> | |||||
<title><%= gettext "Kolab Real Time Communication" %></title> | |||||
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>"> | |||||
</head> | |||||
<body> | |||||
<div class="container chat"> | |||||
<main role="main"> | |||||
<%= render @view_module, @view_template, assigns %> | |||||
</main> | |||||
</div> <!-- /container --> | |||||
<%= if @conn.assigns[:user] do %> | |||||
<script>window.userToken = "<%= Phoenix.Token.sign(@conn, "user", @conn.assigns[:user].id) %>"</script> | |||||
<script>window.roomId = "<%= @conn.assigns[:room] %>"</script> | |||||
<% end %> | |||||
<script src="<%= static_path(@conn, "/js/app.js") %>"></script> | |||||
</body> | |||||
</html> |