fix social links
This commit is contained in:
parent
0fb4c3fabb
commit
7d3c034638
|
@ -20,7 +20,7 @@ module ApplicationHelper
|
|||
registration_url(:user , ssl_hash )
|
||||
end
|
||||
|
||||
def social_link kind , href , &block
|
||||
def social_link(href , kind , &block)
|
||||
classes = "social-icon social-icon-border social-#{kind} pull-left tipit"
|
||||
options = {class: classes , :title => kind.capitalize , target: :blank }
|
||||
link_to(href , options , &block)
|
||||
|
|
|
@ -69,11 +69,11 @@
|
|||
|
||||
|
||||
.margin-top-20
|
||||
=social_link( "facebook", "https://www.facebook.com/webdev.camp") do
|
||||
=social_link("https://www.facebook.com/webdev.camp", "facebook") do
|
||||
%i.icon-facebook
|
||||
=social_link( "twitter", "https://twitter.com/webdev_camp") do
|
||||
=social_link("https://twitter.com/webdev_camp", "twitter") do
|
||||
%i.icon-twitter
|
||||
=social_link( "instagram", "https://www.instagram.com/webdev.camp") do
|
||||
=social_link("https://www.instagram.com/webdev.camp", "instagram") do
|
||||
%i.icon-instagram
|
||||
|
||||
.container-fluid
|
||||
|
|
|
@ -255,7 +255,7 @@
|
|||
gives meaningful names to our styles and lets them build ourselves.
|
||||
%br
|
||||
You'll earn
|
||||
=ext_link "Susy" , "http://susy.oddbird.net/"
|
||||
= ext_link "Susy" , "http://susy.oddbird.net/"
|
||||
and how to build your own grid system.
|
||||
%br
|
||||
%span.tipster
|
||||
|
@ -502,9 +502,9 @@
|
|||
= social_link( "https://github.com/dancinglightning" , "github" ) do
|
||||
%i.fa.icon-github
|
||||
= social_link( "https://github.com/rubyclerks" , "github" ) do
|
||||
%img{ src: "https://avatars0.githubusercontent.com/u/6094466?v=3&s=30"}
|
||||
%img{ src: "https://avatars0.githubusercontent.com/u/6094466?v=3&s=38"}
|
||||
= social_link( "https://github.com/salama" , "github" ) do
|
||||
%img{ src: "https://avatars1.githubusercontent.com/u/7279238?v=3&s=30"}
|
||||
%img{ src: "https://avatars1.githubusercontent.com/u/7279238?v=3&s=38"}
|
||||
.col-md-4.col-sm-6.flip-container.margin-bottom-20{:ontouchstart => "this.classList.toggle('hover');"}
|
||||
.flipper
|
||||
.frontt.box-default
|
||||
|
|
Loading…
Reference in New Issue