Omniauth Support
This commit is contained in:
parent
4ce034ca65
commit
a64aff2f1c
20 changed files with 195 additions and 61 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue