summary refs log tree commit diff stats
path: root/widgets/msgviewer.go
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/msgviewer.go')
-rw-r--r--widgets/msgviewer.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/widgets/msgviewer.go b/widgets/msgviewer.go
index 9230ba3..45a5ed0 100644
--- a/widgets/msgviewer.go
+++ b/widgets/msgviewer.go
@@ -60,7 +60,7 @@ func NewMessageViewer(acct *AccountView, conf *config.AercConfig,
 	store *lib.MessageStore, msg *types.MessageInfo) *MessageViewer {
 
 	grid := ui.NewGrid().Rows([]ui.GridSpec{
-		{ui.SIZE_EXACT, 3}, // TODO: Based on number of header rows
+		{ui.SIZE_EXACT, 4}, // TODO: Based on number of header rows
 		{ui.SIZE_WEIGHT, 1},
 	}).Columns([]ui.GridSpec{
 		{ui.SIZE_WEIGHT, 1},
@@ -71,6 +71,7 @@ func NewMessageViewer(acct *AccountView, conf *config.AercConfig,
 		{ui.SIZE_EXACT, 1},
 		{ui.SIZE_EXACT, 1},
 		{ui.SIZE_EXACT, 1},
+		{ui.SIZE_EXACT, 1},
 	}).Columns([]ui.GridSpec{
 		{ui.SIZE_WEIGHT, 1},
 		{ui.SIZE_WEIGHT, 1},
@@ -87,10 +88,15 @@ func NewMessageViewer(acct *AccountView, conf *config.AercConfig,
 		}).At(0, 1)
 	headers.AddChild(
 		&HeaderView{
+			Name:  "Date",
+			Value: msg.Envelope.Date.Format("Mon Jan 2, 2006 at 3:04 PM"),
+		}).At(1, 0).Span(1, 2)
+	headers.AddChild(
+		&HeaderView{
 			Name:  "Subject",
 			Value: msg.Envelope.Subject,
-		}).At(1, 0).Span(1, 2)
-	headers.AddChild(ui.NewFill(' ')).At(2, 0).Span(1, 2)
+		}).At(2, 0).Span(1, 2)
+	headers.AddChild(ui.NewFill(' ')).At(3, 0).Span(1, 2)
 
 	var err error
 	switcher := &PartSwitcher{}
e='Blame the previous revision' href='/akspecs/ranger/blame/README?h=v1.7.0&id=99400080aa6206cbae1895e3b9800124f94e3d7a'>^
4ea0f69a ^

240394a4 ^

712aa449
240394a4 ^

240394a4 ^
7dc8fef8 ^
9e89f023 ^
36e4e71e ^
20ab9343 ^

20ab9343 ^





4ea0f69a ^

240394a4 ^
7dc8fef8 ^
36e4e71e ^

4a383291 ^
78a7d762 ^
e952d6cb ^
78a7d762 ^
e952d6cb ^
4ea0f69a ^

7838675f ^

07069888 ^

07069888 ^
7838675f ^

1891697f ^
755e7df1 7dc8fef8 ^



7b33b517 ^

176e8a68 ^
7b33b517 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96