Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/users_helper.rb')
-rw-r--r--app/helpers/users_helper.rb23
1 files changed, 22 insertions, 1 deletions
diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index a5d4d6872df..1979426f844 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -242,7 +242,7 @@ module UsersHelper
tabs = []
if can?(current_user, :read_user_profile, @user)
- tabs += [:overview, :activity, :groups, :contributed, :projects, :starred, :snippets]
+ tabs += [:overview, :activity, :groups, :contributed, :projects, :starred, :snippets, :followers, :following]
end
tabs
@@ -299,6 +299,27 @@ module UsersHelper
html_escape(s_('Profile|%{job_title} at %{organization}')) % { job_title: job_title, organization: organization }
end
+
+ def user_table_headers
+ [
+ {
+ section_class_name: 'section-40',
+ header_text: _('Name')
+ },
+ {
+ section_class_name: 'section-10',
+ header_text: _('Projects')
+ },
+ {
+ section_class_name: 'section-15',
+ header_text: _('Created on')
+ },
+ {
+ section_class_name: 'section-15',
+ header_text: _('Last activity')
+ }
+ ]
+ end
end
UsersHelper.prepend_if_ee('EE::UsersHelper')