跳至主內容
|
知識庫
搜尋
繁體中文
العربية
Čeština
Dansk
Deutsch
English (US)
Español (Latinoamérica)
Español (España)
Suomi
Français (Canada)
Français (France)
עברית
हिंदी
Magyar
Bahasa Indonesia
Italiano
日本語
한국어
Bahasa Melayu
Nederlands
Norsk
Polski
Português do Brasil
Português (Portugal)
Română
Русский
svenska
ไทย
Türkçe
Українська
Tiếng Việt
简体中文
搜尋
支援工具
聯絡支援團隊
登入
疑難排解
知識庫
安全意識培訓
學習者支援
疑難排解
疑難排解
找不到所需內容?
聯絡支援團隊
<% categories.forEach(function(category, index) { %>
<%= partial('partial-article-list-sections', { id: 'category-' + category.id, parentId: '#sidebar-navigation', sections: category.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %>
<% }); %>
<% if (sections.length) { %>
<% sections.forEach(function(section) { %>
<%= section.name %>
<%= partial('partial-article-list-sections', { id: 'section-' + section.id, parentId: '#' + id, sections: section.sections, activeCategoryId: activeCategoryId, activeSectionId: activeSectionId, activeArticleId: activeArticleId, partial: partial }) %> <% if (section.articles.length) { %>
<% section.articles.forEach(function(article) { %>
<%= article.title %>
<% }); %>
<% } %>
<% }); %>
<% } %>
<% var getColumnClasses = function(columnNumber) { var classNames = 'col-12'; if (columnNumber >= 2) classNames += ' md:col-6'; if (columnNumber >= 3) classNames += ' lg:col-4'; if (columnNumber >= 4) classNames += ' xl:col-3'; return classNames; } %> <% if (articles.length) { %>
<% articles.forEach(function(article) { %>
<% if (article.promoted) { %>
<% } %> <% if (!article.promoted) { %>
<% } %>
<%= article.title %>
<% }) %>
<% } %>
類別
類別
<% categories.forEach(function(category) { %>
<%= category.name %>
<% }); %>
<% if (items.length > 1) { %>
<% items.forEach(function(item) { %>
<%= item.name %>
<% }); %>
<% } %>
<% if (previousArticle && nextArticle) { %>
上一篇文章
<%= previousArticle.title %>
下一篇文章
<%= nextArticle.title %>
<% } %> <% if (nextArticle && !previousArticle) { %>
下一篇文章
<%= nextArticle.title %>
<% } %> <% if (previousArticle && !nextArticle) { %>
上一篇文章
<%= previousArticle.title %>
<% } %>
<% var getDate = function(article) { return article.created_at !== article.updated_at ? article.updated_at : article.created_at; } var sortByDate = function(a, b) { return new Date(getDate(b)) - new Date(getDate(a)); } articles = articles.sort(sortByDate).slice(0, maxArticles); %> <% if (articles.length) { %> <% if (heading) { %>
近期活動
<% } %>
<% articles.forEach(function(article) { %> <% var section = sections.filter(function(section) { return section.id === article['section_id']; })[0] || null; %> <% var category = categories.filter(function(category) { return category.id === section['category_id']; })[0] || null; %>
<% if (category) { %>
<%= category.name %>
<% } %>
<%= article.title %>
<% var date = article.created_at !== article.updated_at ? article.updated_at : article.created_at %>
<%= new Date(date).toDateString().split(' ').slice(1).join(' ') %>
<% }) %>
<% } %>
<% if (children.length) { %>
<% children.forEach(function(child, index) { %> <% var isActive = initial === index %>
<%= child.title %>
<%= child.innerHTML %>
<% }) %>
<% } %>