mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 04:07:07 +09:00
Huraga: improve the showcase and use markdown (#583)
This commit is contained in:
1 parent
7ecd985d07
commit
8bbeb15327
5 files changed
+153
-125
No files matched your search
@@ -15,17 +15,16 @@
|
||||
{% import "macro_functions.html.twig" as mf %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if settings.showcase_enabled %}
|
||||
<div class="hero-unit">
|
||||
<h1>{{ settings.showcase_heading }}</h1>
|
||||
<p>{{ settings.showcase_text }}</p>
|
||||
<p><a class="btn btn-alt btn-primary btn-large" href="{{ settings.showcase_button_url }}">{{ settings.showcase_button_title }}</a></p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if settings.showcase_enabled %}
|
||||
<div class="hero-unit">
|
||||
<p>{{ settings.showcase_text |markdown }}</p>
|
||||
{% if (settings.showcase_button_url) and (settings.showcase_button_title) %}
|
||||
<p><a class="btn btn-alt btn-primary btn-large" href="{{ settings.showcase_button_url }}">{{ settings.showcase_button_title }}</a></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if client %}
|
||||
|
||||
{% set tickets = client.support_ticket_get_list({ "status": 'on_hold' }) %}
|
||||
{% if tickets.total > 0 %}
|
||||
<div class="row">
|
||||
@@ -48,24 +47,19 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for i, ticket in tickets.list %}
|
||||
|
||||
<tr class="{{ cycle(['odd', 'even'], i) }}">
|
||||
<td>{{ ticket.id }}</td>
|
||||
<td><a href="{{ 'support/ticket'|link }}/{{ ticket.id }}">{{ ticket.subject }}</a></td>
|
||||
<td><a href="{{ 'support/ticket'|link }}/{{ticket.id}}">{{ ticket.subject }}</a></td>
|
||||
<td>{{ ticket.helpdesk.name }}</td>
|
||||
<td><span class="label">{{ mf.status_name(ticket.status) }}</span></td>
|
||||
<td>{{ ticket.created_at|bb_date }}</td>
|
||||
<td><a href="{{ 'support/ticket'|link }}/{{ ticket.id }}" class="btn btn-small btn-inverse">{{ 'Reply'|trans }}</a></td>
|
||||
<td><a href="{{ 'support/ticket'|link }}/{{ticket.id}}" class="btn btn-small btn-inverse">{{ 'Reply'|trans }}</a></td>
|
||||
</tr>
|
||||
|
||||
{% else %}
|
||||
|
||||
<tr>
|
||||
<td colspan="5">{{ 'The list is empty'|trans }}</td>
|
||||
</tr>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
@@ -124,108 +118,107 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Orders'|trans }}</h2>
|
||||
<ul class="data-header-actions">
|
||||
<li>
|
||||
<a class="btn btn-alt btn-info order-button" href="{{ 'order'|link }}">{{ 'New order'|trans }}</a>
|
||||
<a class="btn btn-alt btn-inverse" href="{{ 'order/service'|link }}">{{ 'All orders'|trans }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<section>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{{ 'Total'|trans }}</dt>
|
||||
<dd>{{ client.order_get_list({ "hide_addons": 1}).total }}</dd>
|
||||
<dt>{{ 'Active'|trans }}</dt>
|
||||
<dd>{{ client.order_get_list({ "hide_addons": 1, "status": "active" }).total }}</dd>
|
||||
<dt>{{ 'Expiring'|trans }}</dt>
|
||||
<dd>{{ client.order_get_list({ "expiring": 1 }).total }}</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Orders'|trans }}</h2>
|
||||
<ul class="data-header-actions">
|
||||
<li>
|
||||
<a class="btn btn-alt btn-info order-button" href="{{ 'order'|link }}">{{ 'New order'|trans }}</a>
|
||||
<a class="btn btn-alt btn-inverse" href="{{ 'order/service'|link }}">{{ 'All orders'|trans }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<section>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{{ 'Total'|trans }}</dt>
|
||||
<dd>{{ client.order_get_list({ "hide_addons": 1 }).total }}</dd>
|
||||
<dt>{{ 'Active'|trans }}</dt>
|
||||
<dd>{{ client.order_get_list({ "hide_addons": 1, "status": "active" }).total }}</dd>
|
||||
<dt>{{ 'Expiring'|trans }}</dt>
|
||||
<dd>{{ client.order_get_list({ "expiring": 1 }).total }}</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Tickets'|trans }}</h2>
|
||||
<ul class="data-header-actions">
|
||||
<li>
|
||||
<a class="btn btn-alt btn-info" href="{{ 'support'|link({'ticket' : 1}) }}">{{ 'New ticket'|trans }}</a>
|
||||
<a class="btn btn-alt btn-inverse" href="{{ 'support'|link }}">{{ 'All tickets'|trans }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<section>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{{ 'Total'|trans }}</dt>
|
||||
<dd>{{ client.support_ticket_get_list().total }}</dd>
|
||||
<dt>{{ 'Open'|trans }}</dt>
|
||||
<dd>{{ client.support_ticket_get_list({ "status": 'open' }).total }}</dd>
|
||||
<dt>{{ 'On Hold'|trans }}</dt>
|
||||
<dd>{{ client.support_ticket_get_list({ "status": 'on_hold' }).total }}</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Tickets'|trans }}</h2>
|
||||
<ul class="data-header-actions">
|
||||
<li>
|
||||
<a class="btn btn-alt btn-info" href="{{ 'support'|link({ 'ticket': 1 }) }}">{{ 'New ticket'|trans }}</a>
|
||||
<a class="btn btn-alt btn-inverse" href="{{ 'support'|link }}">{{ 'All tickets'|trans }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
<section>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>{{ 'Total'|trans }}</dt>
|
||||
<dd>{{ client.support_ticket_get_list().total }}</dd>
|
||||
<dt>{{ 'Open'|trans }}</dt>
|
||||
<dd>{{ client.support_ticket_get_list({ "status": 'open' }).total }}</dd>
|
||||
<dt>{{ 'On Hold'|trans }}</dt>
|
||||
<dd>{{ client.support_ticket_get_list({ "status": 'on_hold' }).total }}</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Recent orders'|trans }}</h2>
|
||||
</header>
|
||||
<section>
|
||||
<table class="table table-striped table-bordered table-condensed table-hover">
|
||||
<tbody>
|
||||
{% for i, order in client.order_get_list({ "per_page": 5, "page": request.page, "hide_addons": 1 }).list %}
|
||||
<tr class="{{ cycle(['odd', 'even'], i) }}">
|
||||
<td>
|
||||
<a href="{{ 'order/service/manage'|link }}/{{ order.id }}">{{ order.title|truncate(30) }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<span class="label {% if order.status == 'active' %}label-success{% elseif order.status == 'pending_setup' %}label-warning{% endif %}">{{ mf.status_name(order.status) }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">{{ 'The list is empty'|trans }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Recent orders'|trans }}</h2>
|
||||
</header>
|
||||
<section>
|
||||
<table class="table table-striped table-bordered table-condensed table-hover">
|
||||
<tbody>
|
||||
{% for i, order in client.order_get_list({ "per_page": 5, "page": request.page, "hide_addons": 1 }).list %}
|
||||
<tr class="{{ cycle(['odd', 'even'], i) }}">
|
||||
<td><a href="{{ 'order/service/manage'|link }}/{{ order.id }}">{{ order.title|truncate(30) }}</a></td>
|
||||
<td>
|
||||
<span class="label {% if order.status == 'active' %}label-success{% elseif order.status == 'pending_setup' %}label-warning{% endif %}">{{ mf.status_name(order.status) }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="3">{{ 'The list is empty'|trans }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Recent emails'|trans }}</h2>
|
||||
</header>
|
||||
<section>
|
||||
<table class="table table-striped table-bordered table-condensed table-hover">
|
||||
<tbody>
|
||||
{% for i, email in client.email_get_list({ "per_page": 5 }).list %}
|
||||
<tr class="{{ cycle(['odd', 'even'], i) }}">
|
||||
<td><a href="{{ 'email'|link }}/{{email.id}}">{{ email.subject|truncate(30) }}</a></td>
|
||||
<td title="{{ email.created_at|bb_date }}">{{ email.created_at|timeago }} {{ 'ago'|trans }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="2">{{ 'The list is empty'|trans }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<article class="span6 data-block decent">
|
||||
<div class="data-container">
|
||||
<header>
|
||||
<h2>{{ 'Recent emails'|trans }}</h2>
|
||||
</header>
|
||||
<section>
|
||||
<table class="table table-striped table-bordered table-condensed table-hover">
|
||||
<tbody>
|
||||
{% for i, email in client.email_get_list({ "per_page": 5 }).list %}
|
||||
<tr class="{{ cycle(['odd', 'even'], i) }}">
|
||||
<td><a href="{{ 'email'|link }}/{{ email.id }}">{{ email.subject|truncate(30) }}</a></td>
|
||||
<td title="{{ email.created_at|bb_date }}">{{ email.created_at|timeago }} {{ 'ago'|trans }}</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="2">{{ 'The list is empty'|trans }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
@@ -16,10 +16,17 @@
|
||||
|
||||
{% block content %}
|
||||
{% if settings.showcase_enabled %}
|
||||
<div class="hero-unit">
|
||||
<h1>{{ settings.showcase_heading }}</h1>
|
||||
<p>{{ settings.showcase_text }}</p>
|
||||
{% if settings.showcase_size == 1 %}
|
||||
<div class="hero-unit">
|
||||
{% elseif settings.showcase_size == 2 %}
|
||||
<div class="hero-unit hero-unit-smaller">
|
||||
{% else %}
|
||||
<div class="hero-unit hero-unit-smallest">
|
||||
{% endif %}
|
||||
<p>{{ settings.showcase_text |markdown }}</p>
|
||||
{% if (settings.showcase_button_url) and (settings.showcase_button_title) %}
|
||||
<p><a class="btn btn-alt btn-primary btn-large" href="{{ settings.showcase_button_url }}">{{ settings.showcase_button_title }}</a></p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -4438,8 +4438,8 @@ a.label:hover, a.label:focus, a.badge:hover, a.badge:focus {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.hero-unit {
|
||||
padding: 60px;
|
||||
margin-bottom: 30px;
|
||||
padding: 25px;
|
||||
margin-bottom: 25px;
|
||||
font-size: 18px;
|
||||
font-weight: 200;
|
||||
line-height: 27px;
|
||||
@@ -4449,9 +4449,33 @@ a.label:hover, a.label:focus, a.badge:hover, a.badge:focus {
|
||||
-moz-border-radius: 6px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.hero-unit-smaller {
|
||||
padding: calc(25px * 0.85);
|
||||
font-size: calc(18px * 0.85);
|
||||
line-height: calc(27px * 0.85);
|
||||
}
|
||||
.hero-unit-smallest {
|
||||
padding: calc(25px * 0.50);
|
||||
font-size: calc(18px * 0.75);
|
||||
line-height: calc(27px * 0.50);
|
||||
}
|
||||
.hero-unit h1 {
|
||||
margin-bottom: 0;
|
||||
font-size: 60px;
|
||||
font-size: 2.75em;
|
||||
line-height: 1;
|
||||
color: #ffffff;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
.hero-unit h2 {
|
||||
margin-bottom: 0;
|
||||
font-size: 2.25em;
|
||||
line-height: 1;
|
||||
color: #ffffff;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
.hero-unit h3 {
|
||||
margin-bottom: 0;
|
||||
font-size: 1.75em;
|
||||
line-height: 1;
|
||||
color: #ffffff;
|
||||
letter-spacing: -1px;
|
||||
|
||||
@@ -138,15 +138,15 @@
|
||||
|
||||
<fieldset>
|
||||
<legend>Dashboard</legend>
|
||||
<h3>Showcase</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<tr>
|
||||
<td><label>Enable Dashboard for Guests</label></td>
|
||||
<td>
|
||||
<input type="radio" name="require_login" value="0" id="require_login_1" checked="checked"/> <label for="require_login_1">Yes</label>
|
||||
<input type="radio" name="require_login" value="1" id="require_login_0"/> <label for="require_login_0">No</label>
|
||||
</td>
|
||||
</tr>
|
||||
<h3>Showcase</h3>
|
||||
<table>
|
||||
<tr>
|
||||
<td><label>Enable Showcase</label></td>
|
||||
<td>
|
||||
@@ -155,8 +155,12 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="showcase_heading">Showcase heading</label></td>
|
||||
<td><input type="text" name="showcase_heading" id="showcase_heading" value="" class="long"/></td>
|
||||
<td><label>Showcase Size</label></td>
|
||||
<td>
|
||||
<input type="radio" name="showcase_size" value="1" id="showcase_size"/> <label for="showcase_size">Standard</label>
|
||||
<input type="radio" name="showcase_size" value="2" id="showcase_size" checked="checked"/> <label for="showcase_size">Smaller</label>
|
||||
<input type="radio" name="showcase_size" value="3" id="showcase_size" checked="checked"/> <label for="showcase_size">Smallest</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="showcase_text">Showcase text</label></td>
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"presets":{"default":{"color_scheme":"blue","show_company_logo":"0","show_company_name":"1","show_client_details":"1","sidebar_balance_enabled":"1","top_menu_dashboard":"1","top_menu_order":"1","top_menu_signout":"1","login_page_show_logo":"1","show_password_reset_link":"1","side_menu_dashboard":"1","side_menu_order":"1","side_menu_support":"1","side_menu_services":"1","side_menu_invoices":"1","side_menu_emails":"1","side_menu_payments":"1","side_menu_news":"1","side_menu_kb":"1","sidebar_note_enabled":"0","sidebar_note_title":"","sidebar_note_content":"","meta_title":"","meta_description":"Members area","meta_keywords":"members area","meta_robots":"index, follow","meta_author":"FOSSBilling"},"juoda":{"color_scheme":"dark","show_company_logo":"0","show_company_name":"1","show_client_details":"0","sidebar_balance_enabled":"0","top_menu_dashboard":"1","top_menu_order":"1","top_menu_signout":"1","login_page_show_logo":"1","login_page_logo_url":"\/","show_password_reset_link":"1","show_signup_link":"1","login_page_show_remember_me":"1","side_menu_dashboard":"1","side_menu_order":"1","side_menu_support":"1","side_menu_services":"1","side_menu_invoices":"1","side_menu_emails":"1","side_menu_payments":"1","side_menu_news":"1","side_menu_kb":"1","sidebar_note_enabled":"0","sidebar_note_title":"","sidebar_note_content":"","meta_title":"","meta_description":"Members area","meta_keywords":"members area","meta_robots":"index, follow","meta_author":"FOSSBilling","inject_javascript":""},"Test":{"color_scheme":"green","show_page_header":"1","show_company_logo":"1","show_company_name":"1","show_client_details":"1","sidebar_balance_enabled":"1","top_menu_dashboard":"1","top_menu_order":"1","top_menu_profile":"1","top_menu_signout":"1","login_page_show_logo":"1","login_page_logo_url":"\/","show_password_reset_link":"1","show_signup_link":"1","login_page_show_remember_me":"1","show_breadcrumb":"1","hide_dashboard_breadcrumb":"1","require_login":"0","showcase_enabled":"0","showcase_heading":"Showcase heading","showcase_text":"Showcase text","showcase_button_title":"Showcase button title","showcase_button_url":"Showcase link URL","side_menu_dashboard":"1","side_menu_order":"1","side_menu_support":"1","side_menu_services":"1","side_menu_invoices":"1","side_menu_emails":"1","side_menu_payments":"1","side_menu_news":"1","side_menu_kb":"1","sidebar_note_enabled":"0","sidebar_note_title":"Note title","sidebar_note_content":"Note content","meta_title":"","meta_description":"Members area","meta_keywords":"members area","meta_robots":"index, follow","meta_author":"FOSSBilling","footer_enabled":"1","footer_to_top_enabled":"1","footer_signature":"","footer_link_1_enabled":"on","footer_link_1_title":"About us","footer_link_1_page":"about-us","footer_link_2_enabled":"on","footer_link_2_title":"Terms and conditions","footer_link_2_page":"tos","footer_link_3_enabled":"on","footer_link_3_title":"Privacy policy","footer_link_3_page":"privacy-policy","footer_link_4_title":"","footer_link_4_page":"","footer_link_5_title":"","footer_link_5_page":"","inject_javascript":""}},"current":"Test"}
|
||||
{"presets":{"default":{"color_scheme":"blue","show_company_logo":"0","show_company_name":"1","show_client_details":"1","sidebar_balance_enabled":"1","top_menu_dashboard":"1","top_menu_order":"1","top_menu_signout":"1","login_page_show_logo":"1","show_password_reset_link":"1","side_menu_dashboard":"1","side_menu_order":"1","side_menu_support":"1","side_menu_services":"1","side_menu_invoices":"1","side_menu_emails":"1","side_menu_payments":"1","side_menu_news":"1","side_menu_kb":"1","sidebar_note_enabled":"0","sidebar_note_title":"","sidebar_note_content":"","meta_title":"","meta_description":"Members area","meta_keywords":"members area","meta_robots":"index, follow","meta_author":"FOSSBilling"},"juoda":{"color_scheme":"dark","show_company_logo":"0","show_company_name":"1","show_client_details":"0","sidebar_balance_enabled":"0","top_menu_dashboard":"1","top_menu_order":"1","top_menu_signout":"1","login_page_show_logo":"1","login_page_logo_url":"\/","show_password_reset_link":"1","show_signup_link":"1","login_page_show_remember_me":"1","side_menu_dashboard":"1","side_menu_order":"1","side_menu_support":"1","side_menu_services":"1","side_menu_invoices":"1","side_menu_emails":"1","side_menu_payments":"1","side_menu_news":"1","side_menu_kb":"1","sidebar_note_enabled":"0","sidebar_note_title":"","sidebar_note_content":"","meta_title":"","meta_description":"Members area","meta_keywords":"members area","meta_robots":"index, follow","meta_author":"FOSSBilling","inject_javascript":""},"Test":{"color_scheme":"green","show_page_header":"1","show_company_logo":"1","show_company_name":"1","show_client_details":"1","sidebar_balance_enabled":"1","top_menu_dashboard":"1","top_menu_order":"1","top_menu_profile":"1","top_menu_signout":"1","login_page_show_logo":"1","login_page_logo_url":"\/","show_password_reset_link":"1","show_signup_link":"1","login_page_show_remember_me":"1","show_breadcrumb":"1","hide_dashboard_breadcrumb":"1","require_login":"0","showcase_enabled":"0","showcase_text":"## The showcase text is markdown enabled\r\nSo you can use features like ~~strike-through ~~\r\n\r\nAdditionally, you can use things like lists\r\n - List item 1\r\n - List item 2\r\n\r\nWhat's that? You don't want to have a button \/ link?\r\n\r\nThen just make it blank and FOSSBilling will automatically hide it!","showcase_button_title":"Showcase button title","showcase_button_url":"Showcase link URL","side_menu_dashboard":"1","side_menu_order":"1","side_menu_support":"1","side_menu_services":"1","side_menu_invoices":"1","side_menu_emails":"1","side_menu_payments":"1","side_menu_news":"1","side_menu_kb":"1","sidebar_note_enabled":"0","sidebar_note_title":"Note title","sidebar_note_content":"Note content","meta_title":"","meta_description":"Members area","meta_keywords":"members area","meta_robots":"index, follow","meta_author":"FOSSBilling","footer_enabled":"1","footer_to_top_enabled":"1","footer_signature":"","footer_link_1_enabled":"on","footer_link_1_title":"About us","footer_link_1_page":"about-us","footer_link_2_enabled":"on","footer_link_2_title":"Terms and conditions","footer_link_2_page":"tos","footer_link_3_enabled":"on","footer_link_3_title":"Privacy policy","footer_link_3_page":"privacy-policy","footer_link_4_title":"","footer_link_4_page":"","footer_link_5_title":"","footer_link_5_page":"","inject_javascript":""}},"current":"Test"}
|
||||
Reference in new issue
Block a user