added Schematic to details view
This commit is contained in:
parent
16e8d6dffa
commit
ca613b5b11
@ -40,6 +40,7 @@ default_strings = {
|
||||
'wiring_pi_pin': 'Wiring Pi pin {}',
|
||||
'more_information': 'More Information',
|
||||
'github_repository': 'GitHub Repository',
|
||||
'board_schematic': 'Schematic',
|
||||
'buy_now': 'Buy Now',
|
||||
'translate_msg': '<a href="https://github.com/gadgetoid/Pinout.xyz">This page needs translating, can you help?</a><br><br>',
|
||||
'browse_addons': 'Browse more HATs, pHATs and add-ons',
|
||||
@ -206,6 +207,10 @@ def load_overlay(overlay):
|
||||
if 'github' in loaded:
|
||||
details.append('[{text}]({url})'.format(text=strings['github_repository'], url=loaded['github']))
|
||||
|
||||
# A URL referencing the add-on board schematic
|
||||
if 'schematic' in loaded:
|
||||
details.append('[{text}]({url})'.format(text=strings['board_schematic'], url=loaded['schematic']))
|
||||
|
||||
# A URL to a preferred place to buy the add-on board
|
||||
if 'buy' in loaded:
|
||||
details.append('[{text}]({url})'.format(text=strings['buy_now'], url=loaded['buy']))
|
||||
|
@ -10,6 +10,8 @@ url_suffix:
|
||||
urls:
|
||||
GND: tierra
|
||||
strings:
|
||||
- home: 'Home'
|
||||
- boards: 'Boards'
|
||||
- details: 'Details'
|
||||
- group_other: 'otro'
|
||||
- form_undefined: 'Otro'
|
||||
|
@ -10,6 +10,8 @@ url_suffix:
|
||||
urls:
|
||||
GND: masse
|
||||
strings:
|
||||
- home: 'Accueil'
|
||||
- boards: 'Cartes'
|
||||
- details: 'Détails'
|
||||
- group_other: 'autre'
|
||||
- form_undefined: 'Autre'
|
||||
|
@ -10,6 +10,8 @@ url_suffix:
|
||||
urls:
|
||||
GND: massa
|
||||
strings:
|
||||
- home: 'Home'
|
||||
- boards: 'Boards'
|
||||
- details: 'Details'
|
||||
- group_other: 'Tutti'
|
||||
- form_undefined: 'Altro'
|
||||
|
@ -10,6 +10,8 @@ url_suffix: ''
|
||||
urls:
|
||||
GND: toprak
|
||||
strings:
|
||||
- home: 'Home'
|
||||
- boards: 'Boards'
|
||||
- details: 'Details'
|
||||
- group_other: 'hepsi'
|
||||
- form_undefined: 'diğer'
|
||||
|
Loading…
Reference in New Issue
Block a user