Skip to content

Commit 80e4fc8

Browse files
Removing post content from card
1 parent 4a7d67d commit 80e4fc8

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

resources/views/posts/_show.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<h4 v-pre class="card-title">{{ link_to_route('posts.show', $post->title, $post) }}</h4>
1010

1111
<p class="card-text"><small v-pre class="text-muted">{{ link_to_route('users.show', $post->author->fullname, $post->author) }}</small></p>
12-
<div v-pre class="card-text post-content">{!! $post->content !!}</div>
1312

1413
<p class="card-text">
1514
<small class="text-muted">{{ humanize_date($post->posted_at) }}</small><br>

resources/views/users/_post.blade.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
{{ link_to_route('posts.show', $post->title, $post) }}
1111
</h4>
1212

13-
<div v-pre class="card-text post-content">{!! $post->content !!}</div>
1413
<p class="card-text">
1514
<small class="text-muted">{{ humanize_date($post->posted_at) }}</small><br>
1615
<small class="text-muted">

tests/Feature/PostTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public function testIndex()
2424
$this->get('/')
2525
->assertStatus(200)
2626
->assertSee('Latest posts')
27-
->assertSee(e($post->content))
2827
->assertSee(e($post->title))
2928
->assertSee(humanize_date($post->posted_at))
3029
->assertSee('3')
@@ -39,7 +38,6 @@ public function testSearch()
3938
$this->get('/?q=Hello')
4039
->assertStatus(200)
4140
->assertSee('1 post found')
42-
->assertSee(e($post->content))
4341
->assertSee(e($post->title))
4442
->assertSee(humanize_date($post->posted_at));
4543
}

0 commit comments

Comments
 (0)