Display endorsement in relationship entities
authorMikael Berthe <mikael@lilotux.net>
Wed, 05 Sep 2018 23:22:06 +0200
changeset 228 360929ee6aef
parent 227 34ed5019193a
child 229 d4c099a67c86
Display endorsement in relationship entities Update plaintext output and ansi themes to display the endorsement status when displaying a relationship.
printer/plainprinter.go
templates/themes/ansi-dark/relationship.tmpl
templates/themes/ansi/relationship.tmpl
--- a/printer/plainprinter.go	Wed Sep 05 23:20:43 2018 +0200
+++ b/printer/plainprinter.go	Wed Sep 05 23:22:06 2018 +0200
@@ -288,6 +288,7 @@
 	indentedPrint(w, indent, false, false, "Blocking", "%v", r.Blocking)
 	indentedPrint(w, indent, false, false, "Muting", "%v", r.Muting)
 	indentedPrint(w, indent, false, false, "Muting notifications", "%v", r.MutingNotifications)
+	indentedPrint(w, indent, false, false, "Endorsed", "%v", r.Endorsed)
 	indentedPrint(w, indent, false, false, "Requested", "%v", r.Requested)
 	return nil
 }
--- a/templates/themes/ansi-dark/relationship.tmpl	Wed Sep 05 23:20:43 2018 +0200
+++ b/templates/themes/ansi-dark/relationship.tmpl	Wed Sep 05 23:22:06 2018 +0200
@@ -6,4 +6,5 @@
   Blocking:       {{.blocking}}
   Muting:         {{.muting}}
   Muting notif.:  {{.muting}}
+  Endorsed:       {{.endorsed}}
   Requested:      {{.requested}}
--- a/templates/themes/ansi/relationship.tmpl	Wed Sep 05 23:20:43 2018 +0200
+++ b/templates/themes/ansi/relationship.tmpl	Wed Sep 05 23:22:06 2018 +0200
@@ -6,4 +6,5 @@
   Blocking:       {{.blocking}}
   Muting:         {{.muting}}
   Muting notif.:  {{.muting}}
+  Endorsed:       {{.endorsed}}
   Requested:      {{.requested}}