%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/74b769fc19348ca34b410a6145c31b13 |
<div class="row"> <div class="col-sm-12"> <div class="pre-info pre-header"> <div class="row"> <div class="col-sm-5"> <h4> <?php if(empty($paste->title)): ?> <?php echo Lang::get('global.paste'); ?> #<?php echo $paste->urlkey; ?> <?php else: ?> <?php echo e($paste->title); ?> <?php endif; ?> </h4> </div> <div class="col-sm-7 text-right"> <?php if($context == 'ShowController'): ?> <?php if( ! empty($site->services->googleApiKey)): ?> <?php echo link_to("#", Lang::get('show.short_url'), array( 'class' => 'btn btn-success', 'data-toggle' => 'ajax', 'data-component' => 'shorten', 'data-extra' => Paste::getUrl($paste), )); ?> <?php endif; ?> <?php echo link_to("#", Lang::get('show.wrap'), array( 'class' => 'btn btn-success', 'data-toggle' => 'wrap', )); ?> <?php echo link_to("{$paste->urlkey}/{$paste->hash}/raw", Lang::get('show.raw'), array( 'class' => 'btn btn-success' )); ?> <?php echo link_to("rev/{$paste->urlkey}", Lang::get('show.revise'), array( 'class' => 'btn btn-success' )); ?> <?php if($site->general->share): ?> <?php echo HTML::decode(link_to($share, '<span class="glyphicon glyphicon-envelope"></span>', array( 'class' => 'btn btn-warning', 'data-toggle' => 'tooltip', 'title' => Lang::get('global.share') ))); ?> <?php endif; ?> <?php if($site->general->flagPaste == 'all' OR ($site->general->flagPaste == 'user' AND $role->user)): ?> <?php echo HTML::decode( link_to("{$paste->urlkey}/{$paste->hash}/flag", '<span class="glyphicon glyphicon-exclamation-sign"></span>', array( 'rel' => 'nofollow', 'class' => 'btn btn-danger', 'data-toggle' => 'tooltip', 'onclick' => "return confirm('".Lang::get('global.action_confirm')."')", 'title' => Lang::get('global.flag_paste') ) ) ); ?> <?php endif; ?> <?php elseif($context == 'ListController'): ?> <?php echo link_to(Paste::getUrl($paste), Lang::get('list.show_paste'), array( 'class' => 'btn btn-success' )); ?> <?php endif; ?> <?php if($role->admin OR ($role->user AND $auth->id == $paste->author_id)): ?> <?php if($paste->password): ?> <span class="btn btn-warning" title="<?php echo Lang::get('global.paste_pwd'); ?>" data-toggle="tooltip"> <span class="glyphicon glyphicon-lock"></span> </span> <?php elseif($paste->private): ?> <span class="btn btn-warning" title="<?php echo Lang::get('global.paste_pvt'); ?>" data-toggle="tooltip"> <span class="glyphicon glyphicon-eye-open"></span> </span> <?php endif; ?> <div class="btn-group text-left"> <button type="button" class="btn btn-danger dropdown-toggle" data-toggle="dropdown"> <span class="glyphicon glyphicon-cog"></span> </button> <ul class="dropdown-menu pull-right" role="menu"> <li> <?php echo link_to("{$paste->urlkey}/{$paste->hash}/toggle", $paste->private ? Lang::get('global.make_public') : Lang::get('global.make_private') ); ?> </li> <?php if($role->admin): ?> <?php if($paste->flagged): ?> <li><?php echo link_to("{$paste->urlkey}/{$paste->hash}/unflag", Lang::get('global.remove_flag')); ?></li> <?php endif; ?> <li><?php echo link_to("admin/paste/{$paste->urlkey}", Lang::get('global.edit_paste')); ?></li> <?php endif; ?> <?php if($site->general->allowPasteDel OR $role->admin): ?> <li> <?php echo link_to("{$paste->urlkey}/{$paste->hash}/delete", Lang::get('global.delete'), array( 'onclick' => "return confirm('".Lang::get('global.action_confirm')."')" )); ?> </li> <?php endif; ?> </ul> </div> <?php endif; ?> </div> </div> </div> <div class="well well-sm well-white pre"> <?php if($context == 'ShowController'): ?> <?php echo Highlighter::make()->parse($paste->id.'show', $paste->data, $paste->language); ?> <?php elseif($context == 'ListController'): ?> <?php echo Highlighter::make()->parse($paste->id.'list', Paste::getAbstract($paste->data), $paste->language); ?> <?php endif; ?> </div> <div class="pre-info pre-footer"> <div class="row"> <div class="col-sm-6"> <?php $author = ($paste->author_id > 0) ? link_to("user/u{$paste->author_id}/pastes", $paste->author) : Lang::get('global.anonymous') ?> <?php echo sprintf(Lang::get('global.posted_by'), $author, date('d M Y, H:i:s e', $paste->timestamp)); ?> </div> <div class="col-sm-6 text-right"> <?php echo sprintf(Lang::get('global.language'), $paste->language); ?> • <?php echo sprintf(Lang::get('global.views'), $paste->hits); ?> </div> </div> </div> </div> </div>