|
231 | 231 | <div class="table-responsive"> |
232 | 232 | <table class="table table-bordered"> |
233 | 233 | <tr> |
234 | | - @foreach(['Page Type', 'Route Key', 'Source File', 'Output File', 'Identifier'] as $header) |
| 234 | + @foreach(['Page Type', 'Route Key', 'Source File', 'Output File'] as $header) |
235 | 235 | <th>{{ $header }}</th> |
236 | 236 | @endforeach |
237 | 237 | <th class="text-end">Actions</th> |
|
245 | 245 | {{ $route->getRouteKey() }} |
246 | 246 | </td> |
247 | 247 | <td> |
248 | | - {{ $route->getSourcePath() }} |
| 248 | + @if($route->getPage() instanceof \Hyde\Pages\InMemoryPage) |
| 249 | + <i class="text-muted" title="This page is generated dynamically and does not have a source file.">{{ '<none>' }}</i> |
| 250 | + @else |
| 251 | + {{ $route->getSourcePath() }} |
| 252 | + @endif |
249 | 253 | </td> |
250 | 254 | <td> |
251 | 255 | {{ $route->getOutputPath() }} |
252 | 256 | </td> |
253 | | - <td> |
254 | | - {{ $route->getPageIdentifier() }} |
255 | | - </td> |
256 | 257 | <td class="text-end"> |
257 | 258 | <div class="d-flex justify-content-end"> |
258 | 259 | @if($dashboard->isInteractive()) |
259 | 260 | <form class="buttonActionForm" action="" method="POST"> |
260 | 261 | <input type="hidden" name="_token" value="{{ $csrfToken }}"> |
261 | 262 | <input type="hidden" name="action" value="openPageInEditor"> |
262 | 263 | <input type="hidden" name="routeKey" value="{{ $route->getRouteKey() }}"> |
263 | | - <button type="submit" class="btn btn-outline-primary btn-sm me-2" title="Open in system default application">Edit</button> |
| 264 | + @if($route->getPage() instanceof \Hyde\Pages\InMemoryPage) |
| 265 | + <button type="submit" class="btn btn-outline-secondary btn-sm me-2" title="Cannot edit in-memory pages" style="pointer-events: auto; cursor: unset" disabled>Edit</button> |
| 266 | + @else |
| 267 | + <button type="submit" class="btn btn-outline-primary btn-sm me-2" title="Open in system default application">Edit</button> |
| 268 | + @endif |
264 | 269 | </form> |
265 | 270 | @endif |
266 | 271 | <a href="{{ $route->getLink() }}" class="btn btn-outline-primary btn-sm" title="Open this page preview in browser">View</a> |
|
0 commit comments