-
Notifications
You must be signed in to change notification settings - Fork 92
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
update officers page and add committee heads #568
Conversation
There's a typo in the date for ethanhs- should be /19 for the year right? |
Ha. I'll never reveal my time traveling secrets! |
cac8671
to
cc6d18e
Compare
@64bitpandas good catch, fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
@@ -80,6 +80,26 @@ <h4> | |||
the OCF lab and other services. They are elected by the Board of | |||
Directors at the end of each semester. | |||
</p> | |||
{% if current_term.heads|length > 0 %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to just say {% if current_term.heads %}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not totally sure, but this is following the pattern of lines 36 and 65. I'll try to test it.
@@ -24,12 +25,17 @@ def Term( | |||
sms: List[Any], | |||
dgms: Optional[List[Any]] = None, | |||
dsms: Optional[List[Any]] = None, | |||
heads: Optional[List[Tuple[str, List[Any]]]] = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we'd make the Any
s more specific. Perhaps this can wait until we can use Python 3.7 data classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will get refactored anyways, assuming someone works on ocf/etc#3
This updates the officers page to include recent elections. It also adds committee heads to the officers page. I didn't add committee heads to the "previous officers" section, because I wasn't sure how to do it (and we don't have any official historical committee heads). We should think about if we want to do this and if so how.
Ideally this can be merged when the new terms take effect on December 21.