Skip to content

Commit

Permalink
Adding a Fork me on Github banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon COURTOIS committed Mar 19, 2012
1 parent 42d10f5 commit e8abfb9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/assets/stylesheets/presentations.css.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
= javascript_include_tag "application"
= csrf_meta_tags
%body
= github_banner
.wrapper
= notice
= yield

0 comments on commit e8abfb9

Please sign in to comment.