-<?php
-require_once PASTIE_TEMPLATES . '/recent.inc';
-echo '<br style="clear:both;">';
-$form->renderActive(null, null, $url, 'post');
\ No newline at end of file
+<?php require_once PASTIE_TEMPLATES . '/recent.inc'; ?>
+<div class="pasteForm">
+<?php $form->renderActive(null, null, $url, 'post'); ?>
+</div>
<div id="recentPastes">
<h2>Recent Pastings</h2>
<hr>
-<?php foreach ($recent as $r) { ?>
+<?php foreach ($recent as $r) {
+ if (empty($r['title'])) {
+ $r['title'] = _("[Untitled]");
+ }
+?>
<div class="recentPaste">
<span class="pasteTitle"><a href="<?php echo $uuid . '/' . $r['uuid']; ?>"><?php echo $r['title']; ?></a></span><br>
<span class="pasteAuthor"><?php echo $r['owner']; ?></span> |
</div>
<hr>
<?php } ?>
-</div>
\ No newline at end of file
+</div>
border: 1px solid #c00;
background-color: #ddd;
list-style-position: inside;
-}
\ No newline at end of file
+}
+
+.pasteForm {
+ float: right;
+ width: 75%;
+ margin: 10px;
+ border: 1px solid #ccc;
+}