# HG changeset patch # User souliane # Date 1395077407 -3600 # Node ID 35a43d0dc032866fb0e9840f4fa7c33a78cbf28f # Parent ee8ebfe23e16e8ee0497ed4a45f40f6ca7f2597b browser and server sides: display favicon diff -r ee8ebfe23e16 -r 35a43d0dc032 libervia_server/blog.py --- a/libervia_server/blog.py Mon Mar 17 16:33:05 2014 +0100 +++ b/libervia_server/blog.py Mon Mar 17 18:30:07 2014 +0100 @@ -35,11 +35,12 @@ ERROR_TEMPLATE = """ - + + MICROBLOG ERROR -

%s

+

%(message)s

""" @@ -52,13 +53,15 @@ def render_GET(self, request): if not request.postpath: - return MicroBlog.ERROR_TEMPLATE % "You must indicate a nickname" + return MicroBlog.ERROR_TEMPLATE % {'root': '', + 'message': "You must indicate a nickname"} else: prof_requested = request.postpath[0] #TODO: char check: only use alphanumerical chars + some extra(_,-,...) here prof_found = self.host.bridge.getProfileName(prof_requested) if not prof_found or prof_found == 'libervia': - return MicroBlog.ERROR_TEMPLATE % "Invalid nickname" + return MicroBlog.ERROR_TEMPLATE % {'root': '../' * len(request.postpath), + 'message': "Invalid nickname"} else: def got_jid(pub_jid_s): pub_jid = JID(pub_jid_s) @@ -124,6 +127,7 @@ + %(user)s's microblog @@ -197,5 +201,6 @@ request.finish() def render_error_blog(self, error, request, profile): - request.write(MicroBlog.ERROR_TEMPLATE % "Can't access requested data") + request.write(MicroBlog.ERROR_TEMPLATE % {'root': '../' * len(request.postpath), + 'message': "Can't access requested data"}) request.finish() diff -r ee8ebfe23e16 -r 35a43d0dc032 public/libervia.html --- a/public/libervia.html Mon Mar 17 16:33:05 2014 +0100 +++ b/public/libervia.html Mon Mar 17 18:30:07 2014 +0100 @@ -17,10 +17,11 @@ --> - + + Libervia diff -r ee8ebfe23e16 -r 35a43d0dc032 public/sat_logo_16.png Binary file public/sat_logo_16.png has changed