Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding a Fork me on Github banner

  • Loading branch information...
commit e8abfb9bdee5135d19ce5c38755ce6440922b7cd 1 parent 42d10f5
Simon COURTOIS authored
7 app/assets/stylesheets/presentations.css.sass
View
@@ -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 app/helpers/application_helper.rb
View
@@ -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  app/views/layouts/application.html.haml
View
@@ -6,6 +6,7 @@
= javascript_include_tag "application"
= csrf_meta_tags
%body
+ = github_banner
.wrapper
= notice
= yield
Please sign in to comment.
Something went wrong with that request. Please try again.