{% extends base_template %} {% load seahub_tags avatar_tags i18n %} {% load url from future %} {% block sub_title %}{% trans "History" %} - {% endblock %} {% block main_panel %}

{% blocktrans %}{{ u_filename }} Version History{% endblocktrans %}

{% trans "Tip: a new version will be generated after each modification, and you can restore the file to a previous version." %}

{% trans 'Current Path:' %} {% for name, link in zipped %} {% if not forloop.last %} {{ name }} / {% else %} {{ name }} {% endif %} {% endfor %}

{% if days != 7 %} {% trans "a week" %} / {% else %} {% trans "a week" %} / {% endif %} {% if days != 30 %} {% trans "a month" %} / {% else %} {% trans "a month" %} / {% endif %} {% if days != -1 %} {% trans "all" %} {% else %} {% trans "all" %} {% endif %}
{% for commit in commits %} {% if commit.creator_name %} {% else %} {% endif %} {% endfor %}
{% trans 'Time' %} {% trans 'Modifier' %} {% trans 'Size' %} {% trans 'Operations' %}
{{ commit.props.ctime|translate_seahub_time }} {% if commit.is_current_version %} {% trans '(current version)' %} {% endif %} {% if commit.rev_renamed_old_path %}
{% blocktrans with old_path=commit.rev_renamed_old_path %}(Renamed or moved from {{ old_path }}){% endblocktrans %} {% endif %}
{% avatar commit.creator_name 16 %} {{ commit.creator_name|email2nickname }} {% trans 'Unknown' %}{{ commit.rev_file_size|filesizeformat }} {% if commit.id != repo.head_cmmt_id %} {% if can_revert_file %} {% trans 'Restore' %} {% endif %} {% endif %} {% trans 'Download' %} {% trans 'View' %} {% if can_compare and not forloop.last %} {% trans 'Diff' %} {% endif %}
{% endblock %} {% block extra_script %} {% endblock %}