mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-25 14:50:29 +00:00
[favicon] fix & modification for customization
This commit is contained in:
BIN
media/img/favicon.ico
Normal file
BIN
media/img/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.1 KiB |
@@ -15,7 +15,8 @@ from constance import config
|
|||||||
|
|
||||||
from seahub.settings import SEAFILE_VERSION, SITE_TITLE, SITE_NAME, \
|
from seahub.settings import SEAFILE_VERSION, SITE_TITLE, SITE_NAME, \
|
||||||
MAX_FILE_NAME, BRANDING_CSS, LOGO_PATH, LOGO_WIDTH, LOGO_HEIGHT,\
|
MAX_FILE_NAME, BRANDING_CSS, LOGO_PATH, LOGO_WIDTH, LOGO_HEIGHT,\
|
||||||
SHOW_REPO_DOWNLOAD_BUTTON, SITE_ROOT, ENABLE_GUEST_INVITATION
|
SHOW_REPO_DOWNLOAD_BUTTON, SITE_ROOT, ENABLE_GUEST_INVITATION, \
|
||||||
|
FAVICON_PATH
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from seahub.settings import SEACLOUD_MODE
|
from seahub.settings import SEACLOUD_MODE
|
||||||
@@ -60,6 +61,7 @@ def base(request):
|
|||||||
'seafile_version': SEAFILE_VERSION,
|
'seafile_version': SEAFILE_VERSION,
|
||||||
'site_title': SITE_TITLE,
|
'site_title': SITE_TITLE,
|
||||||
'branding_css': BRANDING_CSS,
|
'branding_css': BRANDING_CSS,
|
||||||
|
'favicon_path': FAVICON_PATH,
|
||||||
'logo_path': LOGO_PATH,
|
'logo_path': LOGO_PATH,
|
||||||
'logo_width': LOGO_WIDTH,
|
'logo_width': LOGO_WIDTH,
|
||||||
'logo_height': LOGO_HEIGHT,
|
'logo_height': LOGO_HEIGHT,
|
||||||
|
@@ -390,6 +390,10 @@ SITE_TITLE = 'Private Seafile'
|
|||||||
# Base name used in email sending
|
# Base name used in email sending
|
||||||
SITE_NAME = 'Seafile'
|
SITE_NAME = 'Seafile'
|
||||||
|
|
||||||
|
# Path to the favicon file (relative to the media path)
|
||||||
|
# tip: use a different name when modify it.
|
||||||
|
FAVICON_PATH = 'img/favicon.ico'
|
||||||
|
|
||||||
# Path to the Logo Imagefile (relative to the media path)
|
# Path to the Logo Imagefile (relative to the media path)
|
||||||
LOGO_PATH = 'img/seafile-logo.png'
|
LOGO_PATH = 'img/seafile-logo.png'
|
||||||
# logo size. the unit is 'px'
|
# logo size. the unit is 'px'
|
||||||
|
@@ -10,10 +10,7 @@
|
|||||||
{% block viewport %}
|
{% block viewport %}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<link rel="icon" type="image/x-icon" href="{{ MEDIA_URL }}img/favicon.png?t=1398068110" />
|
<link rel="icon" href="{{ MEDIA_URL }}{{ favicon_path }}" />
|
||||||
<!--[if IE]>
|
|
||||||
<link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.png?t=1398068110"/>
|
|
||||||
<![endif]-->
|
|
||||||
<link rel="stylesheet" type="text/css" href="{% static "css/bootstrap.min.css" %}"/>
|
<link rel="stylesheet" type="text/css" href="{% static "css/bootstrap.min.css" %}"/>
|
||||||
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css?t=1398068110" />
|
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/seahub.css?t=1398068110" />
|
||||||
{% block extra_style %}{% endblock %}
|
{% block extra_style %}{% endblock %}
|
||||||
|
@@ -9,11 +9,7 @@
|
|||||||
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
<link rel="icon" type="image/x-icon" href="{{ MEDIA_URL }}img/favicon.png?t=1398068110" />
|
<link rel="icon" href="{{ MEDIA_URL }}{{ favicon_path }}" />
|
||||||
<!--[if IE]>
|
|
||||||
<link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.png?t=1398068110" />
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
{% compress css %}
|
{% compress css %}
|
||||||
<link rel="stylesheet" type="text/css" href="{% static "css/bootstrap.min.css" %}" />
|
<link rel="stylesheet" type="text/css" href="{% static "css/bootstrap.min.css" %}" />
|
||||||
<link rel="stylesheet" type="text/css" href="{% static "css/select2-3.5.2.css" %}" />
|
<link rel="stylesheet" type="text/css" href="{% static "css/select2-3.5.2.css" %}" />
|
||||||
|
@@ -8,11 +8,7 @@
|
|||||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
||||||
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
<meta name="keywords" content="{% trans "File Collaboration Team Organization" %}" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<link rel="icon" type="image/x-icon" href="{{ MEDIA_URL }}img/favicon.png?t=1398068110" />
|
<link rel="icon" href="{{ MEDIA_URL }}{{ favicon_path }}" />
|
||||||
<!--[if IE]>
|
|
||||||
<link rel="shortcut icon" href="{{ MEDIA_URL }}img/favicon.png?t=1398068110"/>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
{% compress css %}
|
{% compress css %}
|
||||||
<link rel="stylesheet" type="text/css" href="{% static "css/bootstrap.min.css" %}"/>
|
<link rel="stylesheet" type="text/css" href="{% static "css/bootstrap.min.css" %}"/>
|
||||||
<link rel="stylesheet" type="text/css" href="{% static "css/select2-3.5.2.css" %}"/>
|
<link rel="stylesheet" type="text/css" href="{% static "css/select2-3.5.2.css" %}"/>
|
||||||
|
Reference in New Issue
Block a user