summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-07 16:14:28 +0200
committerhref <href@random.sh>2021-09-07 16:14:28 +0200
commit04062d5f2985c7fe8c0b2e3998a8886b5b99813b (patch)
tree164691a075be0de030d1d11f709407be9c8c4479
parentassets update (diff)
Fixes
-rw-r--r--lib/lsg_web/context_plug.ex1
-rw-r--r--lib/lsg_web/templates/alcoolog/index.html.eex9
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/lsg_web/context_plug.ex b/lib/lsg_web/context_plug.ex
index 29eab28..aaf851e 100644
--- a/lib/lsg_web/context_plug.ex
+++ b/lib/lsg_web/context_plug.ex
@@ -10,6 +10,7 @@ defmodule LSGWeb.ContextPlug do
cond do
get_session(conn, :account) -> get_session(conn, :account)
get_session(conn, :oidc_id) -> if account = IRC.Account.find_meta_account("identity-id", get_session(conn, :oidc_id)), do: account.id
+ true -> nil
end
end
diff --git a/lib/lsg_web/templates/alcoolog/index.html.eex b/lib/lsg_web/templates/alcoolog/index.html.eex
index 3f522e9..263da95 100644
--- a/lib/lsg_web/templates/alcoolog/index.html.eex
+++ b/lib/lsg_web/templates/alcoolog/index.html.eex
@@ -151,12 +151,12 @@ _ -> {"gray-300", ""}
<%= link("alcoolog global", to: alcoolog_path(@conn, :index)) %>
<% end %>
-<link href='/assets/css/metricsgraphics.css' rel='stylesheet' type='text/css'>
+<link href='/css/metricsgraphics.css' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.css" integrity="sha512-SUJFImtiT87gVCOXl3aGC00zfDl6ggYAw5+oheJvRJ8KBXZrr/TMISSdVJ5bBarbQDRC2pR5Kto3xTR0kpZInA==" crossorigin="anonymous" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.min.js" integrity="sha512-vBmx0N/uQOXznm/Nbkp7h0P1RfLSj0HQrFSzV8m7rOGyj30fYAOKHYvCNez+yM8IrfnW0TCodDEjRqf6fodf/Q==" crossorigin="anonymous"></script>
-<script src="/assets/js/jquery3.1.0.min.js"></script>
-<script src="/assets/js/d3.v4.min.js"></script>
-<script src="/assets/js/metricsgraphics.min.js"></script>
+<script src="/js/jquery3.1.0.min.js"></script>
+<script src="/js/d3.v4.min.js"></script>
+<script src="/js/metricsgraphics.min.js"></script>
<script type="text/javascript">
(function() {
// oui s trè moch :( :( :(
@@ -203,4 +203,3 @@ var myChart = new Chart(ctx, {
})();
</script>
-