diff --git a/pylons_app/controllers/repos.py b/pylons_app/controllers/repos.py --- a/pylons_app/controllers/repos.py +++ b/pylons_app/controllers/repos.py @@ -88,7 +88,9 @@ class ReposController(BaseController): def show(self, id, format='html'): """GET /repos/id: Show a specific item""" # url('repo', id=ID) - return render('/repos_show.html') + def edit(self, id, format='html'): """GET /repos/id/edit: Form to edit an existing item""" # url('edit_repo', id=ID) + c.new_repo = id + return render('admin/repos/repo_edit.html') diff --git a/pylons_app/templates/admin/repos/repo_edit.html b/pylons_app/templates/admin/repos/repo_edit.html --- a/pylons_app/templates/admin/repos/repo_edit.html +++ b/pylons_app/templates/admin/repos/repo_edit.html @@ -15,7 +15,7 @@ <%def name="main()">

${_('Repositories')} - ${_('edit')}

- ${h.form(url('repos'))} + ${h.form(url('repo', id=ID),method='put'))} @@ -31,7 +31,7 @@ - +
${_('Name')}
${h.submit('add','add')}${h.submit('update','update')}
diff --git a/pylons_app/templates/admin/repos/repos.html b/pylons_app/templates/admin/repos/repos.html --- a/pylons_app/templates/admin/repos/repos.html +++ b/pylons_app/templates/admin/repos/repos.html @@ -23,7 +23,7 @@ %for cnt,repo in enumerate(c.repos_list): - ${h.link_to(repo['name'],h.url('summary_home',repo_name=repo['name']))} + ${h.link_to(repo['name'],h.url('edit_repo',id=repo['name']))} r${repo['rev']}:${repo['tip']} ${h.form(url('repo', id=repo['name']),method='delete')}