##// END OF EJS Templates
compare: drop target_repo - it is always other_repo
Mads Kiilerich -
r3324:c9b85375 beta
parent child Browse files
Show More
@@ -131,7 +131,6 class CompareController(BaseRepoControll
131
131
132 c.statuses = c.rhodecode_db_repo.statuses([x.raw_id for x in
132 c.statuses = c.rhodecode_db_repo.statuses([x.raw_id for x in
133 c.cs_ranges])
133 c.cs_ranges])
134 c.target_repo = c.other_repo.repo_name
135 # defines that we need hidden inputs with changesets
134 # defines that we need hidden inputs with changesets
136 c.as_form = request.GET.get('as_form', False)
135 c.as_form = request.GET.get('as_form', False)
137 if partial:
136 if partial:
@@ -299,7 +299,6 class PullrequestsController(BaseRepoCon
299 else EmptyChangeset(), 'raw_id'))
299 else EmptyChangeset(), 'raw_id'))
300
300
301 c.statuses = org_repo.statuses([x.raw_id for x in c.cs_ranges])
301 c.statuses = org_repo.statuses([x.raw_id for x in c.cs_ranges])
302 c.target_repo = other_repo.repo_name
303 # defines that we need hidden inputs with changesets
302 # defines that we need hidden inputs with changesets
304 c.as_form = request.GET.get('as_form', False)
303 c.as_form = request.GET.get('as_form', False)
305
304
@@ -12,7 +12,7
12 <div title="${c.statuses[cs.raw_id][1]}" class="changeset-status-ico"><img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses[cs.raw_id][0])}" /></div>
12 <div title="${c.statuses[cs.raw_id][1]}" class="changeset-status-ico"><img src="${h.url('/images/icons/flag_status_%s.png' % c.statuses[cs.raw_id][0])}" /></div>
13 %endif
13 %endif
14 </td>
14 </td>
15 <td>${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.target_repo,revision=cs.raw_id))}
15 <td>${h.link_to('r%s:%s' % (cs.revision,h.short_id(cs.raw_id)),h.url('changeset_home',repo_name=c.other_repo.repo_name,revision=cs.raw_id))}
16 %if c.as_form:
16 %if c.as_form:
17 ${h.hidden('revisions',cs.raw_id)}
17 ${h.hidden('revisions',cs.raw_id)}
18 %endif
18 %endif
General Comments 0
You need to be logged in to leave comments. Login now