X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=templates%2Fframe.html.sh;fp=templates%2Fframe.html.sh;h=969512293f3cc31f2bb6faf6f9585bf8a39a2e8a;hp=0000000000000000000000000000000000000000;hb=f485895094cd72318b46f39689c3ba954eb37411;hpb=904730d1782749bfac15b0344fe5782433f3099b diff --git a/templates/frame.html.sh b/templates/frame.html.sh new file mode 100755 index 0000000..9695122 --- /dev/null +++ b/templates/frame.html.sh @@ -0,0 +1,115 @@ +# Copyright 2011 - 2014 Paul Hänsch +# +# This file is part of Busy +# +# Busy is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Busy is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Busy. If not, see . + +list_accounts(){ + btcAddress="$(sed -rn 's:^btcAddress=(.*)$:\1:p' project.meta)" + flattrThingURL=$(sed -rn 's:^flattrThingURL=(.*)$:\1:p' project.meta) + + grep -q 'useBitcoin=yes' project.meta \ + && [ \! -f "QRcodes/bitcoin:${btcAddress}.png" ] \ + && qrencode -o "QRcodes/bitcoin:${btcAddress}.png" "bitcoin:${btcAddress}" + grep -q 'useBitcoin=yes' project.meta \ + && cat < + +PageEND + + grep -q 'useFlattr=yes' project.meta \ + && cat <