Mercurial > libervia-templates
changeset 135:24920d436e77
ticket: basic tickets discovery
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 26 Mar 2018 21:30:04 +0200 |
parents | f1d47c2942ae |
children | 4eda3d0ddb22 |
files | default/components/common.html default/ticket/discover.html default/ticket/item.html |
diffstat | 3 files changed, 36 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/default/components/common.html Mon Mar 26 08:13:53 2018 +0200 +++ b/default/components/common.html Mon Mar 26 21:30:04 2018 +0200 @@ -5,7 +5,7 @@ 'forums': _('Forums'), 'merge-requests_list': _('Merge requests'), 'merge-request_new': _('Create new merge request'), - 'tickets_list': _('Tickets'), + 'tickets': _('Tickets'), 'ticket_new': _('Create new ticket'), 'chat': _('Chat'), 'files': _('Files sharing'),
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/default/ticket/discover.html Mon Mar 26 21:30:04 2018 +0200 @@ -0,0 +1,34 @@ +{% extends 'base/base.html' %} +{% import 'components/block.html' as block %} +{% import 'components/images.html' as images with context %} +{% import 'components/avatar.html' as avatar with context %} +{% import 'input/form.html' as form with context %} +{% import 'input/field.html' as field with context %} + +{% block body %} +<p class="instructions--head"> + {% trans %} + Please select a tickets tracker + {% endtrans %} +</p> +{% if tickets_trackers is defined %} + {{ icon_defs('clipboard') }} + <div class="disco_tickets"> + <ul class="grid grid--center"> + {% for tracker in tickets_trackers %} + <li class='grid__item grid__item--medium grid__item--selectable'> + <a href="{{tracker.url}}" class="items_vert--centered"> + {{ icon('clipboard', cls='icon--medium') }} + <span>{{ tracker.name }}</span> + </a> + </li> + {% endfor %} + </ul> + </div> +{% endif %} + +{% call form.form(class="form_single") %} + {{ field.text("jid", _("tickets tracker jid"), required=true)}} + {{ field.submit(_("Access")) }} +{% endcall %} +{% endblock body %}
--- a/default/ticket/item.html Mon Mar 26 08:13:53 2018 +0200 +++ b/default/ticket/item.html Mon Mar 26 21:30:04 2018 +0200 @@ -6,7 +6,7 @@ @variable comments_node(unicode): node for adding comments #} -{% set category_menu = [('tickets_list', url_tickets_list), +{% set category_menu = [('tickets', url_tickets_list), ('ticket_new', url_tickets_new)] %} {% if not embedded %}{% extends 'base/base.html' %}{% endif %} {% import 'input/xmlui.html' as xmlui with context %}