]> BookStack Code Mirror - bookstack/blobdiff - resources/views/pages/show.blade.php
Updated Spanish translation
[bookstack] / resources / views / pages / show.blade.php
index f11da0f4f8f0daadcbfec9c6447188794f72423f..dabc7b965ed9cfe1ecba66490069e68a711b8b5d 100644 (file)
         <div class="card tag-display">
             <h3>@icon('tag') {{ trans('entities.page_tags') }}</h3>
             <div class="body">
-                <table>
-                    <tbody>
-                    @foreach($page->tags as $tag)
-                        <tr class="tag">
-                            <td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td>
-                            @if($tag->value) <td class="tag-value"><a href="{{ baseUrl('/search?term=%5B' . urlencode($tag->name) .'%3D' . urlencode($tag->value) . '%5D') }}">{{$tag->value}}</a></td> @endif
-                        </tr>
-                    @endforeach
-                    </tbody>
-                </table>
+                @include('components.tag-list', ['entity' => $page])
             </div>
         </div>
     @endif
 @stop
 
 @section('body')
-    <div class="page-content" ng-non-bindable>
+    <div class="page-content" page-display="{{ $page->id }}" ng-non-bindable>
 
         <div class="pointer-container" id="pointer">
             <div class="pointer anim" >
       </div>
     @endif
 @stop
-
-@section('scripts')
-    <script>
-        setupPageShow({{$page->id}});
-    </script>
-@stop