Skip to content

Commit

Permalink
feat: add content to empty favorites page (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ned Zimmerman authored Mar 11, 2020
1 parent 45674f2 commit 0a7a4d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/assets/styles/layouts/_pages.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
}
}

#favorites + .no-favorites {
display: none;
}

#saved-searches:not(:empty) + * {
display: none;
}
Expand Down
4 changes: 4 additions & 0 deletions resources/views/partials/content-page-favorites.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
</ul>
</div>
@endif
<div class="no-favorites">
<p class="h2">{{__('You have no favorites.', 'coop-library') }}</p>
<p>{!! sprintf(__('Search or <a href="%s">browse</a> for resources to favorite them.', 'coop-library'), get_post_type_archive_link('lc_resource')) !!}</p>
</div>

0 comments on commit 0a7a4d2

Please sign in to comment.