chore: Fix link generation logic in help-center (#5470)

This commit is contained in:
Pranav Raj S
2022-09-20 18:23:28 -07:00
committed by GitHub
parent 2d871a1ed5
commit cc4ef14faa
8 changed files with 43 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
</div>
<% else %>
<% category.articles.published.take(5).each do |article| %>
<div class="flex justify-between content-center min:h-8 my-1">
<div class="flex justify-between content-center my-1">
<a
class="text-slate-800 hover:underline leading-8"
href="/hc/<%= portal.slug %>/<%= category.locale %>/<%= category.slug %>/<%= article.id %>"

View File

@@ -17,6 +17,7 @@
</div>
<% end %>
</div>
<% if @portal.config["allowed_locales"].length > 1 %>
<div class="flex items-center">
<div class="inline-flex relative w-24">
<select
@@ -32,5 +33,6 @@
</div>
</div>
</div>
<% end %>
</nav>
</header>