mirror of
https://gitea.invidious.io/iv-org/instances-api.git
synced 2024-08-15 00:53:15 +00:00
Shorten longer URLs
This commit is contained in:
parent
57c113fbcc
commit
e94bb4fa4a
1 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<p>
|
<p>
|
||||||
<span>Instances sourced from <a href="https://github.com/omarroth/invidious/wiki/Invidious-Instances">here</a>.</span>
|
<span>Add your instance <a href="https://github.com/omarroth/invidious/wiki/Invidious-Instances">here</a>.</span>
|
||||||
<span class="right"><a href="/instances.json?pretty=1">JSON</a></span>
|
<span class="right"><a href="/instances.json?pretty=1">JSON</a></span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -74,7 +74,7 @@
|
||||||
<% instances.each_with_index do |tuple, index| %>
|
<% instances.each_with_index do |tuple, index| %>
|
||||||
<% name, instance = tuple %>
|
<% name, instance = tuple %>
|
||||||
<tr<% if index % 2 == 1 %> class="pure-table-odd" <% end %>>
|
<tr<% if index % 2 == 1 %> class="pure-table-odd" <% end %>>
|
||||||
<td><a href="<%= instance[:uri] %>"><%= name %></a></td>
|
<td><a href="<%= instance[:uri] %>"><%= name.size > 24 ? "#{name[0, 12]}...#{name[-9, 9]}" : name %></a></td>
|
||||||
<td><%= instance[:stats]?.try &.["software"]?.try &.["version"] || "-" %></td>
|
<td><%= instance[:stats]?.try &.["software"]?.try &.["version"] || "-" %></td>
|
||||||
<td><%= instance[:type] %></td>
|
<td><%= instance[:type] %></td>
|
||||||
<td><%= instance[:stats]?.try &.["usage"]?.try &.["users"]["total"] || "-" %></td>
|
<td><%= instance[:stats]?.try &.["usage"]?.try &.["users"]["total"] || "-" %></td>
|
||||||
|
|
Loading…
Reference in a new issue