1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Column and row definitions into the config file. No need to compile to change sizes

This commit is contained in:
Chris Cummer
2018-04-09 13:19:16 -07:00
committed by Chris Cummer
parent cc4b5714f0
commit 7072820967
4 changed files with 35 additions and 3 deletions

View File

@@ -68,9 +68,15 @@ func (widget *Widget) contentFrom(deploys []nr.ApplicationDeployment) string {
for _, deploy := range deploys {
if (deploy.Revision != "") && wtf.Exclude(revisions, deploy.Revision) {
lineColor := "white"
if wtf.IsToday(deploy.Timestamp) {
lineColor = "cornflowerblue"
}
str = str + fmt.Sprintf(
" [green]%s[white] %s %-16s\n",
" [green]%s[%s] %s %-16s[white]\n",
deploy.Revision[0:8],
lineColor,
deploy.Timestamp.Format("Jan 02, 15:04 MST"),
wtf.NameFromEmail(deploy.User),
)