Commit 8c1a9051 authored by Florent Chehab's avatar Florent Chehab

Removed comment from UniversityGeneral

[OUT OF THE SCOPE OF THIS BRANCH I KNOW :) ]
parent 4235b060
......@@ -5,7 +5,6 @@ import compose from "recompose/compose";
import { connect } from "react-redux";
import __pick from "lodash/pick";
import Markdown from "../../shared/Markdown";
import Typography from "@material-ui/core/Typography";
import GenericModule from "../shared/GenericModule";
......@@ -26,38 +25,34 @@ const styles = theme => ({
function renderCore(rawModelData, classes, outsideData) {
const univInfos = rawModelData;
const { name, acronym, logo, website, comment } = univInfos;
const { name, acronym, logo, website } = univInfos;
const { city, country } = outsideData;
return (
<div>
<Grid container spacing={16} direction='row'>
<Grid item xs={4} style={{ display: "inline-flex", alignItems: "center" }}>
<Grid container spacing={16} direction='row'>
<Grid item xs={4} style={{ display: "inline-flex", alignItems: "center" }}>
{
logo != "" ?
<img style={{ width: "100%" }} src={logo} />
:
<PhotoSizeSelectActualIcon style={{ marginLeft: "auto", marginRight: "auto", width: "60%", height: "60%" }} />
}
</Grid>
<Grid item xs>
<Typography variant='h5'>{name}</Typography>
<Typography variant='h6'>{acronym}</Typography>
<Divider />
<Typography variant='subtitle1'>{city}, {country}</Typography>
<Typography variant='body2'> Site internet&nbsp;:{" "}
{
logo != "" ?
<img style={{ width: "100%" }} src={logo} />
website != "" ?
<TextLink href={website}>{website}</TextLink>
:
<PhotoSizeSelectActualIcon style={{ marginLeft: "auto", marginRight: "auto", width: "60%", height: "60%" }} />
<em>Non connu.</em>
}
</Grid>
<Grid item xs>
<Typography variant='h5'>{name}</Typography>
<Typography variant='h6'>{acronym}</Typography>
<Divider />
<Typography variant='subtitle1'>{city}, {country}</Typography>
<Typography variant='body2'> Site internet&nbsp;:{" "}
{
website != "" ?
<TextLink href={website}>{website}</TextLink>
:
<em>Non connu.</em>
}
</Typography>
</Grid>
</Typography>
</Grid>
<Markdown source={comment} />
</div>
</Grid>
);
}
......
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