-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vagrant
committed
Apr 11, 2018
1 parent
a961a84
commit 2bb7d8d
Showing
19 changed files
with
421 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+6.59 KB
storage/framework/cache/data/f0/29/f02945dbe518bf3b79c1267d9959c48574b2ebfb
Binary file not shown.
Binary file added
BIN
+13.7 KB
storage/framework/cache/data/f9/47/f947913e0c6993749ff54a26039f2d18c8a26175
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
storage/framework/views/085b8d01573453f32cedee1224bbb2cc30fcb249.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<div class="panel panel-default"> | ||
<div class="panel-body"> | ||
<a href="<?php echo e(route('topics.create')); ?>" class="btn btn-success btn-block" aria-label="Left Align"> | ||
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> 新建帖子 | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<?php if(count($active_users)): ?> | ||
<div class="panel panel-default"> | ||
<div class="panel-body active-users"> | ||
|
||
<div class="text-center">活跃用户</div> | ||
<hr> | ||
<?php $__currentLoopData = $active_users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $active_user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> | ||
<a class="media" href="<?php echo e(route('users.show', $active_user->id)); ?>"> | ||
<div class="media-left media-middle"> | ||
<img src="<?php echo e($active_user->avatar); ?>" width="24px" height="24px" | ||
class="img-circle media-object"> | ||
</div> | ||
|
||
<div class="media-body"> | ||
<span class="media-heading"><?php echo e($active_user->name); ?></span> | ||
</div> | ||
</a> | ||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> | ||
|
||
</div> | ||
</div> | ||
<?php endif; ?> | ||
|
||
<?php if(count($links)): ?> | ||
<div class="panel panel-default"> | ||
<div class="panel-body active-users"> | ||
|
||
<div class="text-center">资源推荐</div> | ||
<hr> | ||
<?php $__currentLoopData = $links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> | ||
<a class="media" href="<?php echo e($link->link); ?>"> | ||
<div class="media-body"> | ||
<span class="media-heading"><?php echo e($link->title); ?></span> | ||
</div> | ||
</a> | ||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> | ||
|
||
</div> | ||
</div> | ||
<?php endif; ?> |
109 changes: 109 additions & 0 deletions
109
storage/framework/views/710bcf0e3348cb9f7a5eb864aea95996ac7ad282.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<nav class="navbar navbar-default navbar-static-top"> | ||
<div class="container"> | ||
<div class="navbar-header"> | ||
|
||
<!-- Collapsed Hamburger --> | ||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" | ||
data-target="#app-navbar-collapse"> | ||
<span class="sr-only">Toggle Navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
|
||
<!-- Branding Image --> | ||
<a class="navbar-brand" href="<?php echo e(url('/')); ?>"> | ||
LaraBBS | ||
</a> | ||
</div> | ||
|
||
<div class="collapse navbar-collapse" id="app-navbar-collapse"> | ||
<!-- Left Side Of Navbar --> | ||
<ul class="nav navbar-nav"> | ||
<li class="<?php echo e(active_class(if_route('topics.index'))); ?>"><a href="<?php echo e(route('topics.index')); ?>">话题</a> | ||
</li> | ||
<li class="<?php echo e(active_class((if_route('categories.show') && if_route_param('category', 1)))); ?>"><a | ||
href="<?php echo e(route('categories.show', 1)); ?>">分享</a></li> | ||
<li class="<?php echo e(active_class((if_route('categories.show') && if_route_param('category', 2)))); ?>"><a | ||
href="<?php echo e(route('categories.show', 2)); ?>">教程</a></li> | ||
<li class="<?php echo e(active_class((if_route('categories.show') && if_route_param('category', 3)))); ?>"><a | ||
href="<?php echo e(route('categories.show', 3)); ?>">问答</a></li> | ||
<li class="<?php echo e(active_class((if_route('categories.show') && if_route_param('category', 4)))); ?>"><a | ||
href="<?php echo e(route('categories.show', 4)); ?>">公告</a></li> | ||
</ul> | ||
|
||
<!-- Right Side Of Navbar --> | ||
<ul class="nav navbar-nav navbar-right"> | ||
<!-- Authentication Links --> | ||
<?php if(auth()->guard()->guest()): ?> | ||
<li><a href="<?php echo e(route('login')); ?>">登录</a></li> | ||
<li><a href="<?php echo e(route('register')); ?>">注册</a></li> | ||
<?php else: ?> | ||
<li> | ||
<a href="<?php echo e(route('topics.create')); ?>"> | ||
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> | ||
</a> | ||
</li> | ||
|
||
<li> | ||
<a href="<?php echo e(route('notifications.index')); ?>" class="notifications-badge" | ||
style="margin-top: -2px;"> | ||
<span class="badge badge-<?php echo e(Auth::user()->notification_count > 0 ? 'hint' : 'fade'); ?> " | ||
title="消息提醒"> | ||
<?php echo e(Auth::user()->notification_count); ?> | ||
|
||
</span> | ||
</a> | ||
</li> | ||
<li class="dropdown"> | ||
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> | ||
<span class="user-avatar pull-left" style="margin-right:8px; margin-top:-5px;"> | ||
<img src="<?php echo e(Auth::user()->avatar); ?>" class="img-responsive img-circle" width="30px" | ||
height="30px"> | ||
</span> | ||
<?php echo e(Auth::user()->name); ?> <span class="caret"></span> | ||
</a> | ||
|
||
<ul class="dropdown-menu" role="menu"> | ||
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manage_contents')): ?> | ||
<li> | ||
<a href="<?php echo e(url(config('administrator.uri'))); ?>"> | ||
<span class="glyphicon glyphicon-dashboard" aria-hidden="true"></span> | ||
管理后台 | ||
</a> | ||
</li> | ||
<?php endif; ?> | ||
|
||
<li> | ||
<a href="<?php echo e(route('users.show', Auth::id())); ?>"> | ||
<span class="glyphicon glyphicon-user" aria-hidden="true"></span> | ||
个人中心 | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?php echo e(route('users.edit', Auth::id())); ?>"> | ||
<span class="glyphicon glyphicon-edit" aria-hidden="true"></span> | ||
编辑资料 | ||
</a> | ||
</li> | ||
<li> | ||
<a href="<?php echo e(route('logout')); ?>" | ||
onclick="event.preventDefault(); | ||
document.getElementById('logout-form').submit();"> | ||
<span class="glyphicon glyphicon-log-out" aria-hidden="true"></span> | ||
退出登录 | ||
</a> | ||
|
||
<form id="logout-form" action="<?php echo e(route('logout')); ?>" method="POST" | ||
style="display: none;"> | ||
<?php echo e(csrf_field()); ?> | ||
|
||
</form> | ||
</li> | ||
</ul> | ||
</li> | ||
<?php endif; ?> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> |
10 changes: 10 additions & 0 deletions
10
storage/framework/views/745d1ba2b20ccd7d42b2919201148f1e01c28d73.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<footer class="footer"> | ||
<div class="container"> | ||
<p class="pull-left"> | ||
由 <a href="http://weibo.com/u/1837553744?is_hot=1" target="_blank">Cui</a> 设计和编码 <span | ||
style="color: #e27575;font-size: 14px;">❤</span> | ||
</p> | ||
|
||
<p class="pull-right"><a href="mailto:<?php echo e(setting('contact_email')); ?>">联系我们</a></p> | ||
</div> | ||
</footer> |
39 changes: 39 additions & 0 deletions
39
storage/framework/views/7a42c9b1c8e24f8d022bdd55b1498079b24d9021.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php $__env->startSection('title', isset($category) ? $category->name : '话题列表'); ?> | ||
|
||
<?php $__env->startSection('content'); ?> | ||
|
||
<div class="row"> | ||
<div class="col-lg-9 col-md-9 topic-list"> | ||
<?php if(isset($category)): ?> | ||
<div class="alert alert-info" role="alert"> | ||
<?php echo e($category->name); ?> :<?php echo e($category->description); ?> | ||
|
||
</div> | ||
<?php endif; ?> | ||
|
||
<div class="panel panel-default"> | ||
|
||
<div class="panel-heading"> | ||
<ul class="nav nav-pills"> | ||
<li class="<?php echo e(active_class( ! if_query('order', 'recent') )); ?>"><a href="<?php echo e(Request::url()); ?>?order=default">最后回复</a></li> | ||
<li class="<?php echo e(active_class(if_query('order', 'recent'))); ?>"><a href="<?php echo e(Request::url()); ?>?order=recent">最新发布</a></li> | ||
</ul> | ||
</div> | ||
|
||
<div class="panel-body"> | ||
|
||
<?php echo $__env->make('topics._topic_list', ['topics' => $topics], array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> | ||
|
||
<?php echo $topics->render(); ?> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="col-lg-3 col-md-3 sidebar panel panel-default panel-heading"> | ||
<?php echo $__env->make('topics._sidebar', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> | ||
</div> | ||
</div> | ||
|
||
<?php $__env->stopSection(); ?> | ||
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> |
42 changes: 42 additions & 0 deletions
42
storage/framework/views/a2d06ac739ddc554edcfca8cd4f2da4a4e7fd592.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html lang="<?php echo e(app()->getLocale()); ?>"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<!-- CSRF Token --> | ||
<meta name="csrf-token" content="<?php echo e(csrf_token()); ?>"> | ||
|
||
<title><?php echo $__env->yieldContent('title', 'LaraBBS'); ?> - <?php echo e(setting('site_name', 'Laravel 进阶教程')); ?></title> | ||
<meta name="description" content="<?php echo $__env->yieldContent('description', setting('seo_description', 'LaraBBS 爱好者社区。')); ?>"/> | ||
<meta name="keyword" content="<?php echo $__env->yieldContent('keyword', setting('seo_keyword', 'LaraBBS,社区,论坛,开发者论坛')); ?>"/> | ||
|
||
<!-- Styles --> | ||
<link href="<?php echo e(asset('css/app.css')); ?>" rel="stylesheet"> | ||
<?php echo $__env->yieldContent('styles'); ?> | ||
</head> | ||
|
||
<body> | ||
<div id="app" class="<?php echo e(route_class()); ?>-page"> | ||
|
||
<?php echo $__env->make('layouts._header', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> | ||
|
||
<div class="container"> | ||
|
||
<?php echo $__env->make('layouts._message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> | ||
<?php echo $__env->yieldContent('content'); ?> | ||
|
||
</div> | ||
|
||
<?php echo $__env->make('layouts._footer', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> | ||
</div> | ||
|
||
<?php if(app()->isLocal()): ?> | ||
<?php echo $__env->make('sudosu::user-selector', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?> | ||
<?php endif; ?> | ||
<!-- Scripts --> | ||
<script src="<?php echo e(asset('js/app.js')); ?>"></script> | ||
<?php echo $__env->yieldContent('scripts'); ?> | ||
</body> | ||
</html> |
36 changes: 36 additions & 0 deletions
36
storage/framework/views/a4d300dc63ebddaa0de643e64d30719314714153.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php if($paginator->hasPages()): ?> | ||
<ul class="pagination"> | ||
|
||
<?php if($paginator->onFirstPage()): ?> | ||
<li class="disabled"><span>«</span></li> | ||
<?php else: ?> | ||
<li><a href="<?php echo e($paginator->previousPageUrl()); ?>" rel="prev">«</a></li> | ||
<?php endif; ?> | ||
|
||
|
||
<?php $__currentLoopData = $elements; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $element): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> | ||
|
||
<?php if(is_string($element)): ?> | ||
<li class="disabled"><span><?php echo e($element); ?></span></li> | ||
<?php endif; ?> | ||
|
||
|
||
<?php if(is_array($element)): ?> | ||
<?php $__currentLoopData = $element; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page => $url): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> | ||
<?php if($page == $paginator->currentPage()): ?> | ||
<li class="active"><span><?php echo e($page); ?></span></li> | ||
<?php else: ?> | ||
<li><a href="<?php echo e($url); ?>"><?php echo e($page); ?></a></li> | ||
<?php endif; ?> | ||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> | ||
<?php endif; ?> | ||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> | ||
|
||
|
||
<?php if($paginator->hasMorePages()): ?> | ||
<li><a href="<?php echo e($paginator->nextPageUrl()); ?>" rel="next">»</a></li> | ||
<?php else: ?> | ||
<li class="disabled"><span>»</span></li> | ||
<?php endif; ?> | ||
</ul> | ||
<?php endif; ?> |
23 changes: 23 additions & 0 deletions
23
storage/framework/views/ae8ea148df480243f7f156463dfce0d226b068b4.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php if(Session::has('message')): ?> | ||
<div class="alert alert-info"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
<?php echo e(Session::get('message')); ?> | ||
|
||
</div> | ||
<?php endif; ?> | ||
|
||
<?php if(Session::has('success')): ?> | ||
<div class="alert alert-success"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
<?php echo e(Session::get('success')); ?> | ||
|
||
</div> | ||
<?php endif; ?> | ||
|
||
<?php if(Session::has('danger')): ?> | ||
<div class="alert alert-danger"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
<?php echo e(Session::get('danger')); ?> | ||
|
||
</div> | ||
<?php endif; ?> |
Oops, something went wrong.