Add contribs to About IITC, fix minor newline issue in loaderMD

This commit is contained in:
Kevin 2013-04-28 18:55:36 -07:00
parent 764e31db4b
commit 25b6f239c2
3 changed files with 6 additions and 3 deletions

View File

@ -1,9 +1,9 @@
So far, these people have contributed: So far, these people have contributed:
--------------------------------------
[Bananeweizen](https://github.com/Bananeweizen), [Bananeweizen](https://github.com/Bananeweizen),
[blakjakau](https://github.com/blakjakau), [blakjakau](https://github.com/blakjakau),
[boombuler](https://github.com/boombuler), [boombuler](https://github.com/boombuler),
[breunigs](https://github.com/breunigs),
[ccjon](https://github.com/ccjon), [ccjon](https://github.com/ccjon),
[cmrn](https://github.com/cmrn), [cmrn](https://github.com/cmrn),
[epf](https://github.com/epf), [epf](https://github.com/epf),

View File

@ -93,7 +93,7 @@ def loaderMD(var):
payload = {'text': file, 'mode': 'markdown'} payload = {'text': file, 'mode': 'markdown'}
headers = {'Content-Type': 'application/json'} headers = {'Content-Type': 'application/json'}
req = urllib2.Request(url, json.dumps(payload).encode('utf8'), headers) req = urllib2.Request(url, json.dumps(payload).encode('utf8'), headers)
md = urllib2.urlopen(req).read().decode('utf8').replace('\n', '').replace('\'', '\\\'') md = urllib2.urlopen(req).read().decode('utf8').replace('\n', '\\n').replace('\'', '\\\'')
files[fn] = {} files[fn] = {}
files[fn][filemd5] = md files[fn][filemd5] = md
db['files'] = files db['files'] = files

View File

@ -3,6 +3,7 @@
window.aboutIITC = function(){ window.aboutIITC = function(){
var v = '@@BUILDNAME@@-@@BUILDDATE@@'; var v = '@@BUILDNAME@@-@@BUILDDATE@@';
var attrib = '@@INCLUDEMD:ATTRIBUTION.md@@'; var attrib = '@@INCLUDEMD:ATTRIBUTION.md@@';
var contrib = '@@INCLUDEMD:CONTRIBS.md@@'
var a = '' var a = ''
+ ' <div><b>About IITC</b></div> ' + ' <div><b>About IITC</b></div> '
+ ' <div>Ingress Intel Total Conversion</div> ' + ' <div>Ingress Intel Total Conversion</div> '
@ -23,7 +24,9 @@ window.aboutIITC = function(){
+ ' <hr>' + ' <hr>'
+ ' <div>Version: ' + v + '</div>' + ' <div>Version: ' + v + '</div>'
+ ' <hr>' + ' <hr>'
+ ' <div>' + attrib + '</div>'; + ' <div>' + attrib + '</div>'
+ ' <hr>'
+ ' <div>' + contrib + '</div>';
alert(a, true, function() {$('.ui-dialog').removeClass('ui-dialog-aboutIITC');}); alert(a, true, function() {$('.ui-dialog').removeClass('ui-dialog-aboutIITC');});
$('.ui-dialog').addClass('ui-dialog-aboutIITC'); $('.ui-dialog').addClass('ui-dialog-aboutIITC');
} }