Skip to content

Commit

Permalink
Base theme from Freshdesk.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullbunnygalaxy committed Aug 17, 2023
0 parents commit f320d9b
Show file tree
Hide file tree
Showing 28 changed files with 2,302 additions and 0 deletions.
99 changes: 99 additions & 0 deletions archive_public_ticket_view
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<section class="fw-sticky fw-searchbar-wrapper">
<div class="container">
<div class="row align-items-center py-8">
<div class="col-md-6">
{% element 'secondary_nav' %}
{
"breadcrumbs": [{ "label":"{{ 'portal_translations.header.tabs.home' | t }}", "url":"{{portal.home_url}}" },
{ "label":"#{{ticket.id}}", "url": "{{ticket.url}}"}]
}
{% endelement %}
</div>
<div class="col-md-4 ms-auto">
{{ portal | search_element }}
</div>
</div>
</div>
</section>

<section class="container-fluid px-0 fw-page-title-wrapper">
<div class="container">
<div class="py-24 py-lg-92 mx-0 fw-search-meta-info g-0">
<div class="fw-icon-holder pe-8">
<span class="icon-{{ ticket.source_id | ticket_source_icon }}-ticket"></span>
</div>
<div class="text-start">
<h1 class="fw-page-title">{{ ticket.subject }} #{{ ticket.id }}</h1>
<p>{{ 'portal_translations.created_on' | t}} {{ ticket.created_on | date: "%a, %d %b %Y"}} {{ 'portal_translations.at' | t}} {{ ticket.created_on | date: "%I:%M %p"}} - via {{ticket.source_name}}</p>
</div>
</div>
</div>
</section>

