Skip to content

Commit

Permalink
Ass4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
chamhayden committed Oct 29, 2023
1 parent 0850eab commit 1bc90c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions frontend/src/page/Assessments/AssessmentsAssignments.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ const AssessmentsAssignments = ({ }) => {
return (
<SubNavWrapper baseUrl={'/assessments/assignments'} menu={menu}>
<>
<h2>{params.ass} has {['ass1', 'ass2', 'ass3', 'ass4'].includes(params.ass) ? '' : 'not '} been released!</h2>
{['ass1', 'ass2', 'ass3', 'ass4'].includes(params.ass) && (<Button variant="contained" size="large">
<h2>{params.ass} has {['ass1', 'ass2', 'ass3'].includes(params.ass) ? '' : 'not '} been released!</h2>
{['ass1', 'ass2', 'ass3'].includes(params.ass) && (<Button variant="contained" size="large">
<a style={{ color: '#fff' }} target="_blank" href={
params.ass === 'ass1' ? `/~cs6080/redirect/?path=COMP6080/${getters.term}/students/_/pictocode/` :
params.ass === 'ass2' ? `/~cs6080/redirect/?path=COMP6080/${getters.term}/students/_/funform/` :
params.ass === 'ass3' ? `/~cs6080/redirect/?path=COMP6080/${getters.term}/students/_/slackr/` :
params.ass === 'ass4' ? `https://nw-syd-gitlab.cseunsw.tech/`}>
params.ass === 'ass4' ? `https://nw-syd-gitlab.cseunsw.tech/`
: ``}>
View on gitlab
</a>
</Button>)}
Expand Down

0 comments on commit 1bc90c3

Please sign in to comment.