Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for plain design help center layout (#7598)
- Loading branch information
1 parent
d837065
commit fa7bbdb
Showing
9 changed files
with
80 additions
and
43 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
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
17 changes: 17 additions & 0 deletions
17
app/views/public/api/v1/portals/articles/_article_header.html.erb
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<h1 class="text-3xl font-semibold md:tracking-normal leading-snug md:text-4xl 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 space-x-2"> | ||
<% if article.author&.avatar_url&.present? %> | ||
<div class="pr-1"> | ||
<img src="<%= article.author.avatar_url %>" alt="<%= article.author.display_name %>" class="w-12 h-12 border rounded-full"> | ||
</div> | ||
<% end %> | ||
<div> | ||
<h5 class="text-base font-medium text-slate-900 mb-2"><%= article.author.available_name %></h5> | ||
<p class="text-sm font-normal text-slate-700"> | ||
<%= I18n.t('public_portal.common.last_updated_on', last_updated_on: article.updated_at.strftime("%b %d, %Y")) %> | ||
</div> | ||
</div> | ||
</div> |
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
17 changes: 17 additions & 0 deletions
17
app/views/public/api/v1/portals/categories/_category-hero.html.erb
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="px-8 max-w-6xl w-full mx-auto"> | ||
<a | ||
class="text-slate-700 text-sm hover:underline leading-8 font-semibold" | ||
href="/hc/<%= portal.slug %>/<%= category.locale %>" | ||
> | ||
<%= I18n.t('public_portal.common.home') %> | ||
</a> | ||
<span class="text-xs text-slate-600 px-1">/</span> | ||
<div class="flex justify-start items-center w-full"> | ||
<h1 class="text-3xl font-semibold leading-snug md:tracking-normal text-slate-900"> | ||
<%= category.name %> | ||
</h1> | ||
<div class="text-slate-500 px-8 mt-2"> | ||
<%= render 'public/api/v1/portals/article_count', article_count: category.articles.published.size %> | ||
</div> | ||
</div> | ||
</div> |
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