loleaflet/dist/toolbar/toolbar.js |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 4b7904036ac2ef0251298f394715ad8bdacc6288
Author: Pranav Kant <pran...@collabora.co.uk>
Date:   Fri Mar 31 12:22:27 2017 +0530

    loleaflet: Annotate readonly users in userlist
    
    Change-Id: Ia000a06baf9f88830dd30c4c4a4297eb10192fd6

diff --git a/loleaflet/dist/toolbar/toolbar.js 
b/loleaflet/dist/toolbar/toolbar.js
index 6bbd3439..30cfd0fb 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1601,6 +1601,12 @@ map.on('addview', function(e) {
                username = _('You');
                color = '#000';
        }
+
+       // Mention readonly sessions in userlist
+       if (e.readonly) {
+               username += ' (' +  _('Readonly') + ')';
+       }
+
        var userlistItem = w2ui['toolbar-down'].get('userlist');
        var newhtml = $(userlistItem.html).find('#userlist_table 
tbody').append(getUserItem(e.viewId, username, 
color)).parent().parent()[0].outerHTML;
        userlistItem.html = newhtml;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to