|
@@ -48,6 +48,8 @@ var (
|
|
|
BorderStyle(lipgloss.ASCIIBorder())
|
|
BorderStyle(lipgloss.ASCIIBorder())
|
|
|
|
|
|
|
|
borderStyle = lipgloss.NewStyle().
|
|
borderStyle = lipgloss.NewStyle().
|
|
|
|
|
+ Padding(2).
|
|
|
|
|
+ Margin(1).
|
|
|
BorderStyle(lipgloss.NormalBorder())
|
|
BorderStyle(lipgloss.NormalBorder())
|
|
|
)
|
|
)
|
|
|
|
|
|
|
@@ -70,11 +72,15 @@ func (m Model) renderBug() string {
|
|
|
blockedby = blockedby + field.Path + ", "
|
|
blockedby = blockedby + field.Path + ", "
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- output = output + variadicTitleStyle.Render("\nTags:")
|
|
|
|
|
- output = output + fmt.Sprintf("\n%s", variadicDataStyle.Render(tags))
|
|
|
|
|
|
|
+ if len(m.Bug.Tags.Fields) > 0 {
|
|
|
|
|
+ output = output + variadicTitleStyle.Render("\nTags:")
|
|
|
|
|
+ output = output + fmt.Sprintf("\n%s", variadicDataStyle.Render(tags))
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- output = output + variadicTitleStyle.Render("\n\nBlockedby:")
|
|
|
|
|
- output = output + fmt.Sprintf("\n%s", variadicDataStyle.Render(blockedby))
|
|
|
|
|
|
|
+ if len(m.Bug.Blockedby.Fields) > 0 {
|
|
|
|
|
+ output = output + variadicTitleStyle.Render("\n\nBlockedby:")
|
|
|
|
|
+ output = output + fmt.Sprintf("\n%s", variadicDataStyle.Render(blockedby))
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// description
|
|
// description
|
|
|
output = output + "\n---"
|
|
output = output + "\n---"
|