{% ckan_extends %}
{% block primary_content_inner %}
    {% if pkg %}
      {% set versions=h.datasetversions_list(pkg) %}
      {% if versions %}
        {% if versions[0] != pkg.name %}
          {% set newer_url = h.url_for(controller='package', action='read', id=versions[0]) %}
  <div class="old-version module info alert alert-warning">
    <p class="module-content">
    {% trans newer_url=newer_url %}This is an old version. Go to the <a href="{{ newer_url }}">latest version</a> to see the most up-to-date resources.{% endtrans %}
    </p>
  </div>
        {% endif %}
      {% endif %}
    {% endif %}
{{ super() }}
{% endblock %}

Add warning if dataset old version
Add warning if dataset old version
