-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from rdai10/dev
2.6.5
- Loading branch information
Showing
11 changed files
with
225 additions
and
10 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
159 changes: 159 additions & 0 deletions
159
theme/src/resources/templates/article_pages/fast_track.hbs
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,159 @@ | ||
<div class="container-fluid container-fluid-max-xl main-content"> | ||
<div class="row"> | ||
<div class="col-sm-12"> | ||
{{breadcrumbs}} | ||
</div> | ||
</div> | ||
|
||
<span class="initiative-label label label-sm" title="{{dc 'article-fast_track'}}"> | ||
{{dc 'article-fast_track'}} | ||
</span> | ||
|
||
{{#with article}} | ||
<div class="row"> | ||
<h1 class="article-title col-md-7" title="{{title}}"> | ||
{{title}} | ||
|
||
{{#if internal}} | ||
<svg class="lexicon-icon lexicon-icon-lock" title="{{t 'internal'}}"> | ||
<use xlink:href="#lock" /> | ||
</svg> | ||
{{/if}} | ||
</h1> | ||
</div> | ||
|
||
<div class="row"> | ||
<div class="col-md-7"> | ||
<div class="article-author"> | ||
<div class="avatar sticker sticker-circle sticker-lg sticker-primary"> | ||
<span class="sticker-overlay"> | ||
<img alt="Avatar" class="sticker-img" src="{{author.avatar_url}}" /> | ||
</span> | ||
</div> | ||
|
||
<div class="article-meta"> | ||
{{#link 'user_profile' id=author.id}} | ||
<h4 class="author-name"> | ||
{{author.name}} | ||
</h4> | ||
{{/link}} | ||
|
||
<ul class="meta-group secondary-font secondary-text-color"> | ||
<li class="meta-data"> | ||
{{#is created_at edited_at}} | ||
{{date created_at timeago=true}} | ||
{{else}} | ||
{{t 'updated'}} {{date edited_at timeago=true}} | ||
{{/is}} | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<section class="article-info"> | ||
<div class="article-content"> | ||
<div class="article-body"> | ||
{{body}} | ||
</div> | ||
|
||
<div class="article-attachments"> | ||
<ul class="attachments"> | ||
{{#each ../attachments}} | ||
<li class="attachment-item"> | ||
<svg class="lexicon-icon lexicon-icon-paperclip"> | ||
<use xlink:href="#paperclip" /> | ||
</svg> | ||
|
||
<a href="{{url}}" target="_blank">{{name}}</a> | ||
|
||
<div class="attachment-meta"> | ||
<span class="meta-data">{{size}}</span> | ||
<a href="{{url}}" target="_blank">{{t 'download'}}</a> | ||
</div> | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<aside class="initiative-blurb"> | ||
<span class="leading-text">{{dc 'article-fast_track'}}:</span> {{dc 'article-fast_track_disclaimer'}} | ||
</aside> | ||
|
||
<footer class="article-footer"> | ||
<div class="article-votes"> | ||
<span class="article-votes-question">{{t 'was_this_article_helpful'}}</span> | ||
|
||
<div class="article-votes-controls" role='radiogroup'> | ||
{{vote 'up' role='radio' class='article-vote article-vote-up btn btn-outline-primary btn-sm'}} | ||
|
||
{{vote 'down' role='radio' class='article-vote article-vote-down btn btn-outline-primary btn-sm'}} | ||
</div> | ||
|
||
<small class="article-votes-count"> | ||
{{vote 'label' class='article-vote-label'}} | ||
</small> | ||
</div> | ||
</footer> | ||
</div> | ||
|
||
<div class="article-relatives col-md-4 offset-sm-1"> | ||
{{../related_articles}} | ||
</div> | ||
</div> | ||
{{/with}} | ||
|
||
<section id="stillNeedHelp"></section> | ||
</div> | ||
|
||
<script> | ||
$(function() { | ||
const userTags = window.HelpCenter.user.tags; | ||
if (Liferay.hasKBPermission(userTags)) { | ||
Liferay.render( | ||
Liferay.CallToAction, | ||
{ | ||
actionItems: [ | ||
{ | ||
iconId: '#ticket', | ||
link: '{{page_path 'new_request'}}', | ||
message: "{{dc 'let_us_know_if_you_cant_find_a_solution_to_your_issue'}}", | ||
name: '{{dc 'submit_a_ticket'}}' | ||
}, | ||
{ | ||
disclaimer: '{{dc 'homepage-contact_us_asterisk_description'}}', | ||
iconId: '#contact', | ||
link: '/hc/articles/360017784212', | ||
message: '{{dc 'homepage-contact_us_description'}}', | ||
name: '{{dc 'mega_menu-contact_us'}}' | ||
}, | ||
{ | ||
disclaimer: '{{dc 'homepage-ask_the_community_asterisk_description'}}', | ||
iconId: '#community', | ||
link: 'https://community.liferay.com/ ', | ||
message: "{{dc 'homepage-ask_the_community_description'}}", | ||
name: '{{dc 'homepage-ask_the_community'}}' | ||
} | ||
], | ||
className: 'need-help row', | ||
promotions: [ | ||
{ | ||
description: '{{dc 'homepage-liferay_university_description'}}', | ||
name: '{{dc 'homepage-liferay_university'}}', | ||
url: 'https://university.liferay.com/' | ||
}, | ||
{ | ||
description: '{{dc 'homepage-liferay_global_services_description'}}', | ||
name: '{{dc 'homepage-liferay_global_services'}}', | ||
url: 'https://www.liferay.com/consulting' | ||
} | ||
], | ||
sectionHeading: '{{dc 'still_need_help'}}' | ||
}, | ||
document.getElementById('stillNeedHelp') | ||
); | ||
} | ||
}); | ||
</script> |
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