1
0
mirror of https://git.feneas.org/feneas/fediverse.git synced 2024-12-23 12:59:20 +01:00
guida-fediverso/themes/starter/layout/_partial/world.ejs

87 lines
2.5 KiB
Plaintext
Raw Normal View History

2018-03-12 20:31:14 +01:00
<%
const network = page.network;
const w = network + 'World';
const world = site.data.worldi18n.worlds[w];
const data = site.data[network].data;
const numbers = site.data.numbers.list[network];
2018-05-28 02:05:57 +02:00
const connections = data.connections;
2018-03-12 20:31:14 +01:00
const stars = data.notable;
const reading = world.reading;
%>
<section class="section-hero">
<h3>
<span><%- __('total') %></span><span> ~ <%= numbers.population %></span><span><%- __('accounts') %></span><sup>[1]</sup>
</h3>
<% if (numbers.activeUsers) { %>
2018-03-12 20:31:14 +01:00
<h3>
<span><%- __('active') %></span><span> ~ <%= numbers.activeUsers %></span><span><%- __('people') %></span><sup>[2]</sup>
</h3>
<% } %>
<h3>
<span><%- __('servers') %></span><span> > <%= numbers.podsNum %></span><span><%- __('instances') %></span><sup>
<% if (numbers.activeUsers) { %>[3] <% } else { %> [2] <% } %>
2018-03-12 20:31:14 +01:00
</sup>
</h3>
</section>
<div class="section-title">
<h2><%- __('world') %></h2>
</div>
<div class="section-wrapper">
<div class="column">
<div class="section">
<h4><%- __('mascot') %></h4><span><%= world.mascot %></span>
</div>
<div class="section">
<h4><%- __('dwellers') %></h4><span><%= world.dwellers %></span>
</div>
</div>
<div class="column">
<div class="section">
<h4><%- __('communities') %></h4>
<% if (data.communities) { %>
2018-03-13 23:00:49 +01:00
<span><a href="<%= data.communities %>"><%= world.communities %></a></span>
2018-03-12 20:31:14 +01:00
<% } else { %>
<span class="u-temp"><%- __('soon') %></span>
<% } %>
</div>
2018-05-28 02:05:57 +02:00
<div class="section">
<h4><dfn title="The platform let's you follow users of these networks"><%- __('connections') %></dfn></h4>
<ul class="article-list">
<% for (item in connections) { %>
<li class="u-inline"><%= connections[item] %><span>,&nbsp;</span></li>
<% } %>
</ul>
</div>
2018-03-12 20:31:14 +01:00
</div>
</div>
2018-04-23 03:52:58 +02:00
<p class="description"><%= world.descr %> <a href="<%= data.official %>">Join <%= page.title %> today!</a></p>
2018-03-12 20:31:14 +01:00
<% if (stars) { %>
2018-03-12 20:31:14 +01:00
<div class="section u-block with-image">
<h4><%- __('stars') %></h4>
<ul class="section-list">
<% for (item in stars) { %>
<li class="u-inline">
2018-04-30 12:32:32 +02:00
<a href="<%= stars[item].url %>" title="<%= stars[item].name %>"><img src="<%= stars[item].avatar %>" alt="user"></a>
2018-03-12 20:31:14 +01:00
</li>
<% } %>
</ul>
</div>
<% } %>
<% if (reading) { %>
2018-03-12 20:31:14 +01:00
<div class="section u-block">
<h4><%- __('reading') %></h4>
<ul>
<% for (item in reading) { %>
<li><a href="<%= reading[item].url %>"><%= reading[item].title %></a></li>
<% } %>
</ul>
</div>
<% } %>