Browse code

On "selected projects" changed visit button to a hyperlink in the name

Philip I. Thomas authored on 20/10/2012 at 01:57:34
Showing 1 changed files
... ...
@@ -393,11 +393,16 @@ function iprogram($language,$percent) {
393 393
 
394 394
 function project($name,$look,$code) {
395 395
 	// Makes lists for displaying projects
396
-	echo '<li style="padding-top: 12px">'.$name;
396
+	echo '<li style="padding-top: 12px">';
397
+	
397 398
 	if (!empty($look)) {
398 399
 		// link to look at completed project
399
-		echo ' <a href="'.$look.'" target="_BLANK" ><span class="badge badge-success">Visit <i class="icon-arrow-right icon-white"></i></label></a>';
400
+		echo '<a href="'.$look.'" target="_BLANK" >'.$name.'</a>';
401
+	}
402
+	else {
403
+		echo $name;
400 404
 	}
405
+	
401 406
 	if (!empty($code)) {
402 407
 		// link to look at completed project
403 408
 		echo ' <a href="'.$code.'" target="_BLANK""><span class="badge badge-info">Code <i class="icon-arrow-right icon-white"></i></span></a>';