From 8d010725884a02733f1bf890fc764379014f4bf2 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 10 Apr 2012 17:01:03 -0400 Subject: [PATCH] Simple data-based rendering of desktop client list --- _config.yml | 2 + _less/bootstrap.less | 3 + _less/clients.less | 15 +++++ _plugins/clients.rb | 35 +++++++++++ clients.html | 144 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 199 insertions(+) create mode 100644 _less/clients.less create mode 100644 _plugins/clients.rb create mode 100644 clients.html diff --git a/_config.yml b/_config.yml index c040d1488d..6487264db0 100644 --- a/_config.yml +++ b/_config.yml @@ -48,6 +48,8 @@ navigation: section: news - text: About url: /about.html +- text: Clients + url: /clients.html aliases: s_nakamoto: Satoshi Nakamoto diff --git a/_less/bootstrap.less b/_less/bootstrap.less index b1d0d95cc8..f840bd2d01 100644 --- a/_less/bootstrap.less +++ b/_less/bootstrap.less @@ -22,3 +22,6 @@ @import "tables.less"; @import "patterns.less"; @import "bitcoin.less"; + +// Clients +@import "clients.less"; diff --git a/_less/clients.less b/_less/clients.less new file mode 100644 index 0000000000..f532e18e8d --- /dev/null +++ b/_less/clients.less @@ -0,0 +1,15 @@ +/* Clients.less + * Styles used on the Clients page + * ---------------------------------------------------------------------------- */ + +.best { + background-color: #ddffdd; +} + +.good { + background-color: #ddffff; +} + +.ugly { + background-color: #ffdddd; +} diff --git a/_plugins/clients.rb b/_plugins/clients.rb new file mode 100644 index 0000000000..5b0590900e --- /dev/null +++ b/_plugins/clients.rb @@ -0,0 +1,35 @@ +module Jekyll + + class Clients < Liquid::Tag + def render(context) + page = context.environments.first['page'] + r = '' + for h in page['client_info'] + r += '' + r += '' + h['text'] + '' + hid = h['id'] + td = h.fetch('td', 'td') + for c in page['clients'] + ci = c[hid] + curi = c.fetch(hid + '_uri', nil) + r += '<' + td + if h.has_key?(ci) + r += ' class="' + h[ci] + '"' + end + r += '>' + if curi + r += "" + ci + "" + elsif ci + r += ci + end + r += "" + end + r += '' + end + r + end + end + +end + +Liquid::Template.register_tag('clients', Jekyll::Clients) diff --git a/clients.html b/clients.html new file mode 100644 index 0000000000..1838308a0f --- /dev/null +++ b/clients.html @@ -0,0 +1,144 @@ +--- +layout: simple +section: clients + +client_info: +- id: name + text: Client + td: th + Bitcoin-Qt: best +- id: start + text: Get Started +- id: audience + text: Audience + Everyone: best + End-users: good +- id: security + text: Wallet Security + Multisig: best + Encryption: good +- id: nodetype + text: Network Security + Full: best +- id: backups + text: Backups + One-time local: best + Automatic remote: good + Manual local: ugly +- id: setuptime + text: Setup Time + Hours: ugly +- id: disk + text: Disk Space + 2+ GB: ugly +- id: maturity + text: Maturity + Aug 2009: best + May 2011: good +- id: license + text: License +- id: multiuser + text: Multi-user + +clients: +- name: Armory + name_uri: http://bitcoinarmory.com/ + start_uri: http://bitcoinarmory.com/index.php/get-armory + start: Download + audience: Everyone + security: Encryption + nodetype: + backups: One-time local + setuptime: + disk: + maturity: Jul 2011 + license: AGPLv3 + multiuser: Multi-wallet +- name: Bitcoin-Qt + name_uri: + start_uri: http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.6.0/ + start: Download + audience: End-users + security: Encryption + nodetype: Full + backups: Manual local + setuptime: Hours + disk: 2+ GB + maturity: May 2011 + license: MIT + multiuser: No +- name: bitcoind + name_uri: + start_uri: http://sourceforge.net/projects/bitcoin/files/Bitcoin/bitcoin-0.6.0/ + start: Download + audience: Developers + security: Encryption + nodetype: Full + backups: Manual local + setuptime: Hours + disk: 2+ GB + maturity: Aug 2009 + license: MIT + multiuser: No +- name: MultiBit + name_uri: http://multibit.org/ + start_uri: http://multibit.org/releases.html + start: Download + audience: + security: + nodetype: + backups: + setuptime: + disk: + maturity: Jul 2011 + license: + multiuser: +- name: My Wallet + name_uri: https://blockchain.info/wallet + start_uri: https://blockchain.info/wallet/new + start: eWallet + audience: End-users + security: Encryption + nodetype: + backups: Automatic remote + setuptime: + disk: + maturity: Dec 2011 + license: + multiuser: +- name: StrongCoin + name_uri: https://strongcoin.com/ + start_uri: https://strongcoin.com/users/sign_up + start: eWallet + audience: + security: Encryption + nodetype: + backups: Automatic remote + setuptime: + disk: + maturity: Sep 2011 + license: + multiuser: +--- +
+
+

Bitcoin Clients

+ + + + +
+
    +
  • Android
  • +
  • Linux
  • +
  • Mac
  • +
  • Ubuntu
  • +
  • Windows
  • +
+
+ + {% clients %} +
+
+
+