Commit a322a0b8d73d7f950c1de3d9f18d4d5b51b17860
1 parent
6f1a155f
Exists in
master
and in
3 other branches
Added feed_repository to receive a dinamic url
Signed-off-by: Macartur Sousa <macartur.sc@gmail.com>
Showing
2 changed files
with
10 additions
and
2 deletions
Show diff stats
colab_spb/templates/feed_repository.html
colab_spb/views.py
| ... | ... | @@ -44,7 +44,15 @@ def get_list(request): |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | def feed_repository(request): |
| 47 | - group = request.GET.get('list_name',None) | |
| 47 | + group = request.GET.get('group',"") | |
| 48 | + project = request.GET.get('project',"") | |
| 49 | + | |
| 48 | 50 | context = {} |
| 51 | + context['url']= '/gitlab' | |
| 52 | + | |
| 53 | + if group : | |
| 54 | + context['url'] += "/"+group | |
| 55 | + if project : | |
| 56 | + context['url'] += "/"+project | |
| 49 | 57 | |
| 50 | 58 | return render(request,"feed_repository.html",context) | ... | ... |