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

48 lines
1.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 protocols = data.protocols;
%>
<section class="column">
<div class="section">
<h4><%- __('category') %></h4><span><%= world.category %></span>
</div>
<div class="section">
<h4><%- __('type') %></h4><span><%= world.type %></span>
</div>
<div class="section">
<h4><%- __('created') %></h4><span><%= data.created %></span>
</div>
<div class="section">
<h4><%- __('official') %></h4><span><a href="https://<%= data.official %>"><%= data.official %></a></span>
</div>
<div class="section">
<h4><%- __('license') %></h4><span><%= data.license %></span>
</div>
<div class="section">
<h4><%- __('code') %></h4><span><a href="https://<%= data.repo %>"><%- __('repo') %></a></span>
</div>
<div class="section">
<h4><%- __('language') %></h4><span><%= data.language %></span>
</div>
<div class="section">
<h4><%- __('protocols') %></h4>
<ul class="section-list">
<% for (item in protocols) { %>
<li class="u-inline">
<a href="<%= protocols[item].url %>"><%= protocols[item].title %></a><span>,&nbsp;&nbsp;</span>
</li>
<% } %>
</ul>
</div>
<% if (data.wiki !== "") { %>
<div class="section">
<h4><%- __('wiki') %></h4><span><a href="https://<%= data.wiki %>"><%- __('resources') %></a></span>
</div>
<% } %>
</section>