diff --git a/_includes/t-status.html b/_includes/t-status.html index 79b3854..6986748 100644 --- a/_includes/t-status.html +++ b/_includes/t-status.html @@ -1,8 +1,8 @@ {% assign versions=alldocs | where_exp:"item", "item.ref == include.page.url or item.url == include.page.url" %} {% assign original=versions | where_exp:"item", "item.lang == 'en' or item.lang == nil" | first %} -{% assign t=versions | where_exp:"item", "item.lang == page.tlang" | first %} +{% assign translation=versions | where_exp:"item", "item.lang == page.tlang" | first %} -{%- capture page_title -%} +{%- capture original-title -%} {%- if original.permalink != nil -%}
{%- elsif original.permalink == nil and include.page.name.en != nil -%} @@ -12,31 +12,31 @@ {%- endif -%} {%- endcapture -%} -{% capture t-date %}{{t.last_updated | date: '%s' | plus: 0 }}{% endcapture %} -{% capture en-date %}{{original.last_updated | date: '%s' | plus: 0 }}{% endcapture %} -{%- capture t_status -%} - {%- if t == nil -%}none - {%- elsif t.size != 0 and t-date < en-date -%}outdated - {%- elsif t.size != 0 and t-date >= en-date -%}uptodate +{% capture translation-date %}{{ translation.last_updated | date: '%s' | plus: 0 }}{% endcapture %} +{% capture original-date %}{{ original.last_updated | date: '%s' | plus: 0 }}{% endcapture %} +{%- capture t-status -%} + {%- if translation == nil -%}none + {%- elsif translation.size != 0 and translation-date < original-date -%}outdated + {%- elsif translation.size != 0 and translation-date >= original-date -%}uptodate {%- endif -%} {%- endcapture -%}{% include_cached icon.html name="ex-circle" %} No translation available
+{% include_cached icon.html name="ex-circle" %} No translation
{%- capture github-file-path -%}{% include_cached github-file-path.html p=original %}{%- endcapture -%} -Volunteer to translate this page
+Volunteer to translate this page
{%- when "outdated" -%}{% include_cached icon.html name="warning" %} Translation needs update
-
- {%- capture github-file-path -%}{% include_cached github-file-path.html p=t %}{%- endcapture -%} -Volunteer to update the translation
+ + {%- capture github-file-path -%}{% include_cached github-file-path.html p=translation %}{%- endcapture -%} +Volunteer to update the translation
{%- when "uptodate" -%}{% include_cached icon.html name="check-circle" %} Up-to-date
- + {%- endcase -%}This page lists the status of {{ tlangname }} translations, for WAI resources for which we welcome translations.
+ +Learn how to use this translation sitemap in Translations Sitemaps page.
{% include box.html type="end" %} @@ -183,7 +167,7 @@