From 123fbcf6abcfe61ef65cc82f1d22843dde722b23 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 11 Oct 2018 18:58:46 +0200 Subject: Integrate a very very pretty template in shardweb --- shardweb/lib/shard_web/endpoint.ex | 2 +- .../lib/shard_web/templates/layout/app.html.eex | 272 +++++++++++++++++++-- 2 files changed, 252 insertions(+), 22 deletions(-) (limited to 'shardweb/lib/shard_web') diff --git a/shardweb/lib/shard_web/endpoint.ex b/shardweb/lib/shard_web/endpoint.ex index 6883493..fb8a48f 100644 --- a/shardweb/lib/shard_web/endpoint.ex +++ b/shardweb/lib/shard_web/endpoint.ex @@ -9,7 +9,7 @@ defmodule ShardWeb.Endpoint do # when deploying your static files in production. plug Plug.Static, at: "/", from: :shardweb, gzip: false, - only: ~w(css fonts images js favicon.ico robots.txt) + only: ~w(css fonts font-awesome images js favicon.ico robots.txt) # Code reloading can be explicitly enabled under the # :code_reloader configuration of your endpoint. diff --git a/shardweb/lib/shard_web/templates/layout/app.html.eex b/shardweb/lib/shard_web/templates/layout/app.html.eex index d4b2075..bd405e7 100644 --- a/shardweb/lib/shard_web/templates/layout/app.html.eex +++ b/shardweb/lib/shard_web/templates/layout/app.html.eex @@ -1,6 +1,8 @@ - + + + @@ -8,32 +10,260 @@ Shard. + + + " rel="stylesheet"> + + + " rel="stylesheet"> + + + " rel="stylesheet"> + + + " rel="stylesheet" type="text/css"> + + + + + "> - - - -
-
-
- - +
+ +
+ +
+
+

+ Dashboard Statistics Overview +

+ +
+
+ -
- <%= render @view_module, @view_template, assigns %> -
+ <%= if get_flash(@conn, :info) do %> +
+
+
+ + <%= get_flash(@conn, :info) %> +
+
+
+ <% end %> + + + <%= if get_flash(@conn, :error) do %> +
+
+
+ + <%= get_flash(@conn, :error) %> +
+
+
+ <% end %> + + +
+ <%= render @view_module, @view_template, assigns %> +
+ +
+ + +
+ + +
+ + + + + + + + + + + + - <%= render_gon_script(@conn) %> - + + + + -- cgit v1.2.3