-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea4620e
commit 20e9df4
Showing
5 changed files
with
56 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,16 @@ | ||
<%# locals: (view_as:, spaces:, space_count:, page_size: %> | ||
<% if spaces.any? %> | ||
<% if view_as == "table" %> | ||
<%= render "spaces/table_views/space_table_view", | ||
spaces:, | ||
space_count: @space_count, page_size: @page_size %> | ||
<% else # default to map view %> | ||
<%= render 'spaces/index/space_listing_header', space_count: %> | ||
<ul id="space-list" class="flex flex-col gap-8"> | ||
<% spaces.each do |space| %> | ||
<li><%= render "spaces/index/space_listing", space: space %></li> | ||
<% end %> | ||
</ul> | ||
<%= render 'spaces/index/pagination', space_count:, page_size: %> | ||
<% end %> | ||
<% else %> | ||
<div class="text-lnu-pink flex flex-col place-items-center place-content-center md:h-screen-2/3"> | ||
<%= inline_svg_tag 'empty', class: 'max-w-24 inline-block', alt: "" %> | ||
<span class="text-gray-800"><%= t('space_filter.spaces_that_might_work', count: 0 ) %></span> | ||
</div> | ||
<% end %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters