Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<!DOCTYPE html>
<?php require_once 'helper_functions.php';?>
<html lang="en">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -50,7 +51,9 @@
<li role="presentation"><a href="#">Contact</a></li>
</ul>
</nav>
<h3 class="text-muted">BioCADDIE</h3>
<h3 class="text-muted">BioCADDIE
<?php echo getGitRevision();?>
</h3>
</div>


7 changes: 7 additions & 0 deletions helper_functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,11 @@ function convert_facets_post($string){
$newString = $key.':'.$value;
return $newString;
}

function getGitRevision()
{
exec('git describe --all',$refs);
return $refs[0];
}

?>