From a40ba92d54ec6a407b2a65224b246737f788b659 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Sep 06 2018 02:34:45 +0000 Subject: fix commit flags showing on the commits tab This makes the commit flags show on the commit tab again, which was broken after the update to the new UI. This basically just fixes the issue, but this could def be make to look a little better with icons and stuff, but as the colours for these statuses are in the config file, decided to leave this for a later time. Fixes: #3600 --- diff --git a/pagure/templates/commits.html b/pagure/templates/commits.html index 9563a2d..f92e8fc 100644 --- a/pagure/templates/commits.html +++ b/pagure/templates/commits.html @@ -185,7 +185,7 @@ username=username, namespace=repo.namespace, commitid=commit.hex, branch=branchname) }}" - class="btn btn-outline-primary font-weight-bold"> + class="btn btn-outline-primary font-weight-bold commithash" id="c_{{ commit.hex }}"> {{ commit.hex|short }} ' + html += '" class="btn ' + statusesLabels[s].replace('badge', 'btn-outline') + '">' html += statuses[s].length + '\n' } - html += '\n' $(html).insertBefore(item) } });