diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-01 13:21:25 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-03-01 13:21:25 -0500 |
commit | 69a76baed92a3a9a1b35c0ff636a77ffd52c4c7b (patch) | |
tree | 574d1bea7c989714a926c2f6b02c7f2f80dc862d | |
parent | 3b489ad1d798d640d8d6cddd20d0ed10563d725b (diff) | |
download | gitlab-ce-69a76baed92a3a9a1b35c0ff636a77ffd52c4c7b.tar.gz |
Add inline documentation
-rw-r--r-- | app/assets/javascripts/user_tabs.js.coffee | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/app/assets/javascripts/user_tabs.js.coffee b/app/assets/javascripts/user_tabs.js.coffee index d2fa86d9f30..698b1dde7c7 100644 --- a/app/assets/javascripts/user_tabs.js.coffee +++ b/app/assets/javascripts/user_tabs.js.coffee @@ -1,3 +1,54 @@ +# UserTabs +# +# Handles persisting and restoring the current tab selection and lazily-loading +# content on the Users#show page. +# +# ### Example Markup +# +# <ul class="nav-links"> +# <li class="activity-tab active"> +# <a data-action="activity" data-target="#activity" data-toggle="tab" href="/u/username"> +# Activity +# </a> +# </li> +# <li class="groups-tab"> +# <a data-action="groups" data-target="#groups" data-toggle="tab" href="/u/username/groups"> +# Groups +# </a> +# </li> +# <li class="contributed-tab"> +# <a data-action="contributed" data-target="#contributed" data-toggle="tab" href="/u/username/contributed"> +# Contributed projects +# </a> +# </li> +# <li class="projects-tab"> +# <a data-action="projects" data-target="#projects" data-toggle="tab" href="/u/username/projects"> +# Personal projects +# </a> +# </li> +# </ul> +# +# <div class="tab-content"> +# <div class="tab-pane" id="activity"> +# Activity Content +# </div> +# <div class="tab-pane" id="groups"> +# Groups Content +# </div> +# <div class="tab-pane" id="contributed"> +# Contributed projects content +# </div> +# <div class="tab-pane" id="projects"> +# Projects content +# </div> +# </div> +# +# <div class="loading-status"> +# <div class="loading"> +# Loading Animation +# </div> +# </div> +# class @UserTabs actions: ['activity', 'groups', 'contributed', 'projects'], defaultAction: 'activity', |