mirror of
https://github.com/boostorg/website-v2.git
synced 2026-02-27 17:42:08 +00:00
Update templates with new Boost version info
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<span class="inline py-1 px-3 w-auto text-sm uppercase rounded md:text-base text-green bg-green/10">library spotlight</span>
|
||||
</div>
|
||||
<h3 class="text-xl"><a href="{% url 'library-detail' slug=featured_library.slug %}">{{ featured_library.name }}</a></h3>
|
||||
<p class="my-3">{% if featured_library.first_github_tag_date %}Released {{ featured_library.first_github_tag_date|date:"m/d/y"}}{% endif %}</p>
|
||||
<p class="my-3">{% if featured_library.first_boost_version %}Added in {{ featured_library.first_boost_version.display_name }}{% endif %}</p>
|
||||
<p>{{ featured_library.description }}</p>
|
||||
<div class="my-5">
|
||||
{% if featured_library.authors %}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{% load static %}
|
||||
{% load date_filters %}
|
||||
|
||||
<div class="relative content-between p-3 bg-white rounded-lg shadow-lg md:p-5 dark:bg-charcoal">
|
||||
<div class="">
|
||||
@@ -22,7 +23,7 @@
|
||||
</div>
|
||||
<div class="text-sm flex py-3 bottom-3 absolute w-[90%]">
|
||||
<div class="w-1/6"><span class="py-0 px-2 text-sm font-bold text-gray-600 rounded-full border dark:text-gray-300 bg-green/40 border-green/60 dark:bg-green/40" title="{% if library.cpp_standard_minimum and library.cpp_standard_minimum != 'None' %}CPP Version {{ library.cpp_standard_minimum }} or Later{% else %}No Minimum CPP Required{% endif %}">{{ library.cpp_standard_minimum }}</span></div>
|
||||
<div class="w-1/6 tracking-wider text-charcoal dark:text-white/60">2yrs</div>
|
||||
<div class="w-1/6 tracking-wider text-charcoal dark:text-white/60">{% if library.first_boost_version %}{{ library.first_boost_version.release_date|years_since }} yrs{% endif %}</div>
|
||||
<div class="w-4/6 text-right dark:text-gray-400 text-slate">
|
||||
{% for c in library.categories.all %}
|
||||
<a href="{% url 'libraries' %}?category={{ c.slug }}{% if version %}&version={{ version.slug }}{% endif %}">{{ c.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
No Minimum CPP Required
|
||||
{% endif %}
|
||||
</span>
|
||||
<span class="float-right">{% if object.first_github_tag_date %}Since {{ object.first_github_tag_date|date:"Y" }}{% endif %}</span>
|
||||
<span class="float-right">{% if object.first_boost_version %}Added in Boost {{ object.first_boost_version.display_name }}{% endif %}</span>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user