1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

modified logo

This commit is contained in:
llj
2013-12-12 15:03:10 +08:00
parent 83644f8835
commit 302f92e34e
8 changed files with 11 additions and 21 deletions

View File

@@ -759,7 +759,7 @@ textarea:-moz-placeholder {/* for FF */
margin:0 auto;
}
#header {
padding-top:12px;
padding:6px 0;
background:#f4f4f4;
width:100%;
font-size: 14px;
@@ -984,16 +984,11 @@ textarea:-moz-placeholder {/* for FF */
box-shadow:0 0 6px gray;
}
#logo {
width:95px;
height:40px;
margin-right:30px;
}
#seacloud-logo {
margin:2px 30px 6px 0;
}
#header .nav {
float:left;
padding-top:6px;
padding-top:16px;
font-size:15px;
}
#header .nav li {
@@ -2417,7 +2412,7 @@ textarea:-moz-placeholder {/* for FF */
position:relative;
}
#top-search-form {
margin-top:4px;
margin-top:14px;
}
.search-input,
.search-form .search-submit {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

BIN
media/img/seacloud_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
media/img/seafile_logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@@ -7,7 +7,7 @@ These are referenced from the setting TEMPLATE_CONTEXT_PROCESSORS and used by
RequestContext.
"""
from seahub.settings import SEAFILE_VERSION, SITE_TITLE, SITE_NAME, SITE_BASE, \
ENABLE_SIGNUP, MAX_FILE_NAME, BRANDING_CSS, LOGO_PATH, LOGO_URL, \
ENABLE_SIGNUP, MAX_FILE_NAME, BRANDING_CSS, LOGO_PATH, \
SHOW_REPO_DOWNLOAD_BUTTON, REPO_PASSWORD_MIN_LENGTH
from seahub.views.modules import get_enabled_mods_by_user, \
get_available_mods_by_user
@@ -53,7 +53,6 @@ def base(request):
'site_title': SITE_TITLE,
'branding_css': BRANDING_CSS,
'logo_path': LOGO_PATH,
'logo_url': LOGO_URL,
'business_mode': BUSINESS_MODE,
'seacloud_mode': SEACLOUD_MODE,
'cloud_mode': request.cloud_mode,

View File

@@ -281,9 +281,7 @@ SITE_BASE = 'http://seafile.com'
SITE_NAME = 'Seafile'
# Path to the Logo Imagefile (relative to the media path)
LOGO_PATH = 'img/logo.png'
# URL to which the logo links
LOGO_URL = SITE_BASE
LOGO_PATH = 'img/seafile_logo.png'
# css to modify the seafile css (e.g. css/my_site.css)
BRANDING_CSS = ''

View File

@@ -69,15 +69,13 @@
<div id="header">
<div id="header-inner">
{% block notice_panel %}{% endblock %}
<a href="{{ SITE_ROOT }}" id="logo" class="fleft">
{% if seacloud_mode %}
<a href="http://seacloud.cc/" id="seacloud-logo" class="fleft">
<img src="{{ MEDIA_URL }}img/seacloud-logo.png?t=1362454620" title="Seacloud" alt="Seacloud logo" />
</a>
<img src="{{ MEDIA_URL }}img/seacloud_logo.png" title="Seacloud" alt="logo" width="192" height="39" />
{% else %}
<a href="{{logo_url}}" id="logo" class="fleft">
<img src="{{ MEDIA_URL }}{{ logo_path }}" title="Seafile" alt="Seafile logo" />
</a>
<img src="{{ MEDIA_URL }}{{ logo_path }}" title="Seafile" alt="logo" width="156" height="39" />
{% endif %}
</a>
{% block nav %}{% endblock %}
{% if has_file_search and request.user.is_authenticated %}