##// END OF EJS Templates
diffs: fixed outdated files in pull-requests re-using the filediff raw_id for anchor generation....
marcink -
r3830:5bbd362b stable
parent child Browse files
Show More
@@ -290,10 +290,12 b' collapse_all = len(diffset.files) > coll'
290 290 open_comments_in_file = [x for x in comments_dict['comments'] if x.outdated is False]
291 291 if open_comments_in_file:
292 292 display_state = ''
293 fid = str(id(filename))
293 294 %>
294 295 <div class="filediffs filediff-outdated" style="${display_state}">
295 296 <input ${(collapse_all and 'checked' or '')} class="filediff-collapse-state" id="filediff-collapse-${id(filename)}" type="checkbox" onchange="updateSticky();">
296 <div class="filediff" data-f-path="${filename}" id="a_${h.FID(filediff.raw_id, filename)}">
297 <div class="filediff" data-f-path="${filename}" id="a_${h.FID(fid, filename)}">
298
297 299 <label for="filediff-collapse-${id(filename)}" class="filediff-heading">
298 300 <div class="filediff-collapse-indicator"></div>
299 301 <span class="pill">
@@ -304,7 +306,7 b' collapse_all = len(diffset.files) > coll'
304 306 ## file op, doesn't need translation
305 307 <span class="pill" op="removed">removed in this version</span>
306 308 </span>
307 <a class="pill filediff-anchor" href="#a_${h.FID(filediff.raw_id, filename)}"></a>
309 <a class="pill filediff-anchor" href="#a_${h.FID(fid, filename)}"></a>
308 310 <span class="pill-group" style="float: right">
309 311 <span class="pill" op="deleted">-${comments_dict['stats']}</span>
310 312 </span>
General Comments 0
You need to be logged in to leave comments. Login now