Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2016-01-01 09:03:40 +0000
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
f60a0c3b7606577e089832eee74f90e6a4d958e6
f60a0c3b
1 parent
9a470b07
Improved 404 page and updated tests for empty search
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
app/Services/ActivityService.php
resources/views/base.blade.php
resources/views/errors/404.blade.php
tests/EntityTest.php
app/Services/ActivityService.php
View file @
f60a0c3
...
...
@@ -107,7 +107,7 @@ class ActivityService
}
/**
* Filters out similar ac
i
tivity.
* Filters out similar activity.
* @param Activity[] $activity
* @return array
*/
...
...
resources/views/base.blade.php
View file @
f60a0c3
...
...
@@ -43,14 +43,14 @@
<div
class=
"float right"
>
<div
class=
"links text-center"
>
<a
href=
"/books"
><i
class=
"zmdi zmdi-book"
></i>
Books
</a>
@if($currentUser->can('settings-update'))
@if(
isset($currentUser)
&&
$currentUser->can('settings-update'))
<a
href=
"/settings"
><i
class=
"zmdi zmdi-settings"
></i>
Settings
</a>
@endif
@if(!$signedIn)
@if(!
isset($signedIn) || !
$signedIn)
<a
href=
"/login"
><i
class=
"zmdi zmdi-sign-in"
></i>
Sign In
</a>
@endif
</div>
@if($signedIn)
@if(
isset($signedIn)
&&
$signedIn)
<div
class=
"dropdown-container"
dropdown
>
<span
class=
"user-name"
dropdown-toggle
>
<img
class=
"avatar"
src=
"{{$currentUser->getAvatar(30)}}"
alt=
"{{ $currentUser->name }}"
>
...
...
resources/views/errors/404.blade.php
View file @
f60a0c3
...
...
@@ -4,8 +4,9 @@
<div
class=
"container"
>
<h1>
Page Not Found
</h1>
<p>
The page you were looking for could not be found.
</p>
<h1
class=
"text-muted"
>
Page Not Found
</h1>
<p>
Sorry, The page you were looking for could not be found.
</p>
<a
href=
"/"
class=
"button"
>
Return To Home
</a>
</div>
@stop
\ No newline at end of file
...
...
tests/EntityTest.php
View file @
f60a0c3
...
...
@@ -180,6 +180,14 @@ class EntityTest extends TestCase
->
seeStatusCode
(
200
);
}
public
function
testEmptySearchRedirectsBack
()
{
$this
->
asAdmin
()
->
visit
(
'/'
)
->
visit
(
'/search/all'
)
->
seePageIs
(
'/'
);
}
public
function
testEntitiesViewableAfterCreatorDeletion
()
{
...
...
Please
register
or
sign in
to post a comment