[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/rt-liberation cbfb99c 49/68: * rt-liberation.el: start
From: |
Yoni Rabkin |
Subject: |
[elpa] externals/rt-liberation cbfb99c 49/68: * rt-liberation.el: start making sense of section types |
Date: |
Wed, 16 Dec 2020 12:11:14 -0500 (EST) |
branch: externals/rt-liberation
commit cbfb99c308c09808386c34467530388b7dc9b62e
Author: Yoni Rabkin <yoni@rabkins.net>
Commit: Yoni Rabkin <yoni@rabkins.net>
* rt-liberation.el: start making sense of section types
---
rt-liberation.el | 37 ++++++++++++++++++++++++++-----------
1 file changed, 26 insertions(+), 11 deletions(-)
diff --git a/rt-liberation.el b/rt-liberation.el
index 1adee43..9e759dc 100644
--- a/rt-liberation.el
+++ b/rt-liberation.el
@@ -1332,28 +1332,43 @@ ASSOC-BROWSER if non-nil should be a ticket browser."
(creator (alist-get 'Creator section))
(date (alist-get 'Created section))
(type (alist-get 'Type section))
- (content (alist-get 'Content section)))
+ (content (alist-get 'Content section))
+ (oldvalue (alist-get 'OldValue section))
+ (newvalue (alist-get 'NewValue section))
+ (field (alist-get 'Field section)))
(let ((start (point)))
(insert
- (format "Ticket %s by %s on %s (-N- days ago) (%s)\n"
+ (format "Ticket %s by %s on %s (-N- days ago) (%s)%s\n"
ticket-id
creator
date
- type))
+ type
+ (if (and (string= type "Set")
+ (string= field "Owner"))
+ " (owner change)"
+ "")))
(add-text-properties start
(point)
`(font-lock-face rt-liber-ticket-emph-face))
(add-text-properties start
(point)
`(rt-liberation-viewer-header t)))
- (cond ((or (string= type "Status")
- (string= type "CustomField")
- ;; (string= type "EmailRecord")
- (string= type "Set"))
- 'nop-for-now)
- (t (insert
- (format "\n%s\n"
- (rt-liber-viewer2-format-content content)))))))
+ (cond ((or (string= type "CustomField")
+ (string= type "EmailRecord")
+ (string= type "Set")
+ (string= type "SetWatcher"))
+ (insert
+ (format "\n" field oldvalue newvalue)))
+ ((string= type "Status")
+ (insert
+ (format "\n%s: %s -> %s\n" field oldvalue newvalue)))
+ ((or (string= type "Create")
+ (string= type "Comment")
+ (string= type "CommentEmailRecord"))
+
+ (insert
+ (format "\n%s\n"
+ (rt-liber-viewer2-format-content content)))))))
(defun rt-liber-viewer2-display-history (contents)
(let ((section-list (rt-liber-viewer-parse-history contents)))
- [elpa] externals/rt-liberation b1a1dc6 56/68: * rt-liberation.el: prep for mail, (continued)
- [elpa] externals/rt-liberation b1a1dc6 56/68: * rt-liberation.el: prep for mail, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation d567c59 60/68: * rt-liberation.el: fix n/p in viewer2, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 3376123 63/68: * rt-liberation-rest.el: better user interaction, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation f682e7b 68/68: Merge branch 'master' into externals/rt-liberation, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 0fc4737 09/68: documentation fixes, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation ed929f5 16/68: integrate changes post-ELPA synchronization, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 53e56b7 31/68: * rt-liberation-viewer.el: history parse, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation a9786cf 23/68: * NEWS: update, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 1000e89 11/68: * doc/rt-liberation.texinfo: update manual, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 680e177 48/68: * rt-liberation.el: remove leading blank lines, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation cbfb99c 49/68: * rt-liberation.el: start making sense of section types,
Yoni Rabkin <=
- [elpa] externals/rt-liberation b23df79 50/68: * rt-liberation.el: forward and back section movement, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 1038ecc 53/68: * rt-liberation.el: fill content, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation dacb48c 54/68: * rt-liberation.el: trim down viewer2 key map., Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation 3a0dfc3 55/68: * rt-liberation.el: section data, Yoni Rabkin, 2020/12/16
- [elpa] externals/rt-liberation a99fc59 59/68: * rt-liberation.el: high recenter, Yoni Rabkin, 2020/12/16