summaryrefslogtreecommitdiffstats
path: root/welco/static
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2016-09-27 14:26:40 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2016-09-27 16:02:13 (GMT)
commitcb64fdd2ba11b6ddbc14d3d752a33ec4be562abe (patch)
tree0cd29bdc05335dfe35e8305746c0ca995d1d3d6e /welco/static
parenta09b17739bb8cb6890ae81a7d961a7cc9979ec04 (diff)
downloadwelco-cb64fdd2ba11b6ddbc14d3d752a33ec4be562abe.zip
welco-cb64fdd2ba11b6ddbc14d3d752a33ec4be562abe.tar.gz
welco-cb64fdd2ba11b6ddbc14d3d752a33ec4be562abe.tar.bz2
contacts: display user roles in contact zone (#12630)
Diffstat (limited to 'welco/static')
-rw-r--r--welco/static/css/style.css5
-rw-r--r--welco/static/js/welco.js3
2 files changed, 8 insertions, 0 deletions
diff --git a/welco/static/css/style.css b/welco/static/css/style.css
index c618d6c..0647e7f 100644
--- a/welco/static/css/style.css
+++ b/welco/static/css/style.css
@@ -251,6 +251,11 @@ ul.formdatas a.remove {
color: #3c3c33;
}
+ul.result li a span.roles {
+ display: block;
+ color: #333;
+}
+
ul.result li a span.more {
display: block;
color: #666;
diff --git a/welco/static/js/welco.js b/welco/static/js/welco.js
index 32cd7ce..fb2f806 100644
--- a/welco/static/js/welco.js
+++ b/welco/static/js/welco.js
@@ -295,6 +295,9 @@ $(function() {
search_result_ul.empty();
$(response.data).each(function(idx, elem) {
var new_elem = '<li><a href="#" data-page-slug="' + elem.slug + '">' + elem.title;
+ if (elem.roles) {
+ new_elem = new_elem + ' <span class="roles">' + elem.roles + '</span>';
+ }
if (elem.more) {
new_elem = new_elem + ' <span class="more">' + elem.more + '</span>';
}