Formatting works for comments and description
Supports bold, italic, underline, and links
This commit is contained in:
@@ -8,6 +8,10 @@ palette = [
|
||||
('selected', 'standout', ''),
|
||||
('task', 'light green', ''),
|
||||
('text', '', ''),
|
||||
('strong', 'bold', ''),
|
||||
('underline', 'underline', ''),
|
||||
('link', 'underline,light blue', ''),
|
||||
('italic', 'italics', ''),
|
||||
('workspace', 'white', 'dark blue'),
|
||||
]
|
||||
|
||||
|
||||
@@ -74,11 +74,9 @@ class CustomFields(object):
|
||||
|
||||
class Stories(object):
|
||||
def __init__(self, stories):
|
||||
components = [urwid.Text([
|
||||
('author', s.creator()),
|
||||
s.text(),
|
||||
'\n'
|
||||
]) for s in stories]
|
||||
components = [
|
||||
urwid.Text([('author', s.creator())] + s.text())
|
||||
for s in stories]
|
||||
|
||||
self.stories = urwid.Pile(components)
|
||||
|
||||
|
||||
3
ui/ui.py
3
ui/ui.py
@@ -39,9 +39,10 @@ class Ui(object):
|
||||
def task_list(self, id):
|
||||
self.nav_stack.append(('project', id))
|
||||
def runInThread():
|
||||
project = self.asana_service.get_project(id)
|
||||
tasks = self.asana_service.get_tasks(id)
|
||||
self.update(TaskList(tasks,
|
||||
'TODO: get project name',
|
||||
project.name(),
|
||||
self.task_details
|
||||
).component())
|
||||
thread = Thread(target=runInThread())
|
||||
|
||||
Reference in New Issue
Block a user