From e94bb4fa4a95b661a319cfbf433d5d935b331857 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 5 Sep 2019 07:38:49 -0400 Subject: [PATCH] Shorten longer URLs --- src/instances/views/index.ecr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instances/views/index.ecr b/src/instances/views/index.ecr index c838a04..bdf7c41 100644 --- a/src/instances/views/index.ecr +++ b/src/instances/views/index.ecr @@ -51,7 +51,7 @@

- Instances sourced from here. + Add your instance here. JSON

@@ -74,7 +74,7 @@ <% instances.each_with_index do |tuple, index| %> <% name, instance = tuple %> class="pure-table-odd" <% end %>> - <%= name %> + <%= name.size > 24 ? "#{name[0, 12]}...#{name[-9, 9]}" : name %> <%= instance[:stats]?.try &.["software"]?.try &.["version"] || "-" %> <%= instance[:type] %> <%= instance[:stats]?.try &.["usage"]?.try &.["users"]["total"] || "-" %>