Commit 01c66ae2 authored by Maxime Chaillet's avatar Maxime Chaillet

do not show tags while lokking at previous tag versions.

parent 026f4e1c
......@@ -22,9 +22,7 @@ class EventHeader extends React.Component {
if (context === EVENT_HISTORY_ORIGINAL_VERSION_CONTEXT) {
return (<Panel.Heading >
<Row>
<div className="pull-right">
{this.showTags(event)}
</div>
{/* <div className="pull-right"> <p> Tags not shown </p> </div> */}
<div style={{ paddingLeft: '10px' }}> {getEventIcon(event.category)}
&nbsp; On {getEventHistoryCreationDate(event)}, the original message was:
</div>
......@@ -33,9 +31,7 @@ class EventHeader extends React.Component {
} else if (context === EVENT_HISTORY_LATEST_VERSION_CONTEXT) {
return (<Panel.Heading >
<Row>
<div className="pull-right">
{this.showTags(event)}
</div>
{/* <div className="pull-right"> <p> Tags not shown </p> </div> */}
<div style={{ paddingLeft: '10px' }}> {getEventIcon("previousVersion")}
&nbsp; Written on {getEventHistoryCreationDate(event)} (latest version), the current comment is:
</div>
......@@ -44,9 +40,7 @@ class EventHeader extends React.Component {
} else if (context === EVENT_HISTORY_MIDDLE_VERSION_CONTEXT) {
return (<Panel.Heading >
<Row>
<div className="pull-right">
{this.showTags(event)}
</div>
{/* <div className="pull-right"> <p> Tags not shown </p> </div> */}
<div style={{ paddingLeft: '10px' }}> {getEventIcon("previousVersion")}
&nbsp; On {getEventHistoryCreationDate(event)}, the comment was:
</div>
......
......@@ -94,37 +94,6 @@ function eventVersionsPopover(event) {
</Popover>);
}
// /**
// * React component which represents the commentBy part.
// * @param {*} props
// */
// const CommentBy = (props) => {
// let { event } = props;
// if (getPreviousVersionNumber(event) === 0) {
// return (
// <div>
// <Label> Created by </Label>
// <div style={{ paddingTop: '5px', paddingLeft: '10px' }}>
// <p style={{ color: '#666666' }}> {props.event.username} </p>
// </div>
// <hr id='hrEvents' />
// </div>
// );
// };
// if (getPreviousVersionNumber(event) !== 0) {
// return (
// <div>
// <Label> Commented by </Label>
// <div style={{ paddingTop: '5px', paddingLeft: '10px' }}>
// <p style={{ color: '#666666' }}> {props.event.username} </p>
// </div>
// <hr id='hrEvents' />
// </div>
// );
// };
// return null;
// };
/**
* React component which represents on item of the event history
* @param {*} props the props passed to this component
......
......@@ -179,12 +179,12 @@ div.collapsedEventPanel-heading:hover {
}
#mypopover {
left: 50px !important;
/* left: 50px !important; */
max-width: 500px;
}
#mypopover .arrow {
left: 10% !important;
left: 30% !important;
}
/* viewing content in Doc view*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment