Mercurial > kallithea
changeset 6844:cb3bdf436473
changelog: don't render the checkbox-column at all if it isn't used
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 27 Aug 2017 16:39:35 +0200 |
parents | ff5caafa26dc |
children | 52adce4ffe89 |
files | kallithea/templates/changelog/changelog.html |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/changelog/changelog.html Mon Aug 28 05:25:40 2017 +0200 +++ b/kallithea/templates/changelog/changelog.html Sun Aug 27 16:39:35 2017 +0200 @@ -73,13 +73,11 @@ <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]: