%PDF- %PDF-
| Direktori : /www/varak.net/paste.varak.net-5.6/app/storage/views/ |
| Current File : /www/varak.net/paste.varak.net-5.6/app/storage/views/5cce307f6602a9ce9d76e7c959ce48b7 |
<?php $__env->startSection('body'); ?>
<?php echo $__env->make('skins.bootstrap.common.alerts', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<section id="show">
<?php echo $__env->make('skins.bootstrap.site.paste', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php if($paste->attachment): ?>
<div class="row">
<div class="col-sm-12">
<div class="well well-sm well-white">
<span class="glyphicon glyphicon-paperclip"></span>
<?php echo link_to("attachment/{$paste->urlkey}/{$paste->hash}", $attachment); ?>
</div>
</div>
</div>
<?php endif; ?>
<?php if($revisions->count() > 0): ?>
<div class="row">
<div class="col-sm-12">
<h4>
<span class="glyphicon glyphicon-time"></span>
<?php echo Lang::get('show.version_history'); ?>
</h4>
<fieldset class="well well-sm well-white well-history">
<div class="viewport">
<table class="table table-striped table-responsive">
<colgroup>
<col class="col-xs-3" />
<col class="col-xs-3" />
<col class="col-xs-5" />
<col class="col-xs-1" />
</colgroup>
<thead>
<tr>
<th><?php echo Lang::get('show.revision_id'); ?></th>
<th><?php echo Lang::get('global.author'); ?></th>
<th><?php echo Lang::get('show.created_at'); ?></th>
<th></th>
</tr>
</thead>
<tbody>
<?php foreach($revisions as $revision): ?>
<tr>
<td>
<?php echo link_to($revision->urlkey, $revision->urlkey); ?>
</td>
<td>
<?php echo e($paste->author ?: Lang::get('global.anonymous')); ?>
</td>
<td>
<?php echo date('d M Y, H:i:s e', $revision->timestamp); ?>
</td>
<td class="text-right">
<?php echo link_to("diff/{$revision->urlkey}/{$paste->urlkey}", Lang::get('show.diff'), array(
'class' => 'btn btn-xs btn-default'
)); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</fieldset>
</div>
</div>
<?php endif; ?>
<?php if($site->general->comments): ?>
<div class="row">
<div class="col-sm-12">
<h4>
<span class="glyphicon glyphicon-comment"></span>
<?php echo Lang::get('global.comments'); ?>
</h4>
<?php echo Form::open(array(
'action' => 'ShowController@postComment',
'role' => 'form',
'data-navigate' => 'ajax'
)); ?>
<div class="form-group">
<?php echo Form::textarea('comment', NULL, array(
'class' => 'form-control',
'rows' => 2
)); ?>
</div>
<div class="form-group">
<?php echo Form::submit(Lang::get('global.submit'), array(
'name' => '_submit',
'class' => 'btn btn-primary'
)); ?>
</div>
<?php echo Form::hidden('id', $paste->id); ?>
<?php echo Form::close(); ?>
<?php if($comments->count() > 0): ?>
<?php foreach($comments as $comment): ?>
<div class="well well-sm well-white">
<p>
<?php echo $comment->data; ?>
</p>
<div class="small">
<div class="pull-right">
<?php if($role->admin OR ($role->user AND $auth->username == $comment->author)): ?>
<?php echo link_to("{$paste->urlkey}/{$paste->hash}/delete/{$comment->id}", Lang::get('global.delete'), array(
'onclick' => "return confirm('".Lang::get('global.action_confirm')."')",
)); ?>
<?php endif; ?>
</div>
<div class="text-muted">
<?php echo e($comment->author); ?>
•
<?php echo e(date('d M Y, H:i:s e', $comment->timestamp)); ?>
</div>
</div>
</div>
<?php endforeach; ?>
<?php echo $comments->links(); ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make("skins.bootstrap.common.{$container}", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>