diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-27 13:13:33 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-11-27 13:13:33 +0200 |
commit | 4091322dba7ee3b94de9ad0b8b061622ba1e468c (patch) | |
tree | bb14804895722d41f0c3d183f31517016190854a /app/helpers/visibility_level_helper.rb | |
parent | fa7d62494a24584c0d27d52344aae8e382304936 (diff) | |
download | gitlab-ce-4091322dba7ee3b94de9ad0b8b061622ba1e468c.tar.gz |
Improve UX of project visiblity level. Improve "Public Access" help page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers/visibility_level_helper.rb')
-rw-r--r-- | app/helpers/visibility_level_helper.rb | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/app/helpers/visibility_level_helper.rb b/app/helpers/visibility_level_helper.rb index 5cec7f8b4e6..81e10f3685c 100644 --- a/app/helpers/visibility_level_helper.rb +++ b/app/helpers/visibility_level_helper.rb @@ -18,17 +18,11 @@ module VisibilityLevelHelper haml_concat "Project access must be granted explicitly for each user." when Gitlab::VisibilityLevel::INTERNAL haml_concat "The project can be cloned by" - haml_tag :em, "any logged in user." - haml_concat "It will also be listed on the #{link_to "public access directory", public_root_path} for logged in users." - haml_tag :em, "Any logged in user" - haml_concat "will have #{link_to "Guest", help_permissions_path} permissions on the repository." + haml_concat "any logged in user." when Gitlab::VisibilityLevel::PUBLIC haml_concat "The project can be cloned" - haml_tag :em, "without any" + haml_concat "without any" haml_concat "authentication." - haml_concat "It will also be listed on the #{link_to "public access directory", public_root_path}." - haml_tag :em, "Any logged in user" - haml_concat "will have #{link_to "Guest", help_permissions_path} permissions on the repository." end end end @@ -48,8 +42,8 @@ module VisibilityLevelHelper def visibility_level_label(level) Project.visibility_levels.key(level) end - + def restricted_visibility_levels current_user.is_admin? ? [] : gitlab_config.restricted_visibility_levels end -end
\ No newline at end of file +end |