Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove placeholder text from source list for now #134

Merged
merged 1 commit into from
Nov 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,6 @@ def __init__(self, parent, source):
layout.addWidget(self.summary)
self.updated = QLabel()
layout.addWidget(self.updated)
self.details = QLabel()
self.details.setWordWrap(True)
layout.addWidget(self.details)
self.update()

def setup(self, controller):
Expand Down Expand Up @@ -237,15 +234,11 @@ def display_star_icon(self):
def update(self):
"""
Updates the displayed values with the current values from self.source.

TODO: Style this widget properly and work out what should be in the
self.details label.
"""
self.updated.setText(arrow.get(self.source.last_updated).humanize())
self.display_star_icon()
self.name.setText("<strong>{}</strong>".format(
self.source.journalist_designation))
self.details.setText("Lorum ipsum dolor sit amet thingy dodah...")

def toggle_star(self, event):
"""
Expand Down