From 1177b475cfe4501819d87d67da36d2c8536676a5 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Sep 25 2019 10:43:35 +0000 Subject: UI: proper tag coloring --- diff --git a/pagure/static/tags.js b/pagure/static/tags.js new file mode 100644 index 0000000..b6bab2b --- /dev/null +++ b/pagure/static/tags.js @@ -0,0 +1,5 @@ +$(document).ready(function() { + $("[data-bg-color").each(function(ind, obj) { + $(obj).css('background-color', $(obj).attr('data-bg-color')); + }); +}); \ No newline at end of file diff --git a/pagure/templates/issue.html b/pagure/templates/issue.html index 788aaca..f1e57b1 100644 --- a/pagure/templates/issue.html +++ b/pagure/templates/issue.html @@ -656,6 +656,8 @@ namespace=repo.namespace, repo=repo.name, issueid=issueid) url_for('static', filename='vendor/jquery.caret/jquery.caret.min.js') }}?version={{ g.version}}"> + diff --git a/pagure/templates/issues.html b/pagure/templates/issues.html index bae0d99..2ab56eb 100644 --- a/pagure/templates/issues.html +++ b/pagure/templates/issues.html @@ -538,13 +538,10 @@ + + + +