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 grant year ranges from profile card display #223

Merged
merged 2 commits into from
Nov 4, 2020

Conversation

thatbudakguy
Copy link
Contributor

Including grant year ranges created a mismatch between the years
listed and the name of the grant shown, which was only the
most recent one.

See #197

@codecov-io
Copy link

codecov-io commented Nov 2, 2020

Codecov Report

Merging #223 into develop will increase coverage by 0.27%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop     #223      +/-   ##
===========================================
+ Coverage    97.85%   98.13%   +0.27%     
===========================================
  Files           85       84       -1     
  Lines         2848     2839       -9     
===========================================
- Hits          2787     2786       -1     
+ Misses          61       53       -8     

{% firstof profile.first_start.year profile.first_start|slice:":4" as start_year %}
{% firstof profile.last_end.year profile.last_end|slice:":4" as end_year %}
{{ start_year }}{% if start_year != end_year %}–{{ end_year }}{% endif %}
{{ end_year }}
Copy link
Contributor

Choose a reason for hiding this comment

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

seems a little weird to me not to display the start/end year range for the most recent grant, but I guess this works as a simple, temporary solution

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right! it also simplified things a ton to just use start/end for most recent grant. i've changed it. thanks!

Including grant year ranges created a mismatch between the years
listed and the name of the grant shown, which was only the
most recent one.

See #197
@thatbudakguy thatbudakguy merged commit 6ad2de6 into develop Nov 4, 2020
@thatbudakguy thatbudakguy deleted the affiliate-ranges branch November 4, 2020 20:15
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.

3 participants