Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
change logo
Copyright: Matti DH
Attribution-ShareAlike license: http://creativecommons.org/licenses/by-sa/4.0/
  • Loading branch information
perexg committed May 6, 2016
1 parent 4169e8e commit d56cc1f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/webui/extjs.c
Expand Up @@ -98,6 +98,7 @@ extjs_root(http_connection_t *hc, const char *remain, void *opaque)
htsbuf_append_str(hq, "<html>\n");
htsbuf_append_str(hq, "<head>\n");

htsbuf_append_str(hq, "<link rel=\"shortcut icon\" href=\"static/img/logo.png\" type=\"image/png\">\n");
htsbuf_append_str(hq, "<meta name=\"apple-itunes-app\" content=\"app-id=638900112\">\n");

if (tvheadend_webui_debug) {
Expand All @@ -111,7 +112,7 @@ extjs_root(http_connection_t *hc, const char *remain, void *opaque)
}

extjs_exec(hq, "\
Ext.BLANK_IMAGE_URL = \'" EXTJSPATH "/resources/images/default/s.gif';\r\n\
Ext.BLANK_IMAGE_URL = \'" EXTJSPATH "/resources/images/default/s.gif';\n\
Ext.onReady(tvheadend.app.init, tvheadend.app);\
");

Expand Down Expand Up @@ -158,6 +159,7 @@ extjs_livetv(http_connection_t *hc, const char *remain, void *opaque)
htsbuf_append_str(hq, "<!DOCTYPE html>\n");
htsbuf_append_str(hq, "<html>\n");
htsbuf_append_str(hq, "<head>\n");
htsbuf_append_str(hq, "<link rel=\"shortcut icon\" href=\"static/img/logo.png\" type=\"image/png\">\n");
htsbuf_append_str(hq, "<title>");
htsbuf_append_str(hq, config.server_name);
htsbuf_append_str(hq, "</title>\n");
Expand Down Expand Up @@ -196,7 +198,7 @@ page_about(http_connection_t *hc, const char *remain, void *opaque)
htsbuf_qprintf(hq, "<center class=\"about-tab\">\n\
<div class=\"about-title\">HTS Tvheadend %s</div>\n\
<p>&copy; 2006 - 2016 Andreas \303\226man, Jaroslav Kysela, Adam Sutton, et al.</p>\n\
<p><img src=\"static/img/logobig.png\"></p>\n\
<p><img width=\"25%%\" height=\"34%%\" src=\"static/img/logobig.png\"></p>\n\
<p><a href=\"https://tvheadend.org\">https://tvheadend.org</a></p>\n",
tvheadend_version);

Expand Down
Binary file removed src/webui/static/htslogo.png
Binary file not shown.
Binary file modified src/webui/static/img/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/webui/static/img/logobig.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions src/webui/webui.c
Expand Up @@ -249,6 +249,8 @@ page_static_file(http_connection_t *hc, const char *_remain, void *opaque)
nogzip = 1;
else if(!strcmp(postfix, "jpg"))
nogzip = 1;
else if(!strcmp(postfix, "png"))
nogzip = 1;
}

fb_file *fp = fb_open(path, 0, (nogzip || gzip) ? 0 : 1);
Expand Down Expand Up @@ -1736,8 +1738,7 @@ webui_static_content(const char *http_path, const char *source)
static int
favicon(http_connection_t *hc, const char *remain, void *opaque)
{
http_redirect(hc, "static/htslogo.png", NULL, 0);
return 0;
return page_static_file(hc, "logo.png", (void *)"src/webui/static/img");
}

/**
Expand Down

0 comments on commit d56cc1f

Please sign in to comment.