Commit 99a07f19 authored by Florent Chehab's avatar Florent Chehab

Added link back to university from exchange page

parent caa9b6e5
Pipeline #43281 passed with stages
in 3 minutes and 42 seconds
......@@ -13,6 +13,8 @@ import Typography from "@material-ui/core/Typography";
import {getUnivName} from "./PageMyExchanges";
import EditModuleCoursesFeedback from "../university/modules/previousExchangeFeedback/edit/EditModuleCoursesFeedback";
import {withStyles} from "@material-ui/styles";
import CustomLink from "../common/CustomLink";
import {APP_ROUTES} from "../../config/appRoutes";
function getExchangeId(props) {
return parseInt(props.match.params.exchangeId);
......@@ -37,12 +39,18 @@ class PageEditExchangeFeedbacks extends CustomComponentForAPI {
const {classes} = this.props,
id = getExchangeId(this.props),
exchange = this.getLatestReadData("exchange"),
univName = getUnivName(;
univId =,
univName = getUnivName(univId);
if (id) {
return (
<Typography variant={"h3"}>{univName} ({exchange.semester.toUpperCase()}{exchange.year})</Typography>
<Typography variant={"h3"}>
univId ? <CustomLink to={APP_ROUTES.forUniversity(univId)}>{univName}</CustomLink>
} ({exchange.semester.toUpperCase()}{exchange.year})</Typography>
<Typography variant={"h5"}>Page d'édition du feedback concernant votre échange.</Typography>
<Typography><em>Les informations issues de l'ENT (ECTS, etc.) sont modifiables uniquement depuis l'ENT.</em></Typography>
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