Blame progit/templates/file.html

Pierre-Yves Chibon 0bf43e
{% extends "repo_master.html" %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 1a7791
{% block title %}Tree - {{ repo.name }}{% endblock %}
Pierre-Yves Chibon 2088eb
{%block tag %}home{% endblock %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 0bf43e
{% block repo %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 2088eb

Pierre-Yves Chibon ea8735
    
Pierre-Yves Chibon ea8735
                repo=repo.name, identifier=branchname)
Pierre-Yves Chibon ea8735
    }}">{{ branchname }}/{%
Pierre-Yves Chibon 724de9
  for file in filename.split('/') %}
Pierre-Yves Chibon 724de9
    {% if loop.first %}
Pierre-Yves Chibon 724de9
    {% set path = file %}
Pierre-Yves Chibon 724de9
    {% else %}
Pierre-Yves Chibon 724de9
    {% set path = path + '/' + file %}
Pierre-Yves Chibon 724de9
    {% endif %}
Pierre-Yves Chibon ea8735
    {% if loop.index != loop.length %}
Pierre-Yves Chibon ea8735
    href="{{ url_for('view_file', username=username,
Mathieu Bridon 4c73b0
            repo=repo.name, identifier=branchname,
Pierre-Yves Chibon 217a39
            filename=path)}}"
Pierre-Yves Chibon ea8735
      >{{ file }}/{% else %}{{ file }}{% endif %}
Pierre-Yves Chibon 724de9
  {% endfor %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon d72975
{% if content %}
Johan Cwiklinski 740adc
  {% if output_type == 'file' or output_type == 'binary' or output_type == 'image' %}
Johan Cwiklinski 7caba5
  <section class="file_content"></section>
Johan Cwiklinski 7caba5
      <header></header>
Johan Cwiklinski 740adc
    
    Johan Cwiklinski 740adc
            
  • Johan Cwiklinski 740adc
                        repo=repo.name, identifier=branchname,
    Johan Cwiklinski 740adc
                        filename=filename) }}" title="View as blob">Blob
    Johan Cwiklinski 740adc
            
  • Johan Cwiklinski 740adc
                        repo=repo.name, identifier=branchname,
    Johan Cwiklinski 740adc
                        filename=filename) }}" title="View as raw">Raw
    Johan Cwiklinski 740adc
        
    Johan Cwiklinski 7caba5
            
    Johan Cwiklinski 740adc
        {% if output_type=='file' %}
    Johan Cwiklinski 740adc
            {% autoescape false %}
    Johan Cwiklinski 740adc
            {{ content | format_loc}}
    Johan Cwiklinski 740adc
            {% endautoescape %}
    Pierre-Yves Chibon cabeba
        {% elif output_type == 'image' %}
    Pierre-Yves Chibon cabeba
            
    Pierre-Yves Chibon cabeba
                        repo=repo.name, identifier=branchname,
    Pierre-Yves Chibon cabeba
                        filename=filename) }}"/>
    Pierre-Yves Chibon cabeba
        {% elif output_type == 'binary' %}
    Pierre-Yves Chibon b3813a
            

    Pierre-Yves Chibon b3813a
              Binary files cannot be rendered.
    Pierre-Yves Chibon b3813a
              Please
    Pierre-Yves Chibon b3813a
              
    Johan Cwiklinski 740adc
                        repo=repo.name, identifier=branchname,
    Pierre-Yves Chibon b3813a
                        filename=filename) }}">view the raw version
    Pierre-Yves Chibon b3813a
              
    Pierre-Yves Chibon b3813a
            

    Johan Cwiklinski 740adc
        {% endif %}
    Johan Cwiklinski 7caba5
      
    Pierre-Yves Chibon 2088eb
      {% else %}
    Johan Cwiklinski b930cf
      <section class="tree_list"></section>
    Johan Cwiklinski b930cf
      

    Tree

    Pierre-Yves Chibon 2088eb
      
      Pierre-Yves Chibon 2088eb
          {% for entry in content %}
      Johan Cwiklinski b930cf
          
    • Pierre-Yves Chibon ea8735
            
      Mathieu Bridon 4c73b0
                      repo=repo.name, identifier=branchname,
      Pierre-Yves Chibon 217a39
                      filename=filename + '/' + entry.name if filename else entry.name) }}">
      Pierre-Yves Chibon 2088eb
              {{ entry.name }}
      Johan Cwiklinski b930cf
              
      Johan Cwiklinski b930cf
              {{ entry.hex|short }}
      Pierre-Yves Chibon 2088eb
          
      Pierre-Yves Chibon 2088eb
          {% endfor %}
      Pierre-Yves Chibon 2088eb
        
      Johan Cwiklinski b930cf
        
      Pierre-Yves Chibon 2088eb
        {% endif %}
      Pierre-Yves Chibon d72975
      {% else %}
      Pierre-Yves Chibon d72975
      No content found in this repository
      Pierre-Yves Chibon d72975
      {% endif %}
      Pierre-Yves Chibon 2088eb
      Pierre-Yves Chibon 2088eb
      {% endblock %}