Commit b13f6fa9 authored by Fatih Acet's avatar Fatih Acet

Added a common util to get project slug.

parent 8aad7883
((w) ->
w.gl or= {}
w.gl.utils or= {}
w.gl.utils.getProjectSlug = ->
$body = $ 'body'
isInProjectPage = $body.data('page').split(':')[0] is 'projects'
return if isInProjectPage then $body.data 'project' else null
) window
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment