Blame progit/templates/commit.html

Pierre-Yves Chibon b0efd3
{% extends "repo_master.html" %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 1a7791
{% block title %}Commit - {{ repo.name }} - {{ commitid }}{% endblock %}
Johan Cwiklinski 002118
{%block tag %}commit{% endblock %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon b0efd3
{% block repo %}
Pierre-Yves Chibon 2088eb
Johan Cwiklinski 002118
{% set splitted_message = commit.message.split('\n') %}
Johan Cwiklinski 002118
Pierre-Yves Chibon b0efd3

Johan Cwiklinski 002118
    {{ splitted_message[0] }}
Johan Cwiklinski 002118
    (commit: {{ commitid|short }}
Johan Cwiklinski 002118
     - 
Johan Cwiklinski 002118
        repo=repo.name, identifier=commitid) }}">tree)
Johan Cwiklinski 002118
    {% if splitted_message|length > 1 %}
Johan Cwiklinski 002118
    
Johan Cwiklinski 002118
        {% for message in splitted_message %}
Johan Cwiklinski 002118
            {% if loop.index > 1 %}
Johan Cwiklinski 002118
                {{ message }}
Johan Cwiklinski 002118
            {% endif %}
Johan Cwiklinski 002118
        {% endfor %}
Johan Cwiklinski 002118
    
Johan Cwiklinski 002118
    {% endif %}
Pierre-Yves Chibon b0efd3
Pierre-Yves Chibon 480038
Johan Cwiklinski 002118
    Johan Cwiklinski 002118
        
  • Johan Cwiklinski 002118
                repo=repo.name, identifier=commitid) }}" title="View as raw">Raw
    Johan Cwiklinski 002118
        
  • Johan Cwiklinski 002118
            
    Johan Cwiklinski 002118
                repo=repo.name, commitid=commitid) }}">Patch
    Johan Cwiklinski 002118
        
    Johan Cwiklinski 002118
    Johan Cwiklinski 002118
    Johan Cwiklinski 002118
    Pierre-Yves Chibon 480038
    Pierre-Yves Chibon 480038
      
    Johan Cwiklinski 002118
        Author
    Pierre-Yves Chibon 480038
        
    Pierre-Yves Chibon 480038
          {{ commit.author.name }} {{ '<' + commit.author.email + '>' }}
    Pierre-Yves Chibon 33db9f
          - {{ commit.commit_time | format_ts}}
    Pierre-Yves Chibon 480038
        
    Pierre-Yves Chibon 480038
      
    Pierre-Yves Chibon 480038
      
    Johan Cwiklinski 002118
        Committer
    Pierre-Yves Chibon 480038
        
    Pierre-Yves Chibon 480038
          {{ commit.committer.name }} {{ '<' + commit.committer.email + '>' }}
    Pierre-Yves Chibon 33db9f
          - {{ commit.commit_time | format_ts }}
    Pierre-Yves Chibon 480038
        
    Pierre-Yves Chibon 480038
      
    Pierre-Yves Chibon 480038
      
    Johan Cwiklinski 002118
        Parent
    Pierre-Yves Chibon 480038
        
    Pierre-Yves Chibon 480038
          {% for parent in commit.parents %}
    Pierre-Yves Chibon ea8735
            
    Mathieu Bridon eaccc4
                      repo=repo.name, commitid=parent.oid.hex) }}">
    Pierre-Yves Chibon ea8735
              {{ parent.oid.hex }}
    Pierre-Yves Chibon ea8735
             
    Pierre-Yves Chibon 480038
          {% endfor %}
    Pierre-Yves Chibon 480038
        
    Pierre-Yves Chibon 480038
      
    Johan Cwiklinski 002118
      
    Johan Cwiklinski 002118
          Changes
    Johan Cwiklinski 002118
          
    Johan Cwiklinski 002118
            
      Johan Cwiklinski 002118
              {% for patch in diff %}
      Johan Cwiklinski 002118
                
    • Johan Cwiklinski 002118
                  
      Pierre-Yves Chibon d44f5b
                    {% if not patch.is_binary and (patch.additions + patch.deletions) > 0%}
      Johan Cwiklinski 002118
                    
      Johan Cwiklinski 002118
                          {% if patch.additions > 0 %}+{{ patch.additions }}{% endif %}
      Johan Cwiklinski 002118
                          {% if patch.deletions > 0 %}-{{ patch.deletions }}{% endif %}
      Johan Cwiklinski 002118
                    
      Johan Cwiklinski 41a0c2
                    {% endif %}
      Johan Cwiklinski 002118
                  
      Johan Cwiklinski 002118
                  {{ patch.new_file_path }}
      Johan Cwiklinski 002118
                
      Johan Cwiklinski 002118
              {% endfor %}
      Johan Cwiklinski 002118
              
      Johan Cwiklinski 002118
            
      Johan Cwiklinski 002118
        
      Pierre-Yves Chibon 480038
      Pierre-Yves Chibon 480038
      Johan Cwiklinski 002118
      {% for patch in diff %}
      Pierre-Yves Chibon 2088eb
      <section class="commit_diff"></section>
      Johan Cwiklinski 002118
          <header></header>
      Johan Cwiklinski 002118
              

      {{ patch.new_file_path }}

      Johan Cwiklinski 002118
              
        Johan Cwiklinski 002118
                    
      • Pierre-Yves Chibon d44f5b
                    {% if not patch.is_binary and (patch.additions + patch.deletions) > 0%}
        Johan Cwiklinski 002118
                    
        Pierre-Yves Chibon d44f5b
                        {% if patch.additions > 0 %}+{{ patch.additions }}{% endif %}
        Pierre-Yves Chibon d44f5b
                        {% if patch.deletions > 0 %}-{{ patch.deletions }}{% endif %}
        Pierre-Yves Chibon d44f5b
                    
        Johan Cwiklinski 41a0c2
                    {% endif %}
        Johan Cwiklinski 002118
                    
        Johan Cwiklinski 002118
                    
      • Johan Cwiklinski 002118
                        
        Johan Cwiklinski 002118
                            repo=repo.name, identifier=commitid,
        Johan Cwiklinski 002118
                            filename=patch.new_file_path) }}" title="View file as of {{ commitid|short }}">View
        Johan Cwiklinski 002118
                    
        Johan Cwiklinski 002118
                
        Johan Cwiklinski 002118
            
        Johan Cwiklinski 002118
        Johan Cwiklinski 002118
            {% if patch.is_binary %}
        Johan Cwiklinski 002118
                

        Binary diffs cannot be rendered.

        Johan Cwiklinski 002118
            {% else %}
        Johan Cwiklinski 002118
                {% autoescape false %}
        Johan Cwiklinski 002118
                {{ patch|patch_to_diff|html_diff}}
        Johan Cwiklinski 002118
                {% endautoescape %}
        Johan Cwiklinski 002118
            {% endif %}
        Pierre-Yves Chibon 2088eb
        Pierre-Yves Chibon 2088eb
        Johan Cwiklinski 002118
        {% endfor %}
        Johan Cwiklinski 002118
        Pierre-Yves Chibon 2088eb
        {% endblock %}