Blame progit/templates/repo_info.html

Pierre-Yves Chibon 11e38e
{% extends "repo_master.html" %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 1a7791
{% block title %}{{ select.capitalize() }} - {{ repo.name }}{% endblock %}
Pierre-Yves Chibon 2088eb
{%block tag %}home{% endblock %}
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 2088eb
Pierre-Yves Chibon 11e38e
{% block repo %}
Pierre-Yves Chibon 0182e8
Pierre-Yves Chibon a6f71e
{% if repo_obj and repo_obj.is_empty %}
Pierre-Yves Chibon dfb1f6
Pierre-Yves Chibon a6f71e
  <section class="repo_info"></section>
Pierre-Yves Chibon a6f71e
    

This repo is brand new!

Pierre-Yves Chibon 217a39
Pierre-Yves Chibon a6f71e
    

If you already have a git repo:

Pierre-Yves Chibon a6f71e
    
Pierre-Yves Chibon 50105a
      git remote add origin {{ config.get('GIT_URL_SSH') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
Pierre-Yves Chibon a6f71e
      git push -u origin master
Pierre-Yves Chibon a6f71e
    
Pierre-Yves Chibon dfb1f6
Johan Cwiklinski d59e7b
    

If you have not createt your git repo yet:

Pierre-Yves Chibon a6f71e
    
Pierre-Yves Chibon 50105a
      git clone {{ config.get('GIT_URL_SSH') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
Pierre-Yves Chibon c6b613
      cd {{ repo.name }}
Pierre-Yves Chibon a6f71e
      touch README.rst
Pierre-Yves Chibon a6f71e
      git add README.rst
Pierre-Yves Chibon a6f71e
      git commit -m "Add README file"
Pierre-Yves Chibon a6f71e
      git push -u origin master
Pierre-Yves Chibon a6f71e
    
Pierre-Yves Chibon a6f71e
Pierre-Yves Chibon a6f71e
    
Pierre-Yves Chibon a6f71e
Pierre-Yves Chibon a6f71e
{% else %}
Pierre-Yves Chibon a6f71e
  <section class="branch_list"></section>
Pierre-Yves Chibon a6f71e
    

Branches

Pierre-Yves Chibon a6f71e
    
    Pierre-Yves Chibon a6f71e
          {% for branch in branches %}
    Pierre-Yves Chibon a6f71e
          
  • Pierre-Yves Chibon a6f71e
            
    Pierre-Yves Chibon ea8735
                        username=username, repo=repo.name, branchname=branch) }}">
    Pierre-Yves Chibon a6f71e
              {{ branch }}
    Pierre-Yves Chibon a6f71e
            
    Pierre-Yves Chibon ea8735
            (
    Pierre-Yves Chibon ea8735
                       repo=repo.name, branchname=branch) }}">logs)
    Pierre-Yves Chibon a6f71e
    Pierre-Yves Chibon a6f71e
          
    Pierre-Yves Chibon a6f71e
          {% endfor %}
    Pierre-Yves Chibon a6f71e
        
    Pierre-Yves Chibon a6f71e
      
    Pierre-Yves Chibon a6f71e
    Pierre-Yves Chibon a6f71e
      {% if total_page %}
    Pierre-Yves Chibon a6f71e
      
    Pierre-Yves Chibon a6f71e
        
    Pierre-Yves Chibon a6f71e
          
    Pierre-Yves Chibon a6f71e
          {% if page > 1%}
    Pierre-Yves Chibon b6a6ab
              
    Pierre-Yves Chibon b6a6ab
                        repo=repo.name) }}?page={{page - 1}}">
    Pierre-Yves Chibon 2088eb
                < Previous
    Pierre-Yves Chibon a6f71e
            
    Pierre-Yves Chibon a6f71e
          {% else %}
    Pierre-Yves Chibon a6f71e
              < Previous
    Pierre-Yves Chibon a6f71e
          {% endif %}
    Pierre-Yves Chibon a6f71e
          
    Pierre-Yves Chibon a6f71e
          {{ page }} / {{ total_page }}
    Pierre-Yves Chibon a6f71e
          
    Pierre-Yves Chibon a6f71e
            {% if page < total_page %}
    Pierre-Yves Chibon b6a6ab
            
    Pierre-Yves Chibon b6a6ab
                        repo=repo.name) }}?page={{page + 1}}">
    Pierre-Yves Chibon a6f71e
                Next >
    Pierre-Yves Chibon a6f71e
            
    Pierre-Yves Chibon a6f71e
            {% else %}
    Pierre-Yves Chibon a6f71e
            Next >
    Pierre-Yves Chibon 2088eb
            {% endif %}
    Pierre-Yves Chibon a6f71e
          
    Pierre-Yves Chibon 2088eb
        
    Pierre-Yves Chibon a6f71e
      
    Pierre-Yves Chibon dfb1f6
      {% endif %}
    Pierre-Yves Chibon a6f71e
    Pierre-Yves Chibon 168d31
      {% if tree %}
    Pierre-Yves Chibon 168d31
        <section class="tree_list"></section>
    Pierre-Yves Chibon 168d31
          

    Current tree

    Pierre-Yves Chibon 168d31
          
      Pierre-Yves Chibon 168d31
              {% for entry in tree %}
      Johan Cwiklinski b930cf
              
    • Pierre-Yves Chibon ea8735
                  
      Pierre-Yves Chibon 168d31
                            repo=repo.name, identifier=branchname, filename=entry.name) }}">
      Johan Cwiklinski ca1719
                      {{ entry.name }}
      Johan Cwiklinski ca1719
                      {{ entry.hex|short }}
      Pierre-Yves Chibon ea8735
                  
      Pierre-Yves Chibon 168d31
              
      Pierre-Yves Chibon 168d31
              {% endfor %}
      Pierre-Yves Chibon 168d31
            
      Pierre-Yves Chibon 168d31
          
      Pierre-Yves Chibon 168d31
        {% endif %}
      Pierre-Yves Chibon 168d31
      Pierre-Yves Chibon a6f71e
        <section class="commit_list"></section>
      Pierre-Yves Chibon 59cdee
          {% if origin == 'view_log' or origin == 'view_fork_log' %}
      Pierre-Yves Chibon a6f71e
          

      Commits list

      Pierre-Yves Chibon 59cdee
          {% else %}
      Pierre-Yves Chibon 59cdee
          

      Last 10 commits

      Pierre-Yves Chibon a6f71e
          {% endif %}
      Pierre-Yves Chibon df2ed9
          {% if diff_commits and authenticated %}
      Pierre-Yves Chibon db3744
          
      Pierre-Yves Chibon 9ec03d
              {% if branchname %}
      Pierre-Yves Chibon f3bc46
              
      Pierre-Yves Chibon 9ec03d
                          username=username, repo=repo.name,
      Pierre-Yves Chibon e4514f
                          from_branch=branchname) }}">Request pull
      Pierre-Yves Chibon 9ec03d
              {% else %}
      Pierre-Yves Chibon 9ec03d
                  
      Pierre-Yves Chibon db3744
                          username=username, repo=repo.name) }}">Request pull
      Pierre-Yves Chibon 9ec03d
              {% endif %}
      Pierre-Yves Chibon db3744
          
      Pierre-Yves Chibon db3744
          {% endif %}
      Pierre-Yves Chibon a6f71e
          
        Pierre-Yves Chibon a6f71e
              {% for commit in last_commits %}
        Pierre-Yves Chibon a6f71e
              
      • Pierre-Yves Chibon ea8735
                
        Pierre-Yves Chibon ea8735
                        repo=repo.name, commitid=commit.hex) }}">
        Johan Cwiklinski 4cf67b
                    {{ commit.hex|short }}
        Pierre-Yves Chibon 6c1ae5
                    {% if diff_commits and commit.oid.hex in diff_commits %}
        Pierre-Yves Chibon 6c1ae5
                    *
        Pierre-Yves Chibon 6c1ae5
                    {% endif %}
        Johan Cwiklinski 4cf67b
                    {{ commit.message.split('\n')[0] }}
        Pierre-Yves Chibon dfb1f6
                
        Pierre-Yves Chibon dfb1f6
              
        Pierre-Yves Chibon dfb1f6
              {% endfor %}
        Pierre-Yves Chibon dfb1f6
            
        Pierre-Yves Chibon dfb1f6
          
        Pierre-Yves Chibon a6f71e
        Pierre-Yves Chibon cc7f0a
          {% if readme %}
        Pierre-Yves Chibon 168d31
          <section class="readme"></section>
        Pierre-Yves Chibon 168d31
            {{ readme }}
        Pierre-Yves Chibon 168d31
          
        Pierre-Yves Chibon cc7f0a
          {% endif %}
        Pierre-Yves Chibon a6f71e
        Pierre-Yves Chibon e9ba09
          <section class="git_links"></section>
        Pierre-Yves Chibon b77fa1
            
        Pierre-Yves Chibon b77fa1
              
        Pierre-Yves Chibon 21b65f
                Git URLs
        Pierre-Yves Chibon 21b65f
                
        Pierre-Yves Chibon 21b65f
                
        Pierre-Yves Chibon bb19cb
                
        Pierre-Yves Chibon 21b65f
              
        Pierre-Yves Chibon 21b65f
              
        Pierre-Yves Chibon b77fa1
                Project
        Pierre-Yves Chibon b77fa1
                :
        Pierre-Yves Chibon b77fa1
                
        Pierre-Yves Chibon bb19cb
                  {{ config.get('GIT_URL_SSH') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
        Pierre-Yves Chibon bb19cb
                
        Pierre-Yves Chibon bb19cb
                
        Pierre-Yves Chibon 07c081
                  {{ config.get('GIT_URL_GIT') }}/{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
        Pierre-Yves Chibon b77fa1
                
        Pierre-Yves Chibon b77fa1
              
        Pierre-Yves Chibon b77fa1
              
        Pierre-Yves Chibon b77fa1
                Docs
        Pierre-Yves Chibon b77fa1
                :
        Pierre-Yves Chibon b77fa1
                
        Pierre-Yves Chibon bb19cb
                  {{ config.get('GIT_URL_SSH') }}:docs/{{ repo.fullname }}.git
        Pierre-Yves Chibon bb19cb
                
        Pierre-Yves Chibon bb19cb
                
        Pierre-Yves Chibon 07c081
                  {{ config.get('GIT_URL_GIT') }}/docs/{{ repo.fullname }}.git
        Pierre-Yves Chibon b77fa1
                
        Pierre-Yves Chibon b77fa1
              
        Pierre-Yves Chibon b77fa1
              
        Pierre-Yves Chibon b77fa1
                Tickets
        Pierre-Yves Chibon b77fa1
                :
        Pierre-Yves Chibon b77fa1
                
        Pierre-Yves Chibon bb19cb
                  {{ config.get('GIT_URL_SSH') }}:ticket/{{ repo.fullname }}.git
        Pierre-Yves Chibon bb19cb
                
        Pierre-Yves Chibon bb19cb
                
        Pierre-Yves Chibon 07c081
                  {{ config.get('GIT_URL_GIT') }}/tickets/{{ repo.fullname }}.git
        Pierre-Yves Chibon b77fa1
                
        Pierre-Yves Chibon b77fa1
              
        Pierre-Yves Chibon b77fa1
            
        Pierre-Yves Chibon e9ba09
          
        Pierre-Yves Chibon dfb1f6
        {% endif %}
        Pierre-Yves Chibon 2088eb
        Pierre-Yves Chibon 2088eb
        {% endblock %}