Skip to content

Commit

Permalink
Zmena linku na zobrazenie rieseni v administracii (#199)
Browse files Browse the repository at this point in the history
* change link for downloading solutions of users

* rename
  • Loading branch information
vikibrezinova authored Nov 11, 2023
1 parent 9910678 commit a5c6819
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/components/ProblemAdministration/ProblemAdministration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ export const ProblemAdministration: FC = () => {
</div>
<div className={styles.centerCell}>
{solution.solution ? (
<a href={solution?.solution} target="_blank" rel="noreferrer" className={styles.icon}>
<a
href={`/api/competition/solution/${solution.id}/file-solution`}
target="_blank"
rel="noreferrer"
className={styles.icon}
>
<FormatAlignJustify />
</a>
) : (
Expand All @@ -173,7 +178,12 @@ export const ProblemAdministration: FC = () => {
</div>
<div className={styles.centerCell}>
{solution.corrected_solution ? (
<a href={solution?.corrected_solution} target="_blank" rel="noreferrer" className={styles.icon}>
<a
href={`/api/competition/solution/${solution.id}/file-corrected`}
target="_blank"
rel="noreferrer"
className={styles.icon}
>
<Grading />
</a>
) : (
Expand Down

0 comments on commit a5c6819

Please sign in to comment.