{% extends "base.html" %}
{% block title %}{{repo|repo_name}} {{path.display()}} - {{crate::config().site_name}}{% endblock %}
{% block content %}
{% include "repo-navbar.html" %}
{% if path.to_string_lossy() != "" %}
{{path.to_string_lossy()}}/@{{spec}}
{% else %}
{{ spec }}
{% endif %}
|
{% include "last-commit.html" %}
| Mode |
Name |
Size |
{% for entry in tree %}
|
{{ entry.filemode()|unix_perms }}
|
{% let obj = entry.to_object(repo.as_inner()) %}
{% if obj.is_ok() %}
{% let o = obj.unwrap() %}
{{entry.name().unwrap() }}{% if o.as_tree().is_some() %}/{% endif %}
|
{% if o.as_blob().is_some() %}
{{ o.into_blob().unwrap().content().len()|filesizeformat }}
{% endif %}
|
{% else %}
{{ entry.name().unwrap() }} |
|
{% endif %}
{% endfor %}
{% endblock %}