Merge branch 'tweak/patgen-credits-format-update' into 'dev'

Update credits panel for new PatGen format update

See merge request crafty-controller/crafty-4!270
This commit is contained in:
Craft Breadth 2022-05-23 21:31:42 +00:00
commit 6fa2aa93a5
14 changed files with 224 additions and 199 deletions

View File

@ -24,7 +24,8 @@
<div class="card">
<div class="card-header header-sm d-flex justify-content-between align-items-center">
<h4 class="card-title"><i class="far fa-code"></i> &nbsp;{{ translate('credits', 'developmentTeam', data['lang']) }}</h4>
<h4 class="card-title"><i class="far fa-code"></i> &nbsp;{{ translate('credits', 'developmentTeam', data['lang'])
}}</h4>
</div>
<div class="card-body">
<div class="row">
@ -40,7 +41,8 @@
<img src="{{ person['pic'] }}" alt="profile image" class="profile-img img-lg rounded-circle">
{% else %}
<div alt="profil image" class="profile-img img-lg rounded-circle">
<img src="/static/assets/images/credits/user-circle-solid.svg" alt="profile image" class="profile-img img-lg rounded-circle">
<img src="/static/assets/images/credits/user-circle-solid.svg" alt="profile image"
class="profile-img img-lg rounded-circle">
</div>
{% end %}
</div>
@ -66,14 +68,16 @@
{% end %}
{% if person['tags'][1] %}
{% if type(person['tags'][1]) is list %}
<a href="{{ person['tags'][1][1] }}" class="btn btn-sm btn-primary mr-2">{{ person['tags'][1][0] }}</a>
<a href="{{ person['tags'][1][1] }}" class="btn btn-sm btn-primary mr-2">{{ person['tags'][1][0]
}}</a>
{% else %}
<span class="btn btn-sm btn-primary mr-2">{{ person['tags'][1] }}</span>
{% end %}
{% end %}
{% if person['tags'][2] %}
{% if type(person['tags'][2]) is list %}
<a href="{{ person['tags'][2][1] }}" class="btn btn-sm btn-inverse-success mr-2">{{ person['tags'][2][0] }}</a>
<a href="{{ person['tags'][2][1] }}" class="btn btn-sm btn-inverse-success mr-2">{{
person['tags'][2][0] }}</a>
{% else %}
<span class="btn btn-sm btn-inverse-success mr-2">{{ person['tags'][2] }}</span>
{% end %}
@ -117,7 +121,8 @@
<img src="{{ person['pic'] }}" alt="profile image" class="profile-img img-lg rounded-circle">
{% else %}
<div alt="profil image" class="profile-img img-lg rounded-circle">
<img src="/static/assets/images/credits/user-circle-solid.svg" alt="profile image" class="profile-img img-lg rounded-circle">
<img src="/static/assets/images/credits/user-circle-solid.svg" alt="profile image"
class="profile-img img-lg rounded-circle">
</div>
{% end %}
</div>
@ -143,14 +148,16 @@
{% end %}
{% if person['tags'][1] %}
{% if type(person['tags'][1]) is list %}
<a href="{{ person['tags'][1][1] }}" class="btn btn-sm btn-primary mr-2">{{ person['tags'][1][0] }}</a>
<a href="{{ person['tags'][1][1] }}" class="btn btn-sm btn-primary mr-2">{{ person['tags'][1][0]
}}</a>
{% else %}
<span class="btn btn-sm btn-primary mr-2">{{ person['tags'][1] }}</span>
{% end %}
{% end %}
{% if person['tags'][2] %}
{% if type(person['tags'][2]) is list %}
<a href="{{ person['tags'][2][1] }}" class="btn btn-sm btn-inverse-success mr-2">{{ person['tags'][2][0] }}</a>
<a href="{{ person['tags'][2][1] }}" class="btn btn-sm btn-inverse-success mr-2">{{
person['tags'][2][0] }}</a>
{% else %}
<span class="btn btn-sm btn-inverse-success mr-2">{{ person['tags'][2] }}</span>
{% end %}
@ -177,7 +184,8 @@
<div class="card">
<div class="card-header header-sm d-flex justify-content-between align-items-center">
<h4 class="card-title"><i class="far fa-server"></i> &nbsp;{{ translate('credits', 'retiredStaff', data['lang']) }}</h4>
<h4 class="card-title"><i class="far fa-server"></i> &nbsp;{{ translate('credits', 'retiredStaff', data['lang'])
}}</h4>
</div>
<div class="card-body">
@ -218,14 +226,16 @@
{% end %}
{% if person['tags'][1] %}
{% if type(person['tags'][1]) is list %}
<a href="{{ person['tags'][1][1] }}" class="btn btn-sm btn-primary mr-2">{{ person['tags'][1][0] }}</a>
<a href="{{ person['tags'][1][1] }}" class="btn btn-sm btn-primary mr-2">{{ person['tags'][1][0]
}}</a>
{% else %}
<span class="btn btn-sm btn-primary mr-2">{{ person['tags'][1] }}</span>
{% end %}
{% end %}
{% if person['tags'][2] %}
{% if type(person['tags'][2]) is list %}
<a href="{{ person['tags'][2][1] }}" class="btn btn-sm btn-inverse-success mr-2">{{ person['tags'][2][0] }}</a>
<a href="{{ person['tags'][2][1] }}" class="btn btn-sm btn-inverse-success mr-2">{{
person['tags'][2][0] }}</a>
{% else %}
<span class="btn btn-sm btn-inverse-success mr-2">{{ person['tags'][2] }}</span>
{% end %}
@ -257,17 +267,19 @@
<div class="card-header header-sm d-flex justify-content-between align-items-center">
<h4 class="card-title"><i class="fab fa-patreon"></i> {{ translate('credits', 'patreonSupporter',
data['lang'])
}}</h4>
}} <i class="fa fa-coffee"></i></h4>
</div>
<div class="card-body">
<p class="card-description"> {{ translate('credits', 'hugeDesc', data['lang']) }}
<code>{{ translate('credits', 'thankYou', data['lang']) }}</code>&nbsp; {{ translate('credits', 'patreonDesc', data['lang']) }} | <span style="color: #9365B8">{{ translate('credits', 'patreonUpdate', data['lang']) }} {{ data["lastUpdate"] }}</span>
<code>{{ translate('credits', 'thankYou', data['lang']) }}</code>&nbsp; {{ translate('credits',
'patreonDesc', data['lang']) }} | <span style="color: #9365B8">{{ translate('credits', 'patreonUpdate',
data['lang']) }} {{ data["lastUpdate"] }}</span>
</p>
<table class="table table-hover">
<thead>
<tr>
<th>{{ translate('credits', 'patreonName', data['lang']) }}</th>
<th>{{ translate('credits', 'patreonLevel', data['lang']) }}</th>
<th>{{ translate('credits', 'subscriberName', data['lang']) }}</th>
<th>{{ translate('credits', 'subscriptionLevel', data['lang']) }}</th>
</tr>
</thead>
<tbody>
@ -282,7 +294,18 @@
{% elif pat["level"] == "Crafty Supporter" %}
<span class="btn btn-sm btn-inverse-success mr-2">Supporter</span>
{% else %}
<span class="btn btn-sm btn-secondary mr-2">{{ translate('credits', 'patreonOther', data['lang']) }}</span>
<span class="btn btn-sm btn-secondary mr-2">{{ translate('credits', 'patreonOther', data['lang'])
}}</span>
{% end %}
{% if pat["source"] == "Patreon" %}
<span class="badge badge-pill badge-info"><i class="fab fa-patreon"></i> Patreon</span>
{% elif pat["source"] == "Ko-fi" %}
<span class="badge badge-pill badge-primary"><i class="fa fa-coffee"></i> Ko-fi</span>
{% else %}
<span class="badge badge-pill badge-dark"><i class="fa fa-question"></i> {{ translate('credits',
'patreonOther',
data['lang'])
}}</span>
{% end %}
</td>
</tr>
@ -297,11 +320,13 @@
<div class="col-lg-6 grid-margin stretch-card">
<div class="card">
<div class="card-header header-sm d-flex justify-content-between align-items-center">
<h4 class="card-title"><i class="far fa-language"></i> {{ translate('credits', 'translationTitle', data['lang']) }}</h4>
<h4 class="card-title"><i class="far fa-language"></i> {{ translate('credits', 'translationTitle',
data['lang']) }}</h4>
</div>
<div class="card-body">
<p class="card-text"> {{ translate('credits', 'hugeDesc', data['lang']) }}
<code>{{ translate('credits', 'thankYou', data['lang']) }}</code>&nbsp; {{ translate('credits', 'translationDesc', data['lang']) }}
<code>{{ translate('credits', 'thankYou', data['lang']) }}</code>&nbsp; {{ translate('credits',
'translationDesc', data['lang']) }}
</p>
<table class="table table-hover">
<thead>

