Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Commit

Permalink
Add links to each project's Crowdin and (if available) Github repo
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitrisp2 committed Oct 18, 2018
1 parent 6225696 commit a1d8117
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion functions.php
Expand Up @@ -323,8 +323,14 @@ function GetAllProjects($action) {
$assignlink = "";
}

if (($row['github'] == "") || ($row['github'] == NULL)) {
$linkedrepos = "[<a href=\"".$row['crowdin']."\">C</a>]";
} else {
$linkedrepos = "[<a href=\"".$row['github']."\">G</a>|<a href=\"".$row['crowdin']."\">C</a>]";
}

// Add the project to the list
$allprojects .= "<tr><td>".$row['projectname']."</td><td>".$row['translatorname']."</td><td>".$row['proofreadername']."</td><td>".$started."</td><td>".$finished."</td><td>".$assignlink."<a href=\"projects.php?a=view&i=".$row['id']."\"><i class=\"tiny material-icons\">remove_red_eye</i></a>&nbsp;".$finishlink."</td>";
$allprojects .= "<tr><td>".$row['projectname']." ".$linkedrepos."</td><td>".$row['translatorname']."</td><td>".$row['proofreadername']."</td><td>".$started."</td><td>".$finished."</td><td>".$assignlink."<a href=\"projects.php?a=view&i=".$row['id']."\"><i class=\"tiny material-icons\">remove_red_eye</i></a>&nbsp;".$finishlink."</td>";
}
return $allprojects;
} else {
Expand Down

0 comments on commit a1d8117

Please sign in to comment.