repositories_helper.rb revision d08e844ab0b6e875e0716e0986debfb79924e662
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina methods.map! { |method| [method, method == visible]} if visible
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina# def clone_method_links
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina# clone_methods.map do |clone_method|
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina# clone_method_link clone_method
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina link_to method, "##{method}", class: 'clone_method_link', data: {clone: method}
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina def repository_clone_url(repository, clone_type: 'git', port: nil)
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina repository_tree_url(repository, protocol: 'git', port: nil) << '.git'
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina "git@#{Settings.hostname}:#{repository.path}.git"
d3dee2a07f1a8ee9ae6f94e149ced754ef76c248Pavel Březina t 'repository.access.change_hint' if resource.is_private
dea636af4d1902a081ee891f1b19ee2f8729d759Pavel Březina t('repository.access.options').select do |k,v|
586fa3571753ab4a607d40fc31503fc0e8effd70Pavel Březina modal_body(t("delete_repository"), t("delete_repository_desc"), (controller_name == "repositories" ? resource : parent), t("repository.delete"))