View File

@ -39,11 +39,11 @@
"hugeDesc": "Ein riesiges",
"pageDescription": "Ohne diese Menschen würde Crafty nicht existieren",
"pageTitle": "Mitwirkende",
"patreonDesc": "an unsere Patreon-Unterstützer!",
"patreonLevel": "Unterstützer-Level",
"patreonName": "Name",
"patreonDesc": "an unsere Patreon/Ko-fi-Unterstützer!",
"subscriptionLevel": "Unterstützer-Level",
"subscriberName": "Name",
"patreonOther": "Andere",
"patreonSupporter": "Patreon Unterstützer",
"patreonSupporter": "Patreon / Ko-fi Unterstützer",
"patreonUpdate": "Letzte Aktualisierung:",
"retiredStaff": "Ehemalige Helfer",
"supportTeam": "Support- und Dokumentationsteam",

View File

@ -39,11 +39,11 @@
"hugeDesc": "A huge",
"pageDescription": "Without these people, you wouldn't have Crafty",
"pageTitle": "Credits",
"patreonDesc": "to our Patreon supporters!",
"patreonLevel": "Level",
"patreonName": "Name",
"patreonDesc": "to our Patreon / Ko-fi supporters!",
"subscriptionLevel": "Level",
"subscriberName": "Name",
"patreonOther": "Other",
"patreonSupporter": "Patreon Supporters",
"patreonSupporter": "Patreon / Ko-fi Supporters",
"patreonUpdate": "Last Update:",
"retiredStaff": "Retired Staff",
"supportTeam": "Support and Documentation Team",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Valtava",
"pageDescription": "Ilman näitä ihmisiä sinulla ei olisi Craftya",
"pageTitle": "Hyvitykset",
"patreonDesc": "Patreon-tukijoillemme!",
"patreonLevel": "Taso",
"patreonName": "Nimi",
"patreonDesc": "Patreon / Ko-fi-tukijoillemme!",
"subscriptionLevel": "Taso",
"subscriberName": "Nimi",
"patreonOther": "Muu",
"patreonSupporter": "Patreon-tukijat",
"patreonSupporter": "Patreon / Ko-fi-tukijat",
"patreonUpdate": "Viimeisin päivitys:",
"retiredStaff": "Entinen henkilökunta",
"supportTeam": "Tuki- ja dokumentointitiimi",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Un Enorme",
"pageDescription": "Sans ces personnes, vous n'auriez pas Crafty",
"pageTitle": "Crédits",
"patreonDesc": "à nos Soutiens Patreon !",
"patreonLevel": "Niveau",
"patreonName": "Nom",
"patreonDesc": "à nos Soutiens Patreon / Ko-fi !",
"subscriptionLevel": "Niveau",
"subscriberName": "Nom",
"patreonOther": "Autre",
"patreonSupporter": "Soutiens Patreon",
"patreonSupporter": "Soutiens Patreon / Ko-fi",
"patreonUpdate": "Dernière mise à Jour :",
"retiredStaff": "Retraités de Crafty",
"supportTeam": "Equipe de Support et de Documentation",

