diff --git a/lib/lsg_web/endpoint.ex b/lib/lsg_web/endpoint.ex
index b0cf9c5..a401f54 100644
--- a/lib/lsg_web/endpoint.ex
+++ b/lib/lsg_web/endpoint.ex
@@ -1,62 +1,62 @@
defmodule NolaWeb.Endpoint do
use Sentry.PlugCapture
use Phoenix.Endpoint, otp_app: :nola
# Serve at "/" the static files from "priv/static" directory.
#
# You should set gzip to true if you are running phoenix.digest
# when deploying your static files in production.
plug Plug.Static,
at: "/", from: :nola, gzip: false,
only: ~w(assets css js fonts images favicon.ico robots.txt)
# Code reloading can be explicitly enabled under the
# :code_reloader configuration of your endpoint.
if 42==43 && code_reloading? do
socket "/phoenix/live_reload/socket", Phoenix.LiveReloader.Socket
plug Phoenix.LiveReloader
plug Phoenix.CodeReloader
end
plug Plug.RequestId
plug Plug.Logger
plug Plug.Parsers,
parsers: [:urlencoded, :multipart, :json],
pass: ["*/*"],
json_decoder: Jason
plug Sentry.PlugContext
plug Plug.MethodOverride
plug Plug.Head
@session_options [store: :cookie,
- key: "_lsg_key",
+ key: "_nola_key",
signing_salt: "+p7K3wrj"]
socket "/live", Phoenix.LiveView.Socket,
websocket: [connect_info: [session: @session_options]]
# The session will be stored in the cookie and signed,
# this means its contents can be read but not tampered with.
# Set :encryption_salt if you would also like to encrypt it.
plug Plug.Session, @session_options
plug NolaWeb.Router
@doc """
Callback invoked for dynamically configuring the endpoint.
It receives the endpoint configuration and checks if
configuration should be loaded from the system environment.
"""
def init(_key, config) do
if config[:load_from_system_env] do
port = System.get_env("PORT") || raise "expected the PORT environment variable to be set"
{:ok, Keyword.put(config, :http, [:inet6, port: port])}
else
{:ok, config}
end
end
end
diff --git a/lib/lsg_web/live/chat_live.html.heex b/lib/lsg_web/live/chat_live.html.heex
index fc1f582..29cd6a1 100644
--- a/lib/lsg_web/live/chat_live.html.heex
+++ b/lib/lsg_web/live/chat_live.html.heex
@@ -1,91 +1,91 @@
diff --git a/lib/lsg_web/lsg_web.ex b/lib/lsg_web/lsg_web.ex
index da622c7..906e961 100644
--- a/lib/lsg_web/lsg_web.ex
+++ b/lib/lsg_web/lsg_web.ex
@@ -1,99 +1,99 @@
defmodule NolaWeb do
@moduledoc """
The entrypoint for defining your web interface, such
as controllers, views, channels and so on.
This can be used in your application as:
use NolaWeb, :controller
use NolaWeb, :view
The definitions below will be executed for every view,
controller, etc, so keep them short and clean, focused
on imports, uses and aliases.
Do NOT define functions inside the quoted expressions
below. Instead, define any helper function in modules
and import those modules here.
"""
def format_chan("##") do
"♯♯"
end
def format_chan("#") do
"♯"
end
def format_chan("#"<>chan) do
chan
end
def format_chan(chan = "!"<>_), do: chan
def reformat_chan("♯") do
"#"
end
def reformat_chan("♯♯") do
"##"
end
def reformat_chan(chan = "!"<>_), do: chan
def reformat_chan(chan) do
"#"<>chan
end
def controller do
quote do
use Phoenix.Controller, namespace: NolaWeb
import Plug.Conn
import NolaWeb.Router.Helpers
import NolaWeb.Gettext
alias NolaWeb.Router.Helpers, as: Routes
end
end
def view do
quote do
- use Phoenix.View, root: "lib/lsg_web/templates",
+ use Phoenix.View, root: "lib/nola_web/templates",
namespace: NolaWeb
# Import convenience functions from controllers
import Phoenix.Controller, only: [get_flash: 2, view_module: 1]
# Use all HTML functionality (forms, tags, etc)
use Phoenix.HTML
import NolaWeb.Router.Helpers
import NolaWeb.ErrorHelpers
import NolaWeb.Gettext
import Phoenix.LiveView.Helpers
alias NolaWeb.Router.Helpers, as: Routes
end
end
def router do
quote do
use Phoenix.Router
import Plug.Conn
import Phoenix.Controller
import Phoenix.LiveView.Router
end
end
def channel do
quote do
use Phoenix.Channel
import NolaWeb.Gettext
end
end
@doc """
When used, dispatch to the appropriate controller/view/etc.
"""
defmacro __using__(which) when is_atom(which) do
apply(__MODULE__, which, [])
end
end
diff --git a/lib/lsg_web/templates/alcoolog/index.html.eex b/lib/lsg_web/templates/alcoolog/index.html.eex
index 263da95..5a5423a 100644
--- a/lib/lsg_web/templates/alcoolog/index.html.eex
+++ b/lib/lsg_web/templates/alcoolog/index.html.eex
@@ -1,205 +1,205 @@
<%= if @stats == [] do %>
CATASTROPHE! Personne n'a bu!!!!
<% end %>
<%= for {nick, status} <- @stats do %>
<%= link nick, to: alcoolog_path(@conn, :nick, @network, nick) %>
<%= if n = @conn.assigns[:network] do %><%= n %> › <% end %>
- <%= if c = @conn.assigns[:chan] do %><%= c %> › <% end %>
+ <%= if c = @conn.assigns[:chan] do %><%= c %> › <% end %>
<%= for({name, href} <- Enum.uniq(@conn.assigns[:breadcrumbs]||[]), do: [link(name, to: href), raw(" › ")]) %>
<%= @conn.assigns[:title] %>