Mercurial > libervia-web
comparison libervia.py @ 442:17259c2ff96f
browser_side: changes about the UI (remarks from Franck):
- select "Register" by default instead of "Login"
- make the "Register" and "Login" button more visible
- do not use the "New message" button, directly display an empty entry
- "New message" button would be bigger (if we use it again)
- remove the background from the microblog entry header
- "toggle syntax" button is displayed below the text area and with plain text (no icon)
- icons for entry action are displayed in this order: "reply", "edit", "delete"
- icon for replying is bigger than the others
- used a "smiley" from tango as default avatar
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 14 May 2014 12:24:38 +0200 |
parents | 88461e9c3e47 |
children |
comparison
equal
deleted
inserted
replaced
441:63017904c4d4 | 442:17259c2ff96f |
---|---|
265 # The jid is maybe not in our roster, we ask for the VCard | 265 # The jid is maybe not in our roster, we ask for the VCard |
266 self.bridge.call("getCard", None, jid_str) | 266 self.bridge.call("getCard", None, jid_str) |
267 | 267 |
268 if jid_str not in self.avatars_cache: | 268 if jid_str not in self.avatars_cache: |
269 self.bridge.call('getEntityData', (dataReceived, avatarError), jid_str, ['avatar']) | 269 self.bridge.call('getEntityData', (dataReceived, avatarError), jid_str, ['avatar']) |
270 self.avatars_cache[jid_str] = "/media/misc/empty_avatar" | 270 self.avatars_cache[jid_str] = "/media/icons/tango/emotes/64/face-plain.png" |
271 return self.avatars_cache[jid_str] | 271 return self.avatars_cache[jid_str] |
272 | 272 |
273 def registerWidget(self, wid): | 273 def registerWidget(self, wid): |
274 log.debug("Registering %s" % wid.getDebugName()) | 274 log.debug("Registering %s" % wid.getDebugName()) |
275 self.libervia_widgets.add(wid) | 275 self.libervia_widgets.add(wid) |