From f93591af5418d04c69f53048fff17bc4391c973d Mon Sep 17 00:00:00 2001 From: lostinlight Date: Sat, 24 Mar 2018 04:35:35 +0300 Subject: [PATCH] Add donate data --- source/_data/postactiv.json | 1 + themes/starter/languages/en.yml | 5 ++++- themes/starter/layout/_partial/contributing.ejs | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/source/_data/postactiv.json b/source/_data/postactiv.json index f300e4d..1ae038d 100644 --- a/source/_data/postactiv.json +++ b/source/_data/postactiv.json @@ -20,6 +20,7 @@ "devTutorials": "http://gitea.postactiv.com/postActiv/postActiv/src/master/INSTALL.md", "notable": "", "communities": "", + "donate": "https://www.patreon.com/postActiv", "tracker": "http://gitea.postactiv.com/postActiv/postActiv/issues", "bounty": "https://www.postactiv.com/bounties/index.html", "translating": "" diff --git a/themes/starter/languages/en.yml b/themes/starter/languages/en.yml index 5af39e5..5588459 100644 --- a/themes/starter/languages/en.yml +++ b/themes/starter/languages/en.yml @@ -121,7 +121,10 @@ channel: Personal channels foreword: Please, keep in mind that you are a participant, not a customer. promptStart: If you'd like to help the promptEnd: network grow, you can contribute in different ways. -optionOne: Donate to the administrator of your server (if you have the means to do that). +optionOne1: Donate to +devTeam: development team +or: or +optionOne2: the administrator of your server (if you have the means to do that). setUp: Set up # ...your own instance (context for translation) optionTwo: your own instance, to make federation stronger and healthier, with many small servers. optionThree: Spread the word. Invite your friends. Explain why it's important. diff --git a/themes/starter/layout/_partial/contributing.ejs b/themes/starter/layout/_partial/contributing.ejs index 1886989..c3bebf9 100644 --- a/themes/starter/layout/_partial/contributing.ejs +++ b/themes/starter/layout/_partial/contributing.ejs @@ -15,7 +15,13 @@

<%- __('promptStart') %> <%= page.title %> <%- __('promptEnd') %>

    -
  1. <%- __('optionOne') %>
  2. +
  3. + <%- __('optionOne1') %> + <% if (data.donate) { %> + <%- __('devTeam') %> <%- __('or') %> + <% } %> + <%- __('optionOne2') %> +
  4. <% if (data.devTutorials !== "") { %> <%- __('setUp') %> <%- __('optionTwo') %>