fix: Fix rendering issues in Help Center (#7042)

This commit is contained in:
Pranav Raj S
2023-05-08 12:23:26 -07:00
committed by GitHub
parent 51fb3b7e8e
commit 683f259771
3 changed files with 10 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<header class="bg-white mx-auto px-4 max-w-5xl w-full">
<nav class="px-0 flex" aria-label="Top">
<div class="w-full py-8 flex items-center">
<a href="/hc/<%= @portal.slug %>/<%= params[:locale] %>/" class="text-base font-semibold">
<a href="/hc/<%= @portal.slug %>/<%= @portal.config['default_locale'] || params[:locale] %>/" class="text-base font-semibold">
<%= @portal.name %>
</a>
<% if @portal.homepage_link %>

View File

@@ -7,7 +7,7 @@
</div>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-x-32 gap-y-0 lg:gap-y-12">
<% if @portal.articles.where(status: :published, category_id: nil).order(position: :asc) %>
<% if @portal.articles.where(status: :published, category_id: nil).count > 0 %>
<%= render "public/api/v1/portals/uncategorized-block", category: "Uncategorized", portal: @portal %>
<% end %>
</div>