Ejemplo n.º 1
0
def graph_commit(request, project_id, commit1, commit2 = None, type = None):
	pool = GoProjectSCMPool(settings.GOLANG_REPOS)
	com = pool.fetch_commit(project_id, commit1, commit2)
	com.reverse()
	return HttpResponse(makeSVG(pool.get_project(project_id).full_name, com, type), content_type='image/svg+xml')
Ejemplo n.º 2
0
def project(request, project_id):
	pool = GoProjectSCMPool(settings.GOLANG_REPOS)
	project = pool.get_project(project_id)
	if project.update_date:
		project.update_date = project.update_date.strftime('%F %T %z')
	return render(request, 'goview/project.html', {'project': project})