comparison rhodecode/controllers/pullrequests.py @ 3604:ceb6d57d1998 beta

pullrequests: just show first line of description as hint
author Mads Kiilerich <madski@unity3d.com>
date Tue, 26 Mar 2013 23:14:44 +0100
parents 7d774f09dba5
children 10b4e34841a4
comparison
equal deleted inserted replaced
3603:eacd33e0c5b3 3604:ceb6d57d1998
179 'user': dict(user_id=repo.user.user_id, 179 'user': dict(user_id=repo.user.user_id,
180 username=repo.user.username, 180 username=repo.user.username,
181 firstname=repo.user.firstname, 181 firstname=repo.user.firstname,
182 lastname=repo.user.lastname, 182 lastname=repo.user.lastname,
183 gravatar_link=h.gravatar_url(repo.user.email, 14)), 183 gravatar_link=h.gravatar_url(repo.user.email, 14)),
184 'description': repo.description, 184 'description': repo.description.split('\n', 1)[0],
185 'revs': h.select('other_ref', selected_other_ref, other_refs, class_='refs') 185 'revs': h.select('other_ref', selected_other_ref, other_refs, class_='refs')
186 } 186 }
187 187
188 # add org repo to other so we can open pull request against peer branches on itself 188 # add org repo to other so we can open pull request against peer branches on itself
189 add_other_repo(org_repo, branch_rev=org_rev) 189 add_other_repo(org_repo, branch_rev=org_rev)