mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
parent
f77bb01b51
commit
c3b4128a38
@ -19,6 +19,10 @@
|
|||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
@include('entities.view-toggle', ['view' => $view, 'type' => 'books'])
|
@include('entities.view-toggle', ['view' => $view, 'type' => 'books'])
|
||||||
|
<a href="{{ url('/tags') }}" class="icon-list-item">
|
||||||
|
<span>@icon('tag')</span>
|
||||||
|
<span>{{ trans('entities.tags_view_tags') }}</span>
|
||||||
|
</a>
|
||||||
@include('home.parts.expand-toggle', ['classes' => 'text-link', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
|
@include('home.parts.expand-toggle', ['classes' => 'text-link', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
|
||||||
@include('common.dark-mode-toggle', ['classes' => 'icon-list-item text-link'])
|
@include('common.dark-mode-toggle', ['classes' => 'icon-list-item text-link'])
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,6 +19,10 @@
|
|||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
@include('entities.view-toggle', ['view' => $view, 'type' => 'bookshelves'])
|
@include('entities.view-toggle', ['view' => $view, 'type' => 'bookshelves'])
|
||||||
|
<a href="{{ url('/tags') }}" class="icon-list-item">
|
||||||
|
<span>@icon('tag')</span>
|
||||||
|
<span>{{ trans('entities.tags_view_tags') }}</span>
|
||||||
|
</a>
|
||||||
@include('home.parts.expand-toggle', ['classes' => 'text-link', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
|
@include('home.parts.expand-toggle', ['classes' => 'text-link', 'target' => '.entity-list.compact .entity-item-snippet', 'key' => 'home-details'])
|
||||||
@include('common.dark-mode-toggle', ['classes' => 'icon-list-item text-link'])
|
@include('common.dark-mode-toggle', ['classes' => 'icon-list-item text-link'])
|
||||||
</div>
|
</div>
|
||||||
|
@ -126,9 +126,6 @@ class HomepageTest extends TestCase
|
|||||||
$homeVisit->assertSee('grid-card-content');
|
$homeVisit->assertSee('grid-card-content');
|
||||||
$homeVisit->assertSee('grid-card-footer');
|
$homeVisit->assertSee('grid-card-footer');
|
||||||
$homeVisit->assertSee('featured-image-container');
|
$homeVisit->assertSee('featured-image-container');
|
||||||
|
|
||||||
$this->setSettings(['app-homepage-type' => false]);
|
|
||||||
$this->test_default_homepage_visible();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_set_bookshelves_homepage()
|
public function test_set_bookshelves_homepage()
|
||||||
@ -145,9 +142,19 @@ class HomepageTest extends TestCase
|
|||||||
$homeVisit->assertSee('grid-card-content');
|
$homeVisit->assertSee('grid-card-content');
|
||||||
$homeVisit->assertSee('featured-image-container');
|
$homeVisit->assertSee('featured-image-container');
|
||||||
$this->withHtml($homeVisit)->assertElementContains('.grid-card', $shelf->name);
|
$this->withHtml($homeVisit)->assertElementContains('.grid-card', $shelf->name);
|
||||||
|
}
|
||||||
|
|
||||||
$this->setSettings(['app-homepage-type' => false]);
|
public function test_books_and_bookshelves_homepage_has_expected_actions()
|
||||||
$this->test_default_homepage_visible();
|
{
|
||||||
|
$this->asEditor();
|
||||||
|
|
||||||
|
foreach (['bookshelves', 'books'] as $homepageType) {
|
||||||
|
$this->setSettings(['app-homepage-type' => $homepageType]);
|
||||||
|
|
||||||
|
$html = $this->withHtml($this->get('/'));
|
||||||
|
$html->assertElementContains('.actions button', 'Dark Mode');
|
||||||
|
$html->assertElementContains('.actions a[href$="/tags"]', 'View Tags');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function test_shelves_list_homepage_adheres_to_book_visibility_permissions()
|
public function test_shelves_list_homepage_adheres_to_book_visibility_permissions()
|
||||||
|
Loading…
Reference in New Issue
Block a user