Skip to content

Commit 1cb1990

Browse files
authored
Merge pull request #5081 from rubyforgood/add-git-sha
Add git SHA to footer
2 parents 2e8e44a + 7bdd99d commit 1cb1990

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

app/assets/stylesheets/application.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,7 @@ div.distribution-request-unit {
225225
margin-right: 20px;
226226
white-space: nowrap;
227227
}
228+
229+
.git-version {
230+
color: gray;
231+
}

app/assets/stylesheets/base/_variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,4 +141,4 @@ $diaper-font-family-sans-serif-alt: "Helvetica Neue", Helvetica, Arial, sans-ser
141141

142142
// sizes
143143
$diaper-navbar-height: 57;
144-
$diaper-footer-height: 57;
144+
$diaper-footer-height: 75;

app/views/layouts/application.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
<div class="pull-right hidden-xs">
9999
</div>
100100
<strong>Human Essentials was built with <i class="fa fa-heart fa-beat" style="color:red;"></i> by <a href="http://rubyforgood.org">Ruby for Good</a>.</strong>
101+
<br><span class="git-version">Version: <%= ENV['GIT_SHA'] %></span>
101102
</footer>
102103

103104
</aside>

config/initializers/git_sha.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ENV['GIT_SHA'] = `cat #{Rails.root}/REVISION`

0 commit comments

Comments
 (0)