%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/paste.varak.net-5.6/app/views/skins/bootstrap/site/
Upload File :
Create Path :
Current File : //www/varak.net/paste.varak.net-5.6/app/views/skins/bootstrap/site/paste.blade.php

<div class="row">
	<div class="col-sm-12">
		<div class="pre-info pre-header">
			<div class="row">
				<div class="col-sm-5">
					<h4>
						@if (empty($paste->title))
							{{ Lang::get('global.paste') }}
							#{{ $paste->urlkey }}
						@else
							{{{ $paste->title }}}
						@endif
					</h4>
				</div>

				<div class="col-sm-7 text-right">
					@if ($context == 'ShowController')
						@if ( ! empty($site->services->googleApiKey))
							{{
								link_to("#", Lang::get('show.short_url'), array(
									'class'          => 'btn btn-success',
									'data-toggle'    => 'ajax',
									'data-component' => 'shorten',
									'data-extra'     => Paste::getUrl($paste),
								))
							}}
						@endif

						{{
							link_to("#", Lang::get('show.wrap'), array(
								'class'        => 'btn btn-success',
								'data-toggle'  => 'wrap',
							))
						}}

						{{
							link_to("{$paste->urlkey}/{$paste->hash}/raw", Lang::get('show.raw'), array(
								'class' => 'btn btn-success'
							))
						}}

						{{
							link_to("rev/{$paste->urlkey}", Lang::get('show.revise'), array(
								'class' => 'btn btn-success'
							))
						}}

						@if ($site->general->share)
							{{
								HTML::decode(link_to($share, '<span class="glyphicon glyphicon-envelope"></span>', array(
									'class'       => 'btn btn-warning',
									'data-toggle' => 'tooltip',
									'title'       => Lang::get('global.share')
								)))
							}}
						@endif

						@if ($site->general->flagPaste == 'all' OR ($site->general->flagPaste == 'user' AND $role->user))
							{{
								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')
										)
									)
								)
							}}
						@endif
					@elseif ($context == 'ListController')
						{{
							link_to(Paste::getUrl($paste), Lang::get('list.show_paste'), array(
								'class' => 'btn btn-success'
							))
						}}
					@endif

					@if ($role->admin OR ($role->user AND $auth->id == $paste->author_id))
						@if ($paste->password)
							<span class="btn btn-warning" title="{{ Lang::get('global.paste_pwd') }}" data-toggle="tooltip">
								<span class="glyphicon glyphicon-lock"></span>
							</span>
						@elseif ($paste->private)
							<span class="btn btn-warning" title="{{ Lang::get('global.paste_pvt') }}" data-toggle="tooltip">
								<span class="glyphicon glyphicon-eye-open"></span>
							</span>
						@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>
									{{
										link_to("{$paste->urlkey}/{$paste->hash}/toggle",
											$paste->private ? Lang::get('global.make_public') : Lang::get('global.make_private')
										)
									}}
								</li>

								@if ($role->admin)
									@if ($paste->flagged)
										<li>{{ link_to("{$paste->urlkey}/{$paste->hash}/unflag", Lang::get('global.remove_flag')) }}</li>
									@endif

									<li>{{ link_to("admin/paste/{$paste->urlkey}", Lang::get('global.edit_paste')) }}</li>
								@endif

								@if ($site->general->allowPasteDel OR $role->admin)
									<li>
										{{
											link_to("{$paste->urlkey}/{$paste->hash}/delete", Lang::get('global.delete'), array(
												'onclick'   => "return confirm('".Lang::get('global.action_confirm')."')"
											))
										}}
									</li>
								@endif
							</ul>
						</div>
					@endif
				</div>
			</div>
		</div>

		<div class="well well-sm well-white pre">
			@if ($context == 'ShowController')
				{{ Highlighter::make()->parse($paste->id.'show', $paste->data, $paste->language) }}
			@elseif ($context == 'ListController')
				{{ Highlighter::make()->parse($paste->id.'list', Paste::getAbstract($paste->data), $paste->language) }}
			@endif
		</div>

		<div class="pre-info pre-footer">
			<div class="row">
				<div class="col-sm-6">
					{? $author = ($paste->author_id > 0) ? link_to("user/u{$paste->author_id}/pastes", $paste->author) : Lang::get('global.anonymous') ?}
					{{ 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">
					{{ sprintf(Lang::get('global.language'), $paste->language) }}
					&bull;
					{{ sprintf(Lang::get('global.views'), $paste->hits) }}
				</div>
			</div>
		</div>
	</div>
</div>

Zerion Mini Shell 1.0