mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* src/web/ejabberd_web_admin.erl: Added a favicon (EJAB-379).
SVN Revision: 985
This commit is contained in:
parent
7f66b3dfb3
commit
f6848603f9
@ -1,5 +1,7 @@
|
|||||||
2007-11-26 Badlop <badlop@process-one.net>
|
2007-11-26 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
|
* src/web/ejabberd_web_admin.erl: Added a favicon (EJAB-379).
|
||||||
|
|
||||||
* src/msgs/wa.msg: New Walon translation (thanks to
|
* src/msgs/wa.msg: New Walon translation (thanks to
|
||||||
Pablo Saratxaga) (EJAB-374).
|
Pablo Saratxaga) (EJAB-374).
|
||||||
|
|
||||||
|
@ -103,6 +103,9 @@ make_xhtml(Els, global, Lang) ->
|
|||||||
[?XCT("title", "ejabberd Web Interface"),
|
[?XCT("title", "ejabberd Web Interface"),
|
||||||
{xmlelement, "meta", [{"http-equiv", "Content-Type"},
|
{xmlelement, "meta", [{"http-equiv", "Content-Type"},
|
||||||
{"content", "text/html; charset=utf-8"}], []},
|
{"content", "text/html; charset=utf-8"}], []},
|
||||||
|
{xmlelement, "link", [{"href", "/admin/favicon.ico"},
|
||||||
|
{"type", "image/x-icon"},
|
||||||
|
{"rel", "shortcut icon"}], []},
|
||||||
{xmlelement, "link", [{"href", "/admin/style.css"},
|
{xmlelement, "link", [{"href", "/admin/style.css"},
|
||||||
{"type", "text/css"},
|
{"type", "text/css"},
|
||||||
{"rel", "stylesheet"}], []}]},
|
{"rel", "stylesheet"}], []}]},
|
||||||
@ -151,6 +154,9 @@ make_xhtml(Els, Host, Lang) ->
|
|||||||
[?XCT("title", "ejabberd Web Interface"),
|
[?XCT("title", "ejabberd Web Interface"),
|
||||||
{xmlelement, "meta", [{"http-equiv", "Content-Type"},
|
{xmlelement, "meta", [{"http-equiv", "Content-Type"},
|
||||||
{"content", "text/html; charset=utf-8"}], []},
|
{"content", "text/html; charset=utf-8"}], []},
|
||||||
|
{xmlelement, "link", [{"href", "/admin/favicon.ico"},
|
||||||
|
{"type", "image/x-icon"},
|
||||||
|
{"rel", "shortcut icon"}], []},
|
||||||
{xmlelement, "link", [{"href", Base ++ "style.css"},
|
{xmlelement, "link", [{"href", Base ++ "style.css"},
|
||||||
{"type", "text/css"},
|
{"type", "text/css"},
|
||||||
{"rel", "stylesheet"}], []}]},
|
{"rel", "stylesheet"}], []}]},
|
||||||
@ -542,6 +548,17 @@ h3 {
|
|||||||
|
|
||||||
".
|
".
|
||||||
|
|
||||||
|
favicon() ->
|
||||||
|
jlib:decode_base64(
|
||||||
|
"AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAAAA"
|
||||||
|
"AAAAAAAAAAAAAAAAAAAAAAAAJf+cAAIPsAAGC8gAVhecAAIr8ACiR7wBBmO"
|
||||||
|
"cAUKPsAFun8ABhqeoAgLryAJLB8ACz1PcAv9r7AMvi+gAAAAAAAgICARMhI"
|
||||||
|
"CAkJCQkQkFCQgICN2d2cSMgJCRevdvVQkICAlqYh5MgICQkXrRCQkJCMgI7"
|
||||||
|
"kiAjICAUFF2swkFBQRQUXazCQUFBAgI7kiAgICAkJF60QkJCQgICOpiHkyA"
|
||||||
|
"gJCRevdvlQkICAjdndnMgICQkJCRCQkJCAgICARAgICAAAAAAAAAAAAAAAA"
|
||||||
|
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
||||||
|
"AAAAAAAAAAA").
|
||||||
|
|
||||||
logo() ->
|
logo() ->
|
||||||
jlib:decode_base64(
|
jlib:decode_base64(
|
||||||
"iVBORw0KGgoAAAANSUhEUgAAAVcAAAA3CAMAAACPbPnEAAAAYFBMVEX///8C"
|
"iVBORw0KGgoAAAANSUhEUgAAAVcAAAA3CAMAAACPbPnEAAAAYFBMVEX///8C"
|
||||||
@ -616,6 +633,13 @@ process_admin(Host,
|
|||||||
lang = Lang} = Request) ->
|
lang = Lang} = Request) ->
|
||||||
{200, [{"Content-Type", "text/css"}], css(Host)};
|
{200, [{"Content-Type", "text/css"}], css(Host)};
|
||||||
|
|
||||||
|
process_admin(Host,
|
||||||
|
#request{us = US,
|
||||||
|
path = ["favicon.ico"],
|
||||||
|
q = Query,
|
||||||
|
lang = Lang} = Request) ->
|
||||||
|
{200, [{"Content-Type", "image/x-icon"}], favicon()};
|
||||||
|
|
||||||
process_admin(Host,
|
process_admin(Host,
|
||||||
#request{us = US,
|
#request{us = US,
|
||||||
path = ["logo.png"],
|
path = ["logo.png"],
|
||||||
|
Loading…
Reference in New Issue
Block a user