mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +00:00
Ignore previewd file extension, and change copyright
This commit is contained in:
@@ -143,7 +143,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="other-info fright">
|
<div class="other-info fright">
|
||||||
<p>{% trans "Server Version: " %}{{ seafile_version }}</p>
|
<p>{% trans "Server Version: " %}{{ seafile_version }}</p>
|
||||||
<p>© 2012 {% trans "Seafile" %}</p>
|
<p>© 2013 {% trans "Seafile" %}</p>
|
||||||
<p><a href="http://seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}contact/" target="_blank">{% trans "Contact Us" %}</a></p>
|
<p><a href="http://seafile.com/{% if LANGUAGE_CODE == 'en' %}en/{% endif %}contact/" target="_blank">{% trans "Contact Us" %}</a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -264,7 +264,7 @@ def valid_previewed_file(filename):
|
|||||||
Check whether file can preview on web
|
Check whether file can preview on web
|
||||||
|
|
||||||
"""
|
"""
|
||||||
fileExt = os.path.splitext(filename)[1][1:]
|
fileExt = os.path.splitext(filename)[1][1:].lower()
|
||||||
filetype = FILEEXT_TYPE_MAP.get(fileExt)
|
filetype = FILEEXT_TYPE_MAP.get(fileExt)
|
||||||
if filetype:
|
if filetype:
|
||||||
# Check whether this kind of file can be previewd.
|
# Check whether this kind of file can be previewd.
|
||||||
|
Reference in New Issue
Block a user