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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-27 15:13:33 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-27 15:13:33 +0400
commit4091322dba7ee3b94de9ad0b8b061622ba1e468c (patch)
treebb14804895722d41f0c3d183f31517016190854a /app/helpers/visibility_level_helper.rb
parentfa7d62494a24584c0d27d52344aae8e382304936 (diff)
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.rb14
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