diff --git a/templates/homepage.html b/templates/homepage.html index 629688cf..da2d66ec 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -58,7 +58,7 @@ library spotlight

{{ featured_library.name }}

-

{% if featured_library.first_github_tag_date %}Released {{ featured_library.first_github_tag_date|date:"m/d/y"}}{% endif %}

+

{% if featured_library.first_boost_version %}Added in {{ featured_library.first_boost_version.display_name }}{% endif %}

{{ featured_library.description }}

{% if featured_library.authors %} diff --git a/templates/libraries/_library_list_item.html b/templates/libraries/_library_list_item.html index c999cdc0..cc7da83f 100644 --- a/templates/libraries/_library_list_item.html +++ b/templates/libraries/_library_list_item.html @@ -1,4 +1,5 @@ {% load static %} +{% load date_filters %}
@@ -22,7 +23,7 @@
{{ library.cpp_standard_minimum }}
-
2yrs
+
{% if library.first_boost_version %}{{ library.first_boost_version.release_date|years_since }} yrs{% endif %}
{% for c in library.categories.all %} {{ c.name }}{% if not forloop.last %}, {% endif %}{% endfor %} diff --git a/templates/libraries/detail.html b/templates/libraries/detail.html index 11d6c063..cf0c9fef 100644 --- a/templates/libraries/detail.html +++ b/templates/libraries/detail.html @@ -48,7 +48,7 @@ No Minimum CPP Required {% endif %} - {% if object.first_github_tag_date %}Since {{ object.first_github_tag_date|date:"Y" }}{% endif %} + {% if object.first_boost_version %}Added in Boost {{ object.first_boost_version.display_name }}{% endif %}