<section class="container-fluid bg-light pt-32 pb-60">
<div class="container px-0">
{{ page_message }}
<div class="row mx-0 g-0 fw-wrapper-shadow">
<div class="col-lg-9 fw-content-wrapper mb-16 mb-lg-0">
<div class="fw-comments-wrapper line-numbers px-16 px-md-24 py-16">
<div class="row meta-info flex-column-reverse flex-md-row">
<div class="col-md-7">
{% if ticket.outbound_email? %}
{{ ticket.outbound_initiator | ticket_profile_avatar }}
<span class="semi-bold">{{ ticket.outbound_initiator.name }}</span>
<span>{{ 'portal_translations.archive_tickets.reported_info' | t }} {{ ticket.created_on | time_ago_info }}</span>
{{ ticket.status_id | ticket_status: ticket.requester_status_name }}
{% else %}
{{ ticket.requester | ticket_profile_avatar }}
<span class="semi-bold">{{ ticket.requester.name }}</span>
<span>{{ 'portal_translations.archive_tickets.reported_info' | t }} {{ ticket.created_on | time_ago_info }}</span>
{{ ticket.status_id | ticket_status: 'Archived' }}
{% endif %}
</div>
</div>
<div class="ps-lg-46 pt-16 pe-lg-64">
<div>
{{ ticket.description_html }}
</div>
{{ ticket | attachments }}
</div>
<div class="fw-comments mt-8">
{% if ticket.public_comments.size > 1 %}
<div class="fw-comments-meta row align-items-center">
<div class="offset-md-6 col-md-6 mt-12 mt-md-0">
<div class="d-flex align-items-center justify-content-end fw-sortby-dropdown">
{{ 'portal_translations.sorted_by' | t }}{{ ticket | ticket_reply_sort }}
</div>
</div>
</div>
{% endif %}
<div class="fw-comments-list mt-16">
{% for comment in ticket.public_comments %}
{% if comment.survey %}
{{ comment | ticket_reply_survey }}
{% else %}
<div class="fw-comment-item mb-16 mx-0 d-flex">
<div class="px-0">
{{ comment | profile_avatar }}
</div>
<div class="bg-grey p-12 br-6 w-100">
<p class="author-info">
<span class="semi-bold">{{ comment.user.name }}</span>
<span>{{ 'portal_translations.tickets.said' | t }} {{ comment.created_on | time_ago_info }}</span>
</p>
<div class="pt-12">
{{ comment.description }}
</div>
{{ comment | attachments }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{% snippet public_ticket_details %}
</div>
</div>
</section>
43 changes: 43 additions & 0 deletions archive_ticket_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<section class="fw-sticky fw-searchbar-wrapper">
<div class="container">
<div class="row align-items-center py-8">
<div class="col-md-6">
{% element 'secondary_nav' %}
{
"breadcrumbs": [{ "label":"{{ 'portal_translations.header.tabs.home' | t }}", "url":"{{portal.home_url}}" },
{ "label":"{{ 'portal_translations.header.tabs.archive_tickets' | t }}", "url":"/support/tickets/archived" }]
}
{% endelement %}
</div>
<div class="col-md-4 ms-auto">
{{ portal | search_element }}
</div>
</div>
</div>
</section>
<section class="container-fluid px-0 fw-page-title-wrapper">
<div class="container">
<div class="py-24 py-lg-60 mx-0 fw-search-meta-info g-0">
<div class="text-start">
<h1 class="fw-page-title">{{ 'portal_translations.header.tabs.tickets' | t }}</h1>
</div>
</div>
</div>
</section>
<section class="container-fluid bg-light pt-32 pb-60">
<div class="container px-0">
{{ page_message }}
<div class="row mx-0 g-0 flex-row-reverse flex-lg-row tickets-list-wrapper fw-category-wrapper fw-wrapper-shadow">
<div id="archive-ticket-list" class="col-lg-9 fw-content-wrapper mb-16 mb-lg-0">
{% snippet archive_ticket_list %}
</div>
<div id="archive-ticket-toolbar" class="col-lg-3 fw-sidebar-wrapper">
{% snippet archive_ticket_filters %}
</div>
</div>
{{ 'Archive' | tickets_pagination }}
</div>
</section>
<div class="modal fade" id="fw-export-modal" tabindex="-1" role="dialog" aria-labelledby="<%= t('portal_translations.tickets.export_modal')%>" aria-hidden="true">
<div class="modal-dialog" role="document"></div>
</div>
111 changes: 111 additions & 0 deletions archive_ticket_view
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<section class="fw-sticky fw-searchbar-wrapper">
<div class="container">
<div class="row align-items-center py-8">
<div class="col-md-6">
{% element 'secondary_nav' %}
{
"breadcrumbs": [{ "label":"{{ 'portal_translations.header.tabs.home' | t }}", "url":"{{portal.home_url}}" },
{ "label":"{{ 'portal_translations.header.tabs.tickets' | t }}", "url":"{{portal.archive_tickets_home_url}}" },
{ "label":"#{{ticket.id}}", "url": "{{ticket.url}}"}]
}
{% endelement %}
</div>
<div class="col-md-4 ms-auto">
{{ portal | search_element }}
</div>
</div>
</div>
</section>
<section class="container-fluid px-0 fw-page-title-wrapper">
<div class="container">
<div class="py-24 py-lg-60 mx-0 fw-search-meta-info g-0">
<div class="fw-icon-holder pe-12">
<span class="icon-{{ ticket.source_id | ticket_source_icon }}-ticket"></span>
</div>
<div class="text-start">
<h1 class="fw-page-title">{{ ticket.subject }} #{{ ticket.id }}</h1>
<p>{{ 'portal_translations.created_on' | t}} {{ ticket.created_on | date: "%a, %d %b %Y"}} {{ 'portal_translations.at' | t}} {{ ticket.created_on | date: "%I:%M %p"}} - {{ 'portal_translations.via' | t}} {{ticket.source_name}}</p>
</div>
</div>
</div>
</section>
<section class="container-fluid bg-light pt-32 pb-60">
<div class="container px-0">
<div class="row mx-0 g-0 fw-wrapper-shadow">
<div class="col-lg-9 fw-content-wrapper mb-16 mb-lg-0">
<div class="fw-comments-wrapper line-numbers px-16 px-md-24 py-16">
<div class="row fw-satisfaction-rating">
<div class="col-12">
<div class="fw-closed-info border rounded d-flex align-items-center mb-12">
<span class="icon-info"></span>
<div class="fw-closed-msg ms-8 ps-8">
{{ 'portal_translations.archive_tickets.replies_and_property_msg' | t }}
</div>
</div>
{% snippet archive_ticket_survey %}
</div>
</div>
<div class="row meta-info flex-column-reverse flex-md-row">
<div class="col-md-7">
{% if ticket.outbound_email? %}
{{ ticket.outbound_initiator | ticket_profile_avatar }}
<span class="semi-bold">{{ ticket.outbound_initiator.name }}</span>
<span>{{ 'portal_translations.archive_tickets.reported_info' | t }} {{ ticket.created_on | time_ago_info }}</span>
{{ ticket.status_id | ticket_status: 'Archived' }}
{% else %}
{{ ticket.requester | ticket_profile_avatar }}
<span class="semi-bold">{{ ticket.requester.name }}</span>
<span>{{ 'portal_translations.archive_tickets.reported_info' | t }} {{ ticket.created_on | time_ago_info }}</span>
{{ ticket.status_id | ticket_status: 'Archived' }}
{{ ticket | ticket_cc_email: 'cc-emails-wrapper pl-lg-46' }}
{% endif %}
</div>
</div>
<div class="ps-lg-46 pt-16 pe-lg-64">
<div>
{{ ticket.description_html }}
</div>
{{ ticket | attachments }}
</div>
<div class="fw-comments mt-8">
{% if ticket.public_comments.size > 1 %}
<div class="fw-comments-meta row align-items-center">
<div class="offset-md-6 col-md-6 mt-12 mt-md-0">
<div class="d-flex align-items-center justify-content-end fw-sortby-dropdown">
{{ 'portal_translations.sorted_by' | t }}{{ ticket | ticket_reply_sort }}
</div>
</div>
</div>
{% endif %}
<div class="fw-comments-list mt-16">
{% for comment in ticket.public_comments %}
{% if comment.survey %}
{{ comment | ticket_reply_survey }}
{% else %}
<div class="fw-comment-item mb-16 mx-0 d-flex">
<div class="px-0">
{{ comment | profile_avatar }}
</div>
<div class="bg-grey p-12 br-6 w-100">
<p class="author-info">
<span class="semi-bold">{{ comment.user.name }}</span>
<span>{{ 'portal_translations.tickets.said' | t }} {{ comment.created_on | time_ago_info }}</span>
</p>
{{ comment | ticket_cc_email: 'cc-emails-wrapper' }}
<div class="pt-12">
{{ comment.description }}
</div>
{{ comment | attachments }}
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{% snippet archive_ticket_details %}
</div>
</div>
</section>
{% element 'code_insert' %}{}{% endelement %}
64 changes: 64 additions & 0 deletions article_list
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<section class="fw-sticky fw-searchbar-wrapper">
<div class="container">
<div class="row align-items-center py-8">
<div class="col-md-6">
{% element 'secondary_nav' %}
{
"breadcrumbs": [{ "label":"{{ 'portal_translations.header.tabs.home' | t }}", "url":"{{portal.home_url}}" },
{ "label":"{{ 'portal_translations.header.tabs.solutions' | t }}", "url":"{{portal.solutions_home_url}}" },
{ "label": "{{ category.name | escape_once }}", "url":"{{category.url}}" },
{ "label": "{{ folder.name | escape_once }}", "url":"{{folder.url}}" }]
}
{% endelement %}
</div>
<div class="col-md-4 ms-auto">
{{ portal | search_element }}
</div>
</div>
</div>
</section>
<section class="container-fluid px-0 fw-page-title-wrapper">
<div class="container">
<div class="py-24 py-lg-60 mx-0 fw-search-meta-info g-0">
{% if folder.icon %}
<div class="fw-fig">
<img src="{{folder.icon}}" class="img-fluid" alt="category image">
</div>
{% else %}
<div class="fw-icon-holder pe-8">
<span class="icon-folder"></span>
</div>
{% endif %}
<div class="text-start">
<h1 class="fw-page-title">{{ folder.name }} ({{ folder.entity_collection.size}})</h1>
<p>{{ folder.description }}</p>
</div>
</div>
</div>
</section>

<section class="container-fluid px-0 py-24">
<div class="container">
{{ page_message }}
{% paginate folder.entity_collection by 10 %}
<section class="row fw-category-wrapper box-shadow br-12 mx-0 g-0 bg-light">
<ul class="fw-no-bullet fw-articles fw-section-content">
{% for entity in paginate.collection %}
<li>
<a href="{{ entity.url }}" class="row mx-0 g-0">
<div class="col-md-8 d-flex">
{% if entity.icon %}<div class='fw-folder-icon fw-subfolder-icon text-center me-8'><img src='{{entity.icon}}' class='img-fluid'></div>{% else %}<div class="pe-8 pt-4"><span class="icon-{{entity.source_type}}"></span></div>{% endif %}
<div class="line-clamp-2">{{ entity.name }}</div>
</div>
<div class="col-md-4 fw-modified fw-meta-info small">
{{ entity | solution_author_info: 'article-list' }}
</div>
</a>
</li>
{% endfor %}
</ul>
</section>
{{ paginate | pagination }}
{% endpaginate %}
</div>
</section>
Loading

0 comments on commit f320d9b

Please sign in to comment.