changeset 6627:a166954bf84c

pullrequests: improve alignment of graph for available changesets - make sure first td never is empty
author Mads Kiilerich <mads@kiilerich.com>
date Sat, 13 May 2017 02:29:22 +0200
parents 5258b66bf5d7
children fa5788feed0f
files kallithea/templates/pullrequests/pullrequest_show.html
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest_show.html	Sat May 13 02:29:13 2017 +0200
+++ b/kallithea/templates/pullrequests/pullrequest_show.html	Sat May 13 02:29:22 2017 +0200
@@ -160,18 +160,18 @@
                   %for cnt, cs in enumerate(c.avail_cs):
                     <tr id="chg_available_${cnt+1}" class="${'mergerow' if len(cs.parents) > 1 and not (editable and cs.revision in c.avail_revs) else ''}">
                       %if c.cs_ranges and cs.revision == c.cs_ranges[-1].revision:
+                        %if editable:
                         <td>
-                          %if editable:
                             ${h.radio(name='updaterev', value='', checked=True)}
-                          %endif
                         </td>
+                        %endif
                         <td colspan="4"><span>${_("Current revision - no change")}</span></td>
                       %else:
+                        %if editable:
                         <td>
-                          %if editable and cs.revision in c.avail_revs:
-                            ${h.radio(name='updaterev', value=cs.raw_id)}
-                          %endif
+                          ${h.radio(name='updaterev', value=cs.raw_id, style=None if cs.revision in c.avail_revs else 'visibility: hidden')}
                         </td>
+                        %endif
                         <td style="width: 120px"><span data-toggle="tooltip" title="${h.age(cs.date)}">${cs.date}</span></td>
                         <td>${h.link_to(h.show_id(cs),h.url('changeset_home',repo_name=c.cs_repo.repo_name,revision=cs.raw_id), class_='changeset_hash')}</td>
                         <td>