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", "devTutorials": "https://github.com/BanjoFox/aardwolf/blob/master/INSTALL.md",
"notable": "", "notable": "",
"communities": "", "communities": "",
"donate": "https://liberapay.com/Aardwolf",
"tracker": "https://github.com/BanjoFox/aardwolf/issues", "tracker": "https://github.com/BanjoFox/aardwolf/issues",
"bounty": "", "bounty": "",
"translating": "" "translating": ""

View file

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

View file

@ -23,7 +23,7 @@
<%- __('optionOne2') %> <%- __('optionOne2') %>
</li> </li>
<li> <li>
<% if (data.devTutorials !== "") { %> <% if (data.devTutorials) { %>
<a href="<%= data.devTutorials %>"><%- __('setUp') %></a> <%- __('optionTwo') %> <a href="<%= data.devTutorials %>"><%- __('setUp') %></a> <%- __('optionTwo') %>
<% } else { %> <% } else { %>
<%- __('setUp') %> <%- __('optionTwo') %> <%- __('setUp') %> <%- __('optionTwo') %>
@ -32,14 +32,14 @@
<li><%- __('optionThree') %></li> <li><%- __('optionThree') %></li>
<li> <li>
<%- __('optionFour1') %> <a href="<%= data.tracker %>"><%- __('issue') %></a>. <%- __('optionFour2') %> <%- __('optionFour1') %> <a href="<%= data.tracker %>"><%- __('issue') %></a>. <%- __('optionFour2') %>
<% if (data.bounty !== "") { %> <% if (data.bounty) { %>
<a href="<%= data.bounty %>"><%- __('bounty') %></a>. <a href="<%= data.bounty %>"><%- __('bounty') %></a>.
<% } else { %> <% } else { %>
<%- __('bounty') %>. <%- __('bounty') %>.
<% } %> <% } %>
</li> </li>
<li><%- __('help') %> <li><%- __('help') %>
<% if (data.translating !== "") { %> <% if (data.translating) { %>
<a href="<%= data.translating %>"><%- __('translating') %></a>. <a href="<%= data.translating %>"><%- __('translating') %></a>.
<% } else { %> <% } else { %>
<%- __('translating') %>. <%- __('translating') %>.
@ -53,6 +53,6 @@
<div class="section u-block"> <div class="section u-block">
<h4><%- __('note') %></h4> <h4><%- __('note') %></h4>
<p><span class="u-emphasize"> <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> </p>
</div> </div>

View file

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

View file

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