Browse Source

Merge "Highlight WIP state in change view"

changes/41/794241/1
Zuul 4 months ago
committed by Gerrit Code Review
parent
commit
3775883603
  1. 1
      gertty/palette.py
  2. 2
      gertty/view/change.py

1
gertty/palette.py

@ -80,6 +80,7 @@ DEFAULT_PALETTE={
'check-SCHEDULED': ['dark magenta', '', ''],
'check-RUNNING': ['dark magenta', ''],
'check-NOT_RELEVANT': ['dark gray', ''],
'state-wip': ['yellow', ''],
# project list
'unreviewed-project': ['white', ''],
'subscribed-project': ['default', ''],

2
gertty/view/change.py

@ -747,7 +747,7 @@ class ChangeView(urwid.WidgetWrap):
self.hashtags_label.set_text(('change-data', hashtag_buttons or u''))
self.created_label.set_text(('change-data', str(self.app.time(change.created))))
self.updated_label.set_text(('change-data', str(self.app.time(change.updated))))
stat = change.wip and 'WIP' or change.status
stat = change.wip and ('state-wip', 'WIP') or change.status
self.status_label.set_text(('change-data', stat))
self.permalink_url = urlparse.urljoin(self.app.config.url, str(change.number))
self.permalink_label.text.set_text(('change-data', self.permalink_url))

Loading…
Cancel
Save