1ea289e8b7
* feat: Sets up portal public views with rails ERB and tailwind * linter fixes * Remove duplicate style file * Shows articles and categories * Specify layout for articles page * Updates public portal styles * Fixes blog content styles * Portal style updates for article page * Review fixes * Adds breadcrumbs * fix: rspec * fix: public portal spec * Code climate fixes * Adds test cases for missing files * Show only published articles * Updates help center routes * Review fixes * Render markdown content for aticle body * Update app/views/public/api/v1/portals/articles/index.html.erb Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: Sojan <sojan@pepalo.com> Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Co-authored-by: tejaswini chile <tejaswini@chatwoot.com>
35 lines
1.5 KiB
Text
35 lines
1.5 KiB
Text
<div class="bg-slate-50">
|
|
<div class="max-w-4xl px-6 py-16 mx-auto space-y-4 w-full">
|
|
|
|
<div>
|
|
<a class="text-slate-700 hover:underline leading-8 text-sm font-medium"
|
|
href="/hc/<%= @portal.slug %>/<%= @article.category.locale %>" class=""><%= @portal.name %> Home</a>
|
|
<span class="text-xs text-slate-600 px-1">/</span>
|
|
<a class="text-slate-700 hover:underline leading-8 text-sm font-medium"
|
|
href="/hc/<%= @portal.slug %>/<%= @article.category.locale %>/<%= @article.category.slug %>"
|
|
class=""><%= @article.category.name %></a>
|
|
<span class="text-xs text-slate-600 px-1">/</span>
|
|
</div>
|
|
<h1 class="text-4xl font-bold md:tracking-normal leading-snug md:text-5xl text-slate-900">
|
|
<%= @article.title %></h1>
|
|
<div class="flex flex-col items-start justify-between w-full md:flex-row md:items-center pt-2">
|
|
<div class="flex items-center md:space-x-2">
|
|
<img src="<%= @article.author.avatar_url %>" alt="" class="w-12 h-812 border rounded-full">
|
|
<div>
|
|
<h5 class="text-base font-medium text-slate-900 mb-2"><%= @article.author.name %></h5>
|
|
<p class="text-sm font-normal text-slate-700">
|
|
<%= @article.author.updated_at.strftime("%B %d %Y") %></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="max-w-4xl flex-grow w-full px-6 py-16 mx-auto space-y-12">
|
|
<article class="space-y-8 ">
|
|
<div class="text-slate-800 font-sans leading-8 text-lg subpixel-antialiased max-w-3xl blog-content">
|
|
<p><%= @parsed_content %></p>
|
|
</div>
|
|
</article>
|
|
</div>
|