Omniauth Support

This commit is contained in:
Florian Unglaub 2012-08-03 17:27:39 +02:00
parent 4ce034ca65
commit a64aff2f1c
20 changed files with 195 additions and 61 deletions

View file

@ -75,16 +75,16 @@ module ApplicationHelper
end
def show_last_push_widget?(event)
event &&
event &&
event.last_push_to_non_root? &&
!event.rm_ref? &&
event.project &&
event.project &&
event.project.merge_requests_enabled
end
def tab_class(tab_key)
active = case tab_key
# Project Area
when :wall; wall_tab?
when :wiki; controller.controller_name == "wikis"
@ -123,4 +123,9 @@ module ApplicationHelper
def hexdigest(string)
Digest::SHA1.hexdigest string
end
def authbutton(provider, size = 64)
image_tag("authbuttons/#{provider.to_s.split('_').first}_#{size}.png",
alt: "Sign in with #{provider.to_s.titleize}" )
end
end