From 29e0342e12d3111ae3164c4478d7d5a5796665ad Mon Sep 17 00:00:00 2001
From: Jordan Bracco
Date: Sat, 17 Dec 2022 14:08:54 +0000
Subject: Nola rename, cont. pt. 4. Refs T77.
---
lib/lsg_web/endpoint.ex | 2 +-
lib/lsg_web/live/chat_live.html.heex | 6 +++---
lib/lsg_web/lsg_web.ex | 2 +-
lib/lsg_web/templates/alcoolog/index.html.eex | 6 +++---
lib/lsg_web/templates/alcoolog/user.html.eex | 6 +++---
lib/lsg_web/templates/irc/index.html.eex | 6 +++---
lib/lsg_web/templates/irc/txts.html.eex | 6 +++---
lib/lsg_web/templates/layout/app.html.eex | 2 +-
lib/lsg_web/templates/page/user.html.eex | 2 +-
9 files changed, 19 insertions(+), 19 deletions(-)
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
@@ -31,7 +31,7 @@ defmodule NolaWeb.Endpoint do
plug Plug.Head
@session_options [store: :cookie,
- key: "_lsg_key",
+ key: "_nola_key",
signing_salt: "+p7K3wrj"]
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
@@ -27,7 +27,7 @@
<%= if is_map(message) && Map.get(message, :__struct__) == IRC.Message do %>
-
-
+
* * *
-
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
@@ -55,7 +55,7 @@ defmodule NolaWeb do
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
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
@@ -38,7 +38,7 @@ ol li {
<%= if status.last_descr && status.last_descr != "" do %>
<%= status.last_descr %>
<% end %>
- <%= LSGWeb.LayoutView.format_time(status.last_at) %>
+ <%= NolaWeb.LayoutView.format_time(status.last_at) %>
@@ -131,7 +131,7 @@ _ -> {"gray-300", ""}
<% date = DateTime.from_unix!(date, :millisecond) %>
- <%= LSGWeb.LayoutView.format_time(date, false) %>
+ <%= NolaWeb.LayoutView.format_time(date, false) %>
<%= link nick, to: alcoolog_path(@conn, :nick, @network, nick) %>
@@ -161,7 +161,7 @@ _ -> {"gray-300", ""}
(function() {
// oui s trè moch :( :( :(
var ctx = document.getElementById('myChart').getContext('2d');
- d3.json('<%= alcoolog_path(@conn, :index_gls_json, @network, LSGWeb.format_chan(@channel)) %>', function(data) {
+ d3.json('<%= alcoolog_path(@conn, :index_gls_json, @network, NolaWeb.format_chan(@channel)) %>', function(data) {
var dynamicColors = function() {
var r = Math.floor(Math.random() * 255);
diff --git a/lib/lsg_web/templates/alcoolog/user.html.eex b/lib/lsg_web/templates/alcoolog/user.html.eex
index 8907f9a..d7f716b 100644
--- a/lib/lsg_web/templates/alcoolog/user.html.eex
+++ b/lib/lsg_web/templates/alcoolog/user.html.eex
@@ -12,7 +12,7 @@
<% end %>
- <%= LSGWeb.LayoutView.format_time(@stats.last_at) %>
+ <%= NolaWeb.LayoutView.format_time(@stats.last_at) %>
@@ -34,7 +34,7 @@
<% end %>
- <%= LSGWeb.LayoutView.format_time(@stats.last_at) %>
+ <%= NolaWeb.LayoutView.format_time(@stats.last_at) %>
<% end %>
@@ -65,7 +65,7 @@
<% class = if(Integer.is_even(index), do: "bg-gray-50", else: "bg-white") %>
- <%= LSGWeb.LayoutView.format_time(date, false) %>
+ <%= NolaWeb.LayoutView.format_time(date, false) %>
<%= cl %>cl <%= deg %>°
<%= comment||"" %>
diff --git a/lib/lsg_web/templates/irc/index.html.eex b/lib/lsg_web/templates/irc/index.html.eex
index 6cc3128..182624d 100644
--- a/lib/lsg_web/templates/irc/index.html.eex
+++ b/lib/lsg_web/templates/irc/index.html.eex
@@ -1,6 +1,6 @@
- <%= link("live", to: LSGWeb.Router.Helpers.live_path(LSGWeb.Endpoint, LSGWeb.ChatLive, @network, LSGWeb.format_chan(@chan)), class: "py-4 font-medium leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50", 'data-turbo': false) %>
+ <%= link("live", to: NolaWeb.Router.Helpers.live_path(NolaWeb.Endpoint, NolaWeb.ChatLive, @network, NolaWeb.format_chan(@chan)), class: "py-4 font-medium leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50", 'data-turbo': false) %>
<% list = for {identifier, _} <- @commands do %>
<% name = String.replace(identifier, "_", " ") %>
<%= link(name, to: "##{identifier}", class: "py-4 font-medium leading-5 rounded-md text-gray-500 hover:text-gray-700 focus:outline-none focus:text-indigo-600 focus:bg-indigo-50") %>
@@ -19,7 +19,7 @@
<%= for {identifier, help} <- @commands do %>
<%= if help do %>
-
<%= LSGWeb.LayoutView.liquid_markdown(@conn, help) %>
+
<%= NolaWeb.LayoutView.liquid_markdown(@conn, help) %>
<% end %>
<% end %>
@@ -39,6 +39,6 @@
- running beautte version <%= LSG.version() %> — git
+ running beautte version <%= Nola.version() %> — git
diff --git a/lib/lsg_web/templates/irc/txts.html.eex b/lib/lsg_web/templates/irc/txts.html.eex
index 68d35f5..aff0c5d 100644
--- a/lib/lsg_web/templates/irc/txts.html.eex
+++ b/lib/lsg_web/templates/irc/txts.html.eex
@@ -7,7 +7,7 @@
<%= for {txt, data} <- @data do %>
<% base_url = cond do
- @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{LSGWeb.format_chan(@conn.assigns.chan)}"
+ @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{NolaWeb.format_chan(@conn.assigns.chan)}"
true -> "/-"
end %>
@@ -22,7 +22,7 @@
-<%= LSGWeb.LayoutView.liquid_markdown(@conn, @doc) %>
+<%= NolaWeb.LayoutView.liquid_markdown(@conn, @doc) %>
@@ -32,7 +32,7 @@
<%= for {txt, data} <- @system do %>
<% base_url = cond do
- @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{LSGWeb.format_chan(@conn.assigns.chan)}"
+ @conn.assigns[:chan] -> "/#{@conn.assigns.network}/#{NolaWeb.format_chan(@conn.assigns.chan)}"
true -> "/-"
end %>
diff --git a/lib/lsg_web/templates/layout/app.html.eex b/lib/lsg_web/templates/layout/app.html.eex
index b918ca5..956793f 100644
--- a/lib/lsg_web/templates/layout/app.html.eex
+++ b/lib/lsg_web/templates/layout/app.html.eex
@@ -106,7 +106,7 @@
<%= 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] %>
diff --git a/lib/lsg_web/templates/page/user.html.eex b/lib/lsg_web/templates/page/user.html.eex
index 6eeb39d..de9f718 100644
--- a/lib/lsg_web/templates/page/user.html.eex
+++ b/lib/lsg_web/templates/page/user.html.eex
@@ -10,7 +10,7 @@
<%= for {net, channel} <- @memberships do %>
- <% url = LSGWeb.Router.Helpers.irc_path(LSGWeb.Endpoint, :index, net, LSGWeb.format_chan(channel)) %>
+ <% url = NolaWeb.Router.Helpers.irc_path(NolaWeb.Endpoint, :index, net, NolaWeb.format_chan(channel)) %>
<%= link([net, ": ", content_tag(:strong, channel)], to: url) %>
<% end %>
--
cgit v1.2.3