BigW Consortium Gitlab

user.js.coffee 444 Bytes
class @User
  constructor: (@opts) ->
    $('.profile-groups-avatars').tooltip("placement": "top")

    @initTabs()

    $('.hide-project-limit-message').on 'click', (e) ->
      path = '/'
      $.cookie('hide_project_limit_message', 'false', { path: path })
      $(@).parents('.project-limit-message').remove()
      e.preventDefault()

  initTabs: ->
    new UserTabs(
        parentEl: '.user-profile'
        action: @opts.action
      )