view diff link

This commit is contained in:
Claude 2013-03-30 21:53:32 +01:00
parent 1cb8241743
commit 8d764fd18f

View File

@ -9,7 +9,15 @@
<h1 class="pagetitle right"><?php echo $title; ?></h1>
<div class="meta">
<span class="detail by">By <?php echo $name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]?> ago, written in <?php echo $lang; ?>, viewed <?php echo number_format($hits, 0, '.', "'"); ?> times.</span>
<?php if(isset($inreply)){?><span class="detail by">This paste is a reply to <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> by <?php echo $inreply['name']; ?></span><?php }?>
<?php if(isset($inreply)){?><span class="detail by">This paste is a reply to <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> by <?php echo $inreply['name']; ?>
<?php if($this->uri->segment(3) != 'diff'){ ?>
- <a href="<?php echo $url . '/diff'; ?>">view diff</a>
<?php }else{ ?>
- <a href="<?php echo $url; ?>">go back</a>
<?php } ?>
</span><?php }?>
<div class="spacer"></div>
<span class="detail"><span class="item">URL </span><a href="<?php echo $url; ?>"><?php echo $url; ?></a></span>
<?php if(!empty($snipurl)){?>