1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 19:29:56 +00:00

Update tmp (#2373)

* fix file history time

* change activities url to dashboard

* remove serverRoot from dashboard

* fix api name

* Repair some components are not display

* fix code style

* rename file

* init seafileAPI

* update search

* update seafile-editor seafile-js

* debug rebase

* fix activities loading

* fix drafts css

* add permission
This commit is contained in:
C_Q
2018-09-18 10:11:37 +08:00
committed by Daniel Pan
parent 180f388af1
commit 3d165ec733
35 changed files with 236 additions and 276 deletions

View File

@@ -49,7 +49,8 @@ class HistoryListItem extends React.Component {
render() {
let item = this.props.item;
let time = moment(item.ctime).format('MMMDo Ah:mm');
let offset = moment.parseZone(item.ctime).utcOffset();
let time = moment(item.ctime).add(offset,'m').format('MMMDo Ah:mm');
let isHigtlightItem = false;
if (this.props.item && this.props.currentItem) {
isHigtlightItem = this.props.item.commit_id === this.props.currentItem.commit_id;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { gettext, filePath } from '../constance';
import { gettext, filePath } from '../constants';
import URLDecorator from '../../utils/url-decorator';
const propTypes = {