View File

@ -39,11 +39,11 @@
"hugeDesc": "In enoarm",
"pageDescription": "Sûnder dizze minsken soene jo Crafty net hawwe",
"pageTitle": "Credits",
"patreonDesc": "oan ús Patreon-supporters!",
"patreonLevel": "Nivel",
"patreonName": "Namme",
"patreonDesc": "oan ús Patreon / Ko-fi-supporters!",
"subscriptionLevel": "Nivel",
"subscriberName": "Namme",
"patreonOther": "Oare",
"patreonSupporter": "Patreon Supporters",
"patreonSupporter": "Patreon / Ko-fi Supporters",
"patreonUpdate": "Lêste update:",
"retiredStaff": "Pensionearre staff",
"supportTeam": "Support- en dokumintaasjeteam",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Veliko",
"pageDescription": "Bez ovih ljudi ne biste imali Crafty",
"pageTitle": "Zasluge",
"patreonDesc": "našim Patreon donorima!",
"patreonLevel": "Razina",
"patreonName": "Ime",
"patreonDesc": "našim Patreon / Ko-fi donorima!",
"subscriptionLevel": "Razina",
"subscriberName": "Ime",
"patreonOther": "Ostalo",
"patreonSupporter": "Patreon donorima",
"patreonSupporter": "Patreon / Ko-fi donorima",
"patreonUpdate": "Zadnje ažuriranje:",
"retiredStaff": "Umirovljeno osoblje",
"supportTeam": "Tim za podršku i dokumentaciju",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Besar",
"pageDescription": "Tanpa orang-orang ini, Anda tidak akan memiliki Crafty",
"pageTitle": "Kredit",
"patreonDesc": "untuk pendukung Patreon kami!",
"patreonLevel": "Level",
"patreonName": "Nama",
"patreonDesc": "untuk pendukung Patreon / Ko-fi kami!",
"subscriptionLevel": "Level",
"subscriberName": "Nama",
"patreonOther": "Lainnya",
"patreonSupporter": "Suporter Patreon",
"patreonSupporter": "Suporter Patreon / Ko-fi",
"patreonUpdate": "Pembaharuan Terakhir:",
"retiredStaff": "Pensiunan Staf",
"supportTeam": "Tim Dukungan dan Dokumentasi",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Un enorme",
"pageDescription": "Senza queste persone, non avremmo Crafty",
"pageTitle": "Crediti",
"patreonDesc": "ai nostri supporter di Patreon!",
"patreonLevel": "Livello",
"patreonName": "Nome",
"patreonDesc": "ai nostri supporter di Patreon / Ko-fi!",
"subscriptionLevel": "Livello",
"subscriberName": "Nome",
"patreonOther": "Altro",
"patreonSupporter": "Supporter Patreon",
"patreonSupporter": "Supporter Patreon / Ko-fi",
"patreonUpdate": "Ultimo aggiornamento:",
"retiredStaff": "Staff ritirato",
"supportTeam": "Squadra di supporto e documentazione",

