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

Turn the historical view into a table #60

Merged
merged 5 commits into from
Jun 15, 2021

Conversation

sarayourfriend
Copy link
Contributor

Captura de Tela 2021-06-15 às 08 49 37

It also highlights the differences between row values 🙂

@sarayourfriend sarayourfriend self-assigned this Jun 15, 2021
Copy link
Collaborator

@AetherUnbound AetherUnbound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this!! I just have a couple of comments

src/filters.py Outdated Show resolved Hide resolved
@@ -0,0 +1,29 @@
<table>
<thead>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mind using 4 spaces for this file instead of tab characters? 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Done in fb8e213

src/views/officer-table.j2 Outdated Show resolved Hide resolved
{% if value and value.startswith("http") %}
<a href="{{ value }}" target="_blank" rel="noopener noreferrer">{{ value }}</a>
{% else %}
{{ value if value }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're casting this to string on line 18, can this just be {{ value}}?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure! I copied that part from officer.j2 😅 Presumably it would just be an empty string if falsy, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this check in feb04b2

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh jeez 😂 it can probably be changed there too. And yea! Should be an empty string at this point

Copy link
Collaborator

@AetherUnbound AetherUnbound left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 🚀

@sarayourfriend sarayourfriend merged commit 0f976d8 into main Jun 15, 2021
@sarayourfriend sarayourfriend deleted the add/historical-view-table branch June 15, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants