├── .gitignore ├── django_vcs ├── __init__.py ├── templatetags │ ├── __init__.py │ ├── udiff.py │ └── highlight.py ├── templates │ └── django_vcs │ │ ├── base.html │ │ ├── file_contents.html │ │ ├── folder_contents.html │ │ ├── repo_list.html │ │ ├── recent_commits.html │ │ ├── commit_detail.html │ │ ├── udiff.html │ │ └── diff_css.html ├── admin.py ├── urls.py ├── models.py ├── views.py └── diff.py ├── MANIFEST.in ├── README.txt ├── setup.py └── LICENSE.txt /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | -------------------------------------------------------------------------------- /django_vcs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /django_vcs/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSE.txt 2 | include README.txt 3 | recursive-include django_vcs/templates/django_vcs * 4 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | django-vcs 2 | ========== 3 | 4 | Requirements:: 5 | 6 | * pyvcs (Plus any backend specific dependencies, see the pyvcs README for more information) 7 | * pygments 8 | -------------------------------------------------------------------------------- /django_vcs/templates/django_vcs/base.html: -------------------------------------------------------------------------------- 1 | 2 |
3 || Name | 9 |VCS | 10 |Last Commit Date | 11 |Last Commit Message | 12 |
|---|---|---|---|
| 16 | {{ repo.name }} 17 | | 18 |{{ repo.get_repository_type_display }} | 19 | {% with repo.get_recent_commits.0 as commit %} 20 |{{ commit.time }} | 21 |{{ commit.message }} | 22 | {% endwith %} 23 |
| 15 | 16 | {{ commit.commit_id }} 17 | 18 | | 19 |20 | {{ commit.author }} 21 | | 22 |23 | {{ commit.message }} 24 | | 25 |26 | {{ commit.item }} 27 | | 28 |
18 | {{ diff.lines|join:"\n" }}
19 |
20 | {% else %}
21 |
43 | | … | 48 | 49 | {% endif %} 50 | {% for line in chunk %} 51 |||
|---|---|---|
| {{ line.old_lineno }} | 53 |{{ line.new_lineno }} | 54 |{{ line.line|safe }} | 55 |