aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/shard_web/templates/page
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-12 14:40:21 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-12 14:40:21 +0200
commit1e91dc596fd2f7fdd96b7fd2fc50724f93e46529 (patch)
tree067d56e6fb9e215cc76dea5c9c82e61ef369d90e /shardweb/lib/shard_web/templates/page
parentd15d5fbfc5133a9d0f0d99dbbfc023849f61cc37 (diff)
downloadshard-1e91dc596fd2f7fdd96b7fd2fc50724f93e46529.tar.gz
shard-1e91dc596fd2f7fdd96b7fd2fc50724f93e46529.zip
Move and reorganize some stuff
Diffstat (limited to 'shardweb/lib/shard_web/templates/page')
-rw-r--r--shardweb/lib/shard_web/templates/page/index.html.eex47
1 files changed, 0 insertions, 47 deletions
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 @@
-<!-- Page Heading -->
-<div class="row">
- <div class="col-lg-12">
- <h1 class="page-header">
- Peer list
-
- </h1>
- <ol class="breadcrumb">
- <li>
- <i class="fa fa-dashboard"></i> Dashboard
- </li>
- <li class="active">
- <i class="fa fa-globe"></i> Peer list
- </li>
- </ol>
- </div>
-</div>
-<!-- /.row -->
-
-<%= render ShardWeb.LayoutView, "flashes.html", assigns %>
-
-<table class="table table-striped">
- <tr>
- <th>Peer ID</th>
- <th>Address</th>
- <th>Port</th>
- </tr>
- <%= for {{:inet, ip, port}, _pid, auth} <- conn_list() do %>
- <tr>
- <td>
- <%= case auth do %>
- <% nil -> %>(anonymous)
- <% %SNet.Auth{his_pk: his_pk} -> %> <%= Shard.Keys.pk_display(his_pk) %>
- <% end %>
- </td>
- <td><%= :inet_parse.ntoa(ip) %></td>
- <td><%= port %></td>
- </tr>
- <% end %>
-</table>
-
-<%= 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 %>
-