Add donate links, remove redundant code

This commit is contained in:
lostinlight 2018-03-24 04:51:28 +03:00
parent f93591af54
commit eba67cfcd9
5 changed files with 12 additions and 10 deletions

View File

@ -19,6 +19,7 @@
"devTutorials": "https://github.com/BanjoFox/aardwolf/blob/master/INSTALL.md",
"notable": "",
"communities": "",
"donate": "https://liberapay.com/Aardwolf",
"tracker": "https://github.com/BanjoFox/aardwolf/issues",
"bounty": "",
"translating": ""

View File

@ -93,6 +93,7 @@
}
],
"communities": "https://github.com/distributopia/masto-world-overview",
"donate": "https://liberapay.com/Mastodon",
"tracker": "https://github.com/tootsuite/mastodon/issues",
"bounty": "",
"translating": "https://github.com/tootsuite/documentation/blob/master/Contributing-to-Mastodon/Translating.md"

View File

@ -23,7 +23,7 @@
<%- __('optionOne2') %>
</li>
<li>
<% if (data.devTutorials !== "") { %>
<% if (data.devTutorials) { %>
<a href="<%= data.devTutorials %>"><%- __('setUp') %></a> <%- __('optionTwo') %>
<% } else { %>
<%- __('setUp') %> <%- __('optionTwo') %>
@ -32,14 +32,14 @@
<li><%- __('optionThree') %></li>
<li>
<%- __('optionFour1') %> <a href="<%= data.tracker %>"><%- __('issue') %></a>. <%- __('optionFour2') %>
<% if (data.bounty !== "") { %>
<% if (data.bounty) { %>
<a href="<%= data.bounty %>"><%- __('bounty') %></a>.
<% } else { %>
<%- __('bounty') %>.
<% } %>
</li>
<li><%- __('help') %>
<% if (data.translating !== "") { %>
<% if (data.translating) { %>
<a href="<%= data.translating %>"><%- __('translating') %></a>.
<% } else { %>
<%- __('translating') %>.
@ -53,6 +53,6 @@
<div class="section u-block">
<h4><%- __('note') %></h4>
<p><span class="u-emphasize">
[1], [2]<% if (numbers.activeUsers !== "") { %>, [3] <% } %></span> - updated regularly, latest update - <%= update %>
[1], [2]<% if (numbers.activeUsers) { %>, [3] <% } %></span> - updated regularly, latest update - <%= update %>
</p>
</div>

View File

@ -39,7 +39,7 @@
<% } %>
</ul>
</div>
<% if (data.wiki !== "") { %>
<% if (data.wiki) { %>
<div class="section">
<h4><%- __('wiki') %></h4><span><a href="<%= data.wiki %>"><%- __('resources') %></a></span>
</div>

View File

@ -13,14 +13,14 @@
<h3>
<span><%- __('total') %></span><span> ~ <%= numbers.population %></span><span><%- __('accounts') %></span><sup>[1]</sup>
</h3>
<% if (numbers.activeUsers !== "") { %>
<% if (numbers.activeUsers) { %>
<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] <% } %>
<% if (numbers.activeUsers) { %>[3] <% } else { %> [2] <% } %>
</sup>
</h3>
</section>
@ -41,7 +41,7 @@
<div class="column">
<div class="section">
<h4><%- __('communities') %></h4>
<% if (data.communities !== "") { %>
<% if (data.communities) { %>
<span><a href="<%= data.communities %>"><%= world.communities %></a></span>
<% } else { %>
<span class="u-temp"><%- __('soon') %></span>
@ -52,7 +52,7 @@
<p class="description"><%= world.descr %></p>
<% if (stars !== "") { %>
<% if (stars) { %>
<div class="section u-block with-image">
<h4><%- __('stars') %></h4>
<ul class="section-list">
@ -65,7 +65,7 @@
</div>
<% } %>
<% if (reading !== "") { %>
<% if (reading) { %>
<div class="section u-block">
<h4><%- __('reading') %></h4>
<ul>