Changeset - cb3bdf436473
[Not reviewed]
default
0 1 0
Mads Kiilerich - 8 years ago 2017-08-27 16:39:35
mads@kiilerich.com
changelog: don't render the checkbox-column at all if it isn't used
1 file changed with 3 insertions and 5 deletions:
0 comments (0 inline, 0 general)
kallithea/templates/changelog/changelog.html
Show inline comments
 
@@ -73,13 +73,11 @@ ${self.repo_context_bar('changelog', c.f
 
                <tbody>
 
                %for cnt,cs in enumerate(c.cs_pagination):
 
                    <tr id="chg_${cnt+1}" class="${'mergerow' if len(cs.parents) > 1 else ''}">
 
                        %if not c.changelog_for_path:
 
                        <td class="checkbox-column">
 
                            %if c.changelog_for_path:
 
                                ${h.checkbox(cs.raw_id,class_="changeset_range", disabled="disabled")}
 
                            %else:
 
                                ${h.checkbox(cs.raw_id,class_="changeset_range")}
 
                            %endif
 
                            ${h.checkbox(cs.raw_id,class_="changeset_range")}
 
                        </td>
 
                        %endif
 
                        <td class="status">
 
                          %if c.cs_statuses.get(cs.raw_id):
 
                            %if c.cs_statuses.get(cs.raw_id)[2]:
0 comments (0 inline, 0 general)