# HG changeset patch # User Goffi # Date 1522092604 -7200 # Node ID 24920d436e7738e01baa0f7cec270b3332cf7ce4 # Parent f1d47c2942ae695673c0a54d09ae351cf091dc33 ticket: basic tickets discovery diff -r f1d47c2942ae -r 24920d436e77 default/components/common.html --- 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'), diff -r f1d47c2942ae -r 24920d436e77 default/ticket/discover.html --- /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 %} +

+ {% trans %} + Please select a tickets tracker + {% endtrans %} +

+{% if tickets_trackers is defined %} + {{ icon_defs('clipboard') }} +
+ +
+{% endif %} + +{% call form.form(class="form_single") %} + {{ field.text("jid", _("tickets tracker jid"), required=true)}} + {{ field.submit(_("Access")) }} +{% endcall %} +{% endblock body %} diff -r f1d47c2942ae -r 24920d436e77 default/ticket/item.html --- 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 %}