Skip to content

Commit

Permalink
Add issue link
Browse files Browse the repository at this point in the history
  • Loading branch information
pikesley committed Mar 5, 2016
1 parent 0f0aecc commit b4068cb
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 2 deletions.
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.0
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
@import 'bootstrap';
@import 'plugins';
@import 'nav';
@import 'footer';
@import 'slider';
@import 'buttons';
@import 'table-rows';
Expand Down
32 changes: 32 additions & 0 deletions app/assets/stylesheets/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
$footer-height: 40px;

html {
position: relative;
min-height: 100%;
text-transform: none;
}

body {
/* Margin bottom by footer height */
margin-bottom: $footer-height;
}

.footer {
position: absolute;
bottom: 0;
width: 100%;
font-size: 1em;

margin-top: $padding-large-vertical;
background-image: image-url('subtle_dots.png');

opacity: 1;
color: white;
height: $footer-height;

padding: $padding-large-vertical $padding-large-horizontal;

a:hover {
text-decoration: none;
}
}
5 changes: 5 additions & 0 deletions app/views/application/_footer.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class='footer'>
<div class='text-center bottom links'>
<a href='https://github.com/pikesley/correctiondose/issues/new'><i class='fa fa-github'></i> Report issue</a>
</div>
</div>
2 changes: 0 additions & 2 deletions app/views/application/_nav.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
<% end %>
</ul>
</li>


</ul>
<p class="navbar-text navbar-right">
<% if signed_in? %>
Expand Down
1 change: 1 addition & 0 deletions app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<% end %>
</div>
</div>
<%= render partial: 'application/footer' %>
</body>

<%= render partial: 'shared/javascripts' %>
Expand Down

0 comments on commit b4068cb

Please sign in to comment.