Skip to content

Adding a Fork me on Github Ribbon #2

Merged
merged 1 commit into from Mar 19, 2012
View
7 app/assets/stylesheets/presentations.css.sass
@@ -10,4 +10,9 @@ input[type=text], input[type=email]
input[type=submit]
font-size: 40px
color: green
- float: right
+ float: right
+.fork-on-github img
+ border: 0
+ position: absolute
+ right: 0
+ top: 0
View
5 app/helpers/application_helper.rb
@@ -1,2 +1,7 @@
module ApplicationHelper
+ def github_banner
+ link_to "http://github.com/tibastral/presentations", :class => 'fork-on-github' do
+ image_tag "http://bit.ly/github-red-banner-right", :alt => "Fork me on GitHub"
+ end
+ end
end
View
1 app/views/layouts/application.html.haml
@@ -6,6 +6,7 @@
= javascript_include_tag "application"
= csrf_meta_tags
%body
+ = github_banner
.wrapper
= notice
= yield
Something went wrong with that request. Please try again.