Permalink
Browse files

Link revision to github

  • Loading branch information...
rickenharp committed May 19, 2017
1 parent cf117e4 commit e81800192dc0e4df4821813d8b9cac11a3ee77d2
Showing with 2 additions and 1 deletion.
  1. +2 −1 views/layout.erb
View
@@ -30,6 +30,7 @@
<br>
Contact: <a href="mailto:alexander.graefe@googlemail.com">alexander.graefe@googlemail.com</a>
<br>
Revision: <%= (File.exist?('REVISION') ? File.read('REVISION') : `git rev-parse HEAD`).slice(0,10) %>
<% revision = (File.exist?('REVISION') ? File.read('REVISION') : `git rev-parse HEAD`).slice(0,10) %>
Revision: <a href="https://github.com/rickenharp/perilous_wilds/commit/<%= revision %>"><%= revision %></a>
</body>
</html>

0 comments on commit e818001

Please sign in to comment.