diff --git a/.gitignore b/.gitignore index 38fe785e..3a08afeb 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ tmp/ # Ignore unit testing logs, api docs and eclipse project files tst/log/ doc/ -.settings/ +.settings .buildpath .project +.externalToolBuilders diff --git a/css/bootstrap/zerobin.css b/css/bootstrap/zerobin.css new file mode 100644 index 00000000..64c617be --- /dev/null +++ b/css/bootstrap/zerobin.css @@ -0,0 +1,24 @@ +/* ZeroBin 0.19 - http://sebsauvage.net/wiki/doku.php?id=php:zerobin */ + + +body { + padding: 70px 0 30px 0; +} + +#deletelink { + float: right; +} + +#pastelink { + display: inline; +} + +#nickname { + margin: 5px 0; +} + +.comment { + border-left: 1px solid #ccc; + padding: 5px 0 5px 5px; + white-space: pre-wrap; +} diff --git a/js/zerobin.js b/js/zerobin.js index e6616036..6d11c00b 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -222,7 +222,7 @@ function displayMessages(key, comments) { } var divComment = $('
' + '
' - + '' + + '' + '
'); setElementText(divComment.find('div.commentdata'), cleartext); // Convert URLs to clickable links in comment. @@ -242,7 +242,7 @@ function displayMessages(key, comments) { place.append(divComment); } - $('#comments').append('
'); + $('#comments').append('
'); $('#discussion').removeClass('hidden'); } } @@ -255,9 +255,9 @@ function displayMessages(key, comments) { function open_reply(source, commentid) { $('div.reply').remove(); // Remove any other reply area. source.after('
' - + '' - + '' - + '
' + + '' + + '' + + '
' + '
' + '
'); $('#nickname').focus(function() { diff --git a/tpl/bootstrap.html b/tpl/bootstrap.html index 77ea3e7f..499f027f 100644 --- a/tpl/bootstrap.html +++ b/tpl/bootstrap.html @@ -7,7 +7,8 @@ ZeroBin - {if="$SYNTAXHIGHLIGHTING"} + + {if="$SYNTAXHIGHLIGHTING"} {if="strlen($SYNTAXHIGHLIGHTINGTHEME)"} {/if}{/if} @@ -18,11 +19,6 @@ {if="$SYNTAXHIGHLIGHTING"} {/if} -