From 919725a6941830ce82c835ed3288c1722ddd8c9f Mon Sep 17 00:00:00 2001 From: href Date: Fri, 17 Apr 2020 15:53:14 +0200 Subject: bleh --- lib/lsg_web/templates/alcoolog/index.html.eex | 55 +++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 lib/lsg_web/templates/alcoolog/index.html.eex (limited to 'lib/lsg_web/templates') diff --git a/lib/lsg_web/templates/alcoolog/index.html.eex b/lib/lsg_web/templates/alcoolog/index.html.eex new file mode 100644 index 0000000..507be71 --- /dev/null +++ b/lib/lsg_web/templates/alcoolog/index.html.eex @@ -0,0 +1,55 @@ + + +

+ <%= Keyword.get(Application.get_env(:lsg, :irc), :name, "ircbot") %>
+ alcoolog <%= @channel %> +

+ + + +

+ top consommateur par volume, les 7 derniers jours: <%= Enum.intersperse(for({nick, count} <- @top, do: "#{nick}: #{Float.round(count,4)}"), ", ") %> +

+ + + + + + + + + + + + <%= for {{nick, date}, points, _, nom, comment} <- @drinks do %> + <% date = DateTime.from_unix!(date, :millisecond) %> + + + + + + <% end %> + +
datenickpointsnom
<%= LSGWeb.LayoutView.format_time(date, false) %><%= nick %><%= Float.round(points+0.0, 5) %><%= nom||"" %> <%= comment||"" %>
+ -- cgit v1.2.3