File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -289,6 +289,15 @@ public function getUrlAttribute() {
289289 return url ('prompts/prompts?name= ' .$ this ->name );
290290 }
291291
292+ /**
293+ * Gets the URL of the individual prompt's page, by ID.
294+ *
295+ * @return string
296+ */
297+ public function getIdUrlAttribute () {
298+ return url ('prompts/ ' .$ this ->id );
299+ }
300+
292301 /**
293302 * Gets the prompt's asset type for asset management.
294303 *
Original file line number Diff line number Diff line change 66 <x-admin-edit title =" Prompt" :object =" $prompt" />
77 <div class =" mb-3" >
88 @if (isset ($isPage ) )
9- <h1 class =" mb-0" >{!! $prompt -> name ! !} </h1 >
9+ <h1 class =" mb-0" >{!! $prompt -> name ! !} < a href = " {{ $prompt -> $idUrl } } " class = " world-entry-search text-muted " >< i class = " fas fa-search " ></ i ></ a > </h1 >
1010 @else
11- <h2 class =" mb-0" ><a href =" {{ url ( ' prompts/ ' . $prompt -> id ) } }" >{!! $prompt -> name ! !} </a ></h2 >
11+ <h2 class =" mb-0" ><a href =" {{ $prompt -> $idUrl } }" >{!! $prompt -> name ! !} </a ></h2 >
1212 @endif
1313 @if ($prompt -> prompt_category_id )
1414 <div ><strong >Category: </strong >{!! $prompt -> category -> displayName ! !} </div >
You can’t perform that action at this time.
0 commit comments