From 1e91dc596fd2f7fdd96b7fd2fc50724f93e46529 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 12 Oct 2018 14:40:21 +0200 Subject: Move and reorganize some stuff --- .../lib/shard_web/templates/identity/view.html.eex | 59 ------ .../lib/shard_web/templates/layout/app.html.eex | 224 --------------------- .../shard_web/templates/layout/flashes.html.eex | 24 --- .../lib/shard_web/templates/page/index.html.eex | 47 ----- .../lib/shard_web/templates/room/show.html.eex | 36 ---- 5 files changed, 390 deletions(-) delete mode 100644 shardweb/lib/shard_web/templates/identity/view.html.eex delete mode 100644 shardweb/lib/shard_web/templates/layout/app.html.eex delete mode 100644 shardweb/lib/shard_web/templates/layout/flashes.html.eex delete mode 100644 shardweb/lib/shard_web/templates/page/index.html.eex delete mode 100644 shardweb/lib/shard_web/templates/room/show.html.eex (limited to 'shardweb/lib/shard_web/templates') diff --git a/shardweb/lib/shard_web/templates/identity/view.html.eex b/shardweb/lib/shard_web/templates/identity/view.html.eex deleted file mode 100644 index 5e57e02..0000000 --- a/shardweb/lib/shard_web/templates/identity/view.html.eex +++ /dev/null @@ -1,59 +0,0 @@ - -
-
-

- <%= @nick %> <%= @pk |> Base.encode16 %> -

- -
-
- - -<%= render ShardWeb.LayoutView, "flashes.html", assigns %> - - -<%= form_for @conn, identity_path(@conn, :update), [class: "form-horizontal"], fn f -> %> -
- -
- -
-
-
- <%= label :nick, "Nickname:", class: ["col-sm-2 control-label"] %> -
- <%= text_input f, :nick, [class: "form-control", value: @nick] %> -
-
-
-
- <%= submit "Update", [class: "btn btn-default"] %> -
-
-<% end %> - -

Other identities

- - - -<%= form_for @conn, identity_path(@conn, :create), [class: "form-inline"], fn _f -> %> - <%= submit "Create new identity", [class: "btn btn-danger"] %> -<% end %> diff --git a/shardweb/lib/shard_web/templates/layout/app.html.eex b/shardweb/lib/shard_web/templates/layout/app.html.eex deleted file mode 100644 index e0cb9dc..0000000 --- a/shardweb/lib/shard_web/templates/layout/app.html.eex +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - - - - - Shard. - - - " rel="stylesheet"> - - - " rel="stylesheet"> - - - " rel="stylesheet"> - - - " rel="stylesheet" type="text/css"> - - - - - - "> - - - - -
- - - - -
- -
- - - - <%= render @view_module, @view_template, assigns %> - -
- - -
- - -
- - - - - - - - - - - - - - <%= render_gon_script(@conn) %> - - - - - - diff --git a/shardweb/lib/shard_web/templates/layout/flashes.html.eex b/shardweb/lib/shard_web/templates/layout/flashes.html.eex deleted file mode 100644 index 5371f43..0000000 --- a/shardweb/lib/shard_web/templates/layout/flashes.html.eex +++ /dev/null @@ -1,24 +0,0 @@ - - <%= if get_flash(@conn, :info) do %> -
-
-
- - <%= get_flash(@conn, :info) %> -
-
-
- <% end %> - - - <%= if get_flash(@conn, :error) do %> -
-
-
- - <%= get_flash(@conn, :error) %> -
-
-
- <% end %> - diff --git a/shardweb/lib/shard_web/templates/page/index.html.eex b/shardweb/lib/shard_web/templates/page/index.html.eex deleted file mode 100644 index f385528..0000000 --- a/shardweb/lib/shard_web/templates/page/index.html.eex +++ /dev/null @@ -1,47 +0,0 @@ - -
-
-

- Peer list - -

- -
-
- - -<%= render ShardWeb.LayoutView, "flashes.html", assigns %> - - - - - - - - <%= for {{:inet, ip, port}, _pid, auth} <- conn_list() do %> - - - - - - <% end %> -
Peer IDAddressPort
- <%= case auth do %> - <% nil -> %>(anonymous) - <% %SNet.Auth{his_pk: his_pk} -> %> <%= Shard.Keys.pk_display(his_pk) %> - <% end %> - <%= :inet_parse.ntoa(ip) %><%= port %>
- -<%= form_for @conn, page_path(@conn, :add_peer), [class: "form-inline"], fn f -> %> - <%= text_input f, :ip, [class: "form-control", placeholder: "Hostname / IP address"] %> - <%= text_input f, :port, [class: "form-control", placeholder: "Port", value: "4044"] %> - <%= submit "Add peer", [class: "btn btn-default"] %> -<% end %> - diff --git a/shardweb/lib/shard_web/templates/room/show.html.eex b/shardweb/lib/shard_web/templates/room/show.html.eex deleted file mode 100644 index 75960b4..0000000 --- a/shardweb/lib/shard_web/templates/room/show.html.eex +++ /dev/null @@ -1,36 +0,0 @@ - -
-
-

- #<%= @room %> - -

- -
-
- - -<%= render ShardWeb.LayoutView, "flashes.html", assigns %> - - - - - - -
-
-
- <<%= @nick %>> -
-
- -
-
-
-- cgit v1.2.3