]> BookStack Code Mirror - bookstack/commitdiff
Made user names clickable at the bottom of assets
authorDan Brown <redacted>
Sun, 22 May 2016 07:48:40 +0000 (08:48 +0100)
committerDan Brown <redacted>
Sun, 22 May 2016 07:48:40 +0000 (08:48 +0100)
Fixes #117

resources/views/books/show.blade.php
resources/views/chapters/show.blade.php
resources/views/pages/show.blade.php

index 5f8067bfbc0ee1ff4f4bb6339ffb4006fd4de04a..12c36ba419b4a27d3e68304c48bebf1b8bf5afe3 100644 (file)
@@ -68,9 +68,9 @@
                             <hr>
                         @endif
                         <p class="text-muted small">
-                            Created {{$book->created_at->diffForHumans()}} @if($book->createdBy) by {{$book->createdBy->name}} @endif
+                            Created {{$book->created_at->diffForHumans()}} @if($book->createdBy) by <a href="/user/{{ $book->createdBy->id }}">{{$book->createdBy->name}}</a> @endif
                             <br>
-                            Last Updated {{$book->updated_at->diffForHumans()}} @if($book->updatedBy) by {{$book->updatedBy->name}} @endif
+                            Last Updated {{$book->updated_at->diffForHumans()}} @if($book->updatedBy) by <a href="/user/{{ $book->updatedBy->id }}">{{$book->updatedBy->name}}</a> @endif
                         </p>
                     </div>
                 </div>
index 0bb61cebcdc6782cfc69548c9250f8c50dbd5403..26935847150706d5eae65ccf9ecb8b91e36c2c7a 100644 (file)
@@ -63,9 +63,9 @@
                 @endif
 
                 <p class="text-muted small">
-                    Created {{$chapter->created_at->diffForHumans()}} @if($chapter->createdBy) by {{$chapter->createdBy->name}} @endif
+                    Created {{$chapter->created_at->diffForHumans()}} @if($chapter->createdBy) by <a href="/user/{{ $chapter->createdBy->id }}">{{ $chapter->createdBy->name}}</a> @endif
                     <br>
-                    Last Updated {{$chapter->updated_at->diffForHumans()}} @if($chapter->updatedBy) by {{$chapter->updatedBy->name}} @endif
+                    Last Updated {{$chapter->updated_at->diffForHumans()}} @if($chapter->updatedBy) by <a href="/user/{{ $chapter->updatedBy->id }}">{{  $chapter->updatedBy->name}}</a> @endif
                 </p>
             </div>
             <div class="col-md-3 col-md-offset-1">
index 8640a34dba535f2638d611035c3cceb6ebcfa72f..4dbab0e29d864ecd1db41d1c3b4c2738d7617d2f 100644 (file)
@@ -62,9 +62,9 @@
                     <hr>
 
                     <p class="text-muted small">
-                        Created {{$page->created_at->diffForHumans()}} @if($page->createdBy) by {{$page->createdBy->name}} @endif
+                        Created {{$page->created_at->diffForHumans()}} @if($page->createdBy) by <a href="/user/{{ $page->createdBy->id }}">{{$page->createdBy->name}}</a> @endif
                         <br>
-                        Last Updated {{$page->updated_at->diffForHumans()}} @if($page->updatedBy) by {{$page->updatedBy->name}} @endif
+                        Last Updated {{$page->updated_at->diffForHumans()}} @if($page->updatedBy) by <a href="/user/{{ $page->updatedBy->id }}">{{$page->updatedBy->name}}</a> @endif
                     </p>
 
                 </div>