View File

@ -39,11 +39,11 @@
"hugeDesc": "A HOOJ",
"pageDescription": "WITHOUT THEES PEEPS, U WOULDNT HAS CWAFTY",
"pageTitle": "GUD HOOMANZ",
"patreonDesc": "2 DA PATREON SUPPORTERS!",
"patreonLevel": "LVLZ",
"patreonName": "NAMEZ",
"patreonDesc": "2 DA PATREUN UN KOFEE SUPPORTERS!",
"subscriptionLevel": "LVLZ",
"subscriberName": "NAMEZ",
"patreonOther": "OTHERZ",
"patreonSupporter": "PATREON SUPPORTERS",
"patreonSupporter": "PATREUN UN KOFEE SUPPORTERS",
"patreonUpdate": "LAST UPDATE:",
"retiredStaff": "DISTANT PPLZ, NEVR FORGOTTEN",
"supportTeam": "THEES PEEOPLE FED AN CARE 4 ME, THEY VRY VRY GUD PPL",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Liels",
"pageDescription": "Bez šiem cilvēkiem, jums nebūtu Crafty",
"pageTitle": "Pateicības",
"patreonDesc": "mūsu Patreon atbalstītājiem!",
"patreonLevel": "Līmenis",
"patreonName": "Vārds",
"patreonDesc": "mūsu Patreon / Ko-fi atbalstītājiem!",
"subscriptionLevel": "Līmenis",
"subscriberName": "Vārds",
"patreonOther": "Cits",
"patreonSupporter": "Patreon Atbalstītāji",
"patreonSupporter": "Patreon / Ko-fi Atbalstītāji",
"patreonUpdate": "Pēdējais Atjaunojums:",
"retiredStaff": "Atvaļinātie Komandas Biedri",
"supportTeam": "Atbalsta un Dokumentācijas Komanda",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Een enorme",
"pageDescription": "Zonder deze mensen, zou je Crafty niet hebben",
"pageTitle": "Credits",
"patreonDesc": "aan onze Patreon supporters!",
"patreonLevel": "Niveau",
"patreonName": "Naam",
"patreonDesc": "aan onze Patreon / Ko-fi supporters!",
"subscriptionLevel": "Niveau",
"subscriberName": "Naam",
"patreonOther": "Andere",
"patreonSupporter": "Patreon supporters",
"patreonSupporter": "Patreon / Ko-fi supporters",
"patreonUpdate": "Laatste Update:",
"retiredStaff": "Gepensioneerd personeel",
"supportTeam": "Ondersteunings- en documentatieteam",

View File

@ -39,11 +39,11 @@
"hugeDesc": "Een gigantische",
"pageDescription": "Zonder deze mensen zou er geen Crafty zijn",
"pageTitle": "Credits",
"patreonDesc": "aan onze Patreon supporters!",
"patreonLevel": "Niveau",
"patreonName": "Naam",
"patreonDesc": "aan onze Patreon / Ko-fi supporters!",
"subscriptionLevel": "Niveau",
"subscriberName": "Naam",
"patreonOther": "Overig",
"patreonSupporter": "Patreon Supporters",
"patreonSupporter": "Patreon / Ko-fi Supporters",
"patreonUpdate": "Laatste update:",
"retiredStaff": "Gepensioneerde staff",
"supportTeam": "Support- en documentatieteam",

View File

@ -39,11 +39,11 @@
"hugeDesc": "非常",
"pageDescription": "没有这些人,就没有 Crafty",
"pageTitle": "鸣谢",
"patreonDesc": "我们的 Patreon 支持者!",
"patreonLevel": "等级",
"patreonName": "名称",
"patreonDesc": "我们的 Patreon / Ko-fi 支持者!",
"subscriptionLevel": "等级",
"subscriberName": "名称",
"patreonOther": "其他",
"patreonSupporter": "Patreon 支持者",
"patreonSupporter": "Patreon / Ko-fi 支持者",
"patreonUpdate": "上次更新:",
"retiredStaff": "退休员工",
"supportTeam": "支持与文档团队",