From 55048bda33bb7d23cae7e81ad6d8100e58c0ce0c Mon Sep 17 00:00:00 2001 From: Gregory Ballantine Date: Mon, 21 Nov 2022 18:04:24 -0500 Subject: [PATCH] Styled the ticket view page; added a section for future ticket comments --- assets/sass/darkmeyer.sass | 62 +++++++++++++++++++++++++++++++++++++- views/layout.twig | 2 +- views/ticket/view.twig | 46 ++++++++++++++++++++++++---- 3 files changed, 102 insertions(+), 8 deletions(-) diff --git a/assets/sass/darkmeyer.sass b/assets/sass/darkmeyer.sass index dcce1c6..e90a5f5 100644 --- a/assets/sass/darkmeyer.sass +++ b/assets/sass/darkmeyer.sass @@ -9,11 +9,16 @@ $nav-height: 60px body padding-top: $nav-height background: lightgrey + font-size: 16px .container max-width: 1100px padding: 20px 30px +.card + background: white + box-shadow: $box-shadow-2 + #main-nav position: fixed top: 0 @@ -46,4 +51,59 @@ body #main-wrapper margin-top: 25px - background: white + +#ticket-header + margin-bottom: 15px + + .ticket-title + margin-bottom: 5px + + .ticket-created, + .ticket-updated + margin-bottom: 3px + color: #666 + font-size: 1.5rem + font-style: italic + +#ticket-body + p:last-child + margin-bottom: 5px + +.ticket-status + list-style: none + margin: 0 + border: 1px solid #bbb + border-bottom: none + + > li + margin: 0 + padding: 7px 12px + border-bottom: 1px solid #999 + + .ticket-actions + padding: 0 + + ul + list-style: none + margin: 0 + + li + display: inline + margin: 0 + padding: 0 + &:not(:first-child) + a + border-left: 1px solid #999 + + a + position: relative + display: inline-block + box-sizing: border-box + width: calc(50% - 2px) + height: 100% + padding: 7px 12px + text-align: center + + i + margin-right: 5px + font-size: 1.75rem diff --git a/views/layout.twig b/views/layout.twig index 409e7db..07d2709 100644 --- a/views/layout.twig +++ b/views/layout.twig @@ -22,7 +22,7 @@ -
+
{% block content %}{% endblock %}
diff --git a/views/ticket/view.twig b/views/ticket/view.twig index 942f448..b3fea5c 100644 --- a/views/ticket/view.twig +++ b/views/ticket/view.twig @@ -4,18 +4,52 @@ {% block content %}
-
-

{{ ticket.title }}

-

Status: {{ ticket.status }}

-
Created at {{ ticket.created_at }} | Last updated at {{ ticket.updated_at }}
+ +
+
+
+

{{ ticket.title }}

+

Created at {{ ticket.created_at }}

+

Last updated at {{ ticket.updated_at }}

+
+
+ +
+
+

{{ ticket.body }}

+
+
+
+ + +
+
    +
  • + +
  • +
  • + Severity {{ ticket.severity | capitalize }} +
  • +
  • + Status: {{ ticket.status | capitalize }} +
  • +
  • + Assignee(s): N/a +
  • +

+
-
-

{{ ticket.body }}

+
+

Ticket comments/Updates

+

There are no comments to display at this time.

{% endblock %}