* Migrate to esbuild WIP * Add exclude * Remove redundant file * Move file * Move to javascript_include_tag * Lint fix * WIP * WIP * Add watch mode to esbuild WIP * Get jest working * Remove babel * Revert "Remove babel" This reverts commit 6da35260aa19d6f97f586deb66c0ecaf48433b73. * More WIP * Got image to load * WIP * Resolve audit * Lint fix * WIP * Fix jest spec * [CI] Remove asset-restore for test build stage * Production compliant * Temp disable sourcemap * Update glob * Add esbuild helper to stimulus * Import fragment * Temp disable coverage to see failing tests * Fix broken spec * Address lint * Set proper es6 target * Use esbuild for everything * wait what * Revert "Set proper es6 target" This reverts commit 98f5278093421baa8ffe2ca580845b01c1a1eadf. * Revert "Use esbuild for everything" This reverts commit 0ac46738f07ffcb6af095ccb1ffa5e439b7fefa3. * Replace uglifier with terser * New compiled assets version * Remvoe honeybadger-io/webpack * Remove cypress coverage checks for now * Update jsconfig.json * Update docker-compose * Remove public/packs-test from ci cache
52 lines
2.7 KiB
Text
52 lines
2.7 KiB
Text
<%= content_for :page_meta do %>
|
|
<% title t("views.listings.heading") %>
|
|
|
|
<link rel="canonical" href="<%= app_url(request.path) %>" />
|
|
<meta name="description" content="<%= Settings::Community.community_description %>">
|
|
<%= meta_keywords_default %>
|
|
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="<%= app_url(request.path) %>" />
|
|
<meta property="og:site_name" content="<%= community_name %>" />
|
|
<% if @displayed_listing %>
|
|
<meta property="og:title" content="<%= truncate @displayed_listing.title, length: 54 %>">
|
|
<meta property="og:description" content="<%= t("views.listings.meta.description", community: community_name) %>" />
|
|
<meta property="og:image" content="<%= Settings::General.main_social_image %>">
|
|
<meta name="twitter:title" content="<%= truncate @displayed_listing.title, length: 54 %>">
|
|
<meta name="twitter:description" content="<%= t("views.listings.meta.description", community: community_name) %>">
|
|
<meta name="twitter:image:src" content="<%= Settings::General.main_social_image %>">
|
|
<% else %>
|
|
<meta property="og:title" content="Listings" />
|
|
<meta property="og:description" content="<%= Settings::Community.community_description %>" />
|
|
<meta property="og:image" content="<%= Settings::General.main_social_image %>">
|
|
<meta name="twitter:title" content="Listings">
|
|
<meta name="twitter:description" content="<%= Settings::Community.community_description %>">
|
|
<meta name="twitter:image:src" content="<%= Settings::General.main_social_image %>">
|
|
<% end %>
|
|
<meta name="twitter:site" content="@<%= Settings::General.social_media_handles["twitter"] %>">
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<% end %>
|
|
|
|
<main id="main-content">
|
|
|
|
<header class="crayons-page-header s:pb-0">
|
|
<h1 class="crayons-title"><%= t("views.listings.heading") %></h1>
|
|
|
|
<nav class="flex items-center" aria-label="<%= t("views.listings.nav.aria_label") %>">
|
|
<ul class="list-none flex">
|
|
<li> <a href="<%= new_listing_path %>" class="crayons-btn crayons-btn--secondary"><%= t("views.listings.nav.create") %></a></li>
|
|
<li> <a href="<%= listings_dashboard_path %>" class="crayons-btn crayons-btn--secondary ml-2"><%= t("views.listings.nav.manage") %></a></li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
|
|
<div class="listings-container" id="listings-index-container"
|
|
data-category="<%= params[:category] %>" data-listings="<%= @listings_json %>"
|
|
data-allcategories="<%= categories_for_display.to_json %>"
|
|
<% if @displayed_listing %>
|
|
data-displayedlisting="<%= @displayed_listing_json %> "
|
|
<% end %>>
|
|
</div>
|
|
|
|
</main>
|
|
<%= javascript_include_tag "listings", defer: true %>
|