mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
update side nav footer (#2779)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Modal, ModalBody } from 'reactstrap';
|
import { Modal, ModalBody } from 'reactstrap';
|
||||||
import { gettext, siteRoot } from '../utils/constants';
|
import { gettext, lang, siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle, seafileVersion } from '../utils/constants';
|
||||||
|
|
||||||
const propTypes = {
|
const propTypes = {
|
||||||
className: PropTypes.string,
|
className: PropTypes.string,
|
||||||
@@ -21,6 +21,16 @@ class About extends React.Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aboutUrl = () => {
|
||||||
|
let url;
|
||||||
|
if (lang == 'zh-cn') {
|
||||||
|
url = 'http://seafile.com/about/';
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
url = 'http://seafile.com/en/about/';
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
@@ -29,9 +39,9 @@ class About extends React.Component {
|
|||||||
<ModalBody>
|
<ModalBody>
|
||||||
<button type="button" className="close" onClick={this.toggle}><span aria-hidden="true">×</span></button>
|
<button type="button" className="close" onClick={this.toggle}><span aria-hidden="true">×</span></button>
|
||||||
<div className="about-content">
|
<div className="about-content">
|
||||||
<p><img src="/media/img/seafile-logo.png" title="Private Seafile" alt="logo" width="128" height="32" /></p>
|
<p><img src={mediaUrl + logoPath} height={logoHeight} width={logoWidth} title={siteTitle} alt="logo" /></p>
|
||||||
<p>{gettext('Server Version: ')}6.3.3<br />© 2018 {gettext('Seafile')}</p>
|
<p>{gettext('Server Version: ')}{seafileVersion}<br />© 2019 {gettext('Seafile')}</p>
|
||||||
<p><a href="http://seafile.com/about/" target="_blank">{gettext('About Us')}</a></p>
|
<p><a href={this.aboutUrl()} target="_blank">{gettext('About Us')}</a></p>
|
||||||
</div>
|
</div>
|
||||||
</ModalBody>
|
</ModalBody>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
@@ -12,6 +12,7 @@ export const logoHeight = window.app.config.logoHeight;
|
|||||||
export const isPro = window.app.config.isPro === 'True';
|
export const isPro = window.app.config.isPro === 'True';
|
||||||
export const lang = window.app.config.lang;
|
export const lang = window.app.config.lang;
|
||||||
export const fileServerRoot = window.app.config.fileServerRoot;
|
export const fileServerRoot = window.app.config.fileServerRoot;
|
||||||
|
export const seafileVersion = window.app.config.seafileVersion;
|
||||||
|
|
||||||
//pageOptions
|
//pageOptions
|
||||||
export const seafileCollabServer = window.app.pageOptions.seafileCollabServer;
|
export const seafileCollabServer = window.app.pageOptions.seafileCollabServer;
|
||||||
|
@@ -34,7 +34,8 @@
|
|||||||
loginUrl: '{{ LOGIN_URL }}',
|
loginUrl: '{{ LOGIN_URL }}',
|
||||||
isPro: '{{ is_pro }}',
|
isPro: '{{ is_pro }}',
|
||||||
lang: '{{ LANGUAGE_CODE }}',
|
lang: '{{ LANGUAGE_CODE }}',
|
||||||
fileServerRoot: '{{ FILE_SERVER_ROOT }}'
|
fileServerRoot: '{{ FILE_SERVER_ROOT }}',
|
||||||
|
seafileVersion: '{{ seafile_version }}',
|
||||||
},
|
},
|
||||||
pageOptions: {
|
pageOptions: {
|
||||||
seafileCollabServer: '{{seafile_collab_server}}',
|
seafileCollabServer: '{{seafile_collab_server}}',
|
||||||
|
Reference in New Issue
Block a user