# HG changeset patch # User Chris Cannam # Date 1301488650 -3600 # Node ID d67a7d67b159da9eaccb48ef8bde04550f3490db # Parent 7acd282bee3ce6f8ec186cff3d3b3cd5e10dba9c Ensure the repository URL is marked read-only for external repos; add note about being updated hourly diff -r 7acd282bee3c -r d67a7d67b159 vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.rhtml --- a/vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.rhtml Wed Mar 30 11:05:16 2011 +0100 +++ b/vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.rhtml Wed Mar 30 13:37:30 2011 +0100 @@ -20,7 +20,11 @@

<% if User.current.logged? %> + <% if repository.is_external? %> + <%=l :label_access_type_all, :type => l(:label_access_read_only) %> + <% else %> <% if default_protocol %><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %><% end %> + <% end %> <% else %>   <% end %> diff -r 7acd282bee3c -r d67a7d67b159 vendor/plugins/redmine_checkout/config/locales/en.yml --- a/vendor/plugins/redmine_checkout/config/locales/en.yml Wed Mar 30 11:05:16 2011 +0100 +++ b/vendor/plugins/redmine_checkout/config/locales/en.yml Wed Mar 30 13:37:30 2011 +0100 @@ -17,6 +17,7 @@ button_add_protocol: "Add Protocol" label_access_type: 'You have {{type}} access to this URL.' + label_access_type_all: 'All access to this URL is {{type}}.' label_access_read_only: 'Read Only' label_access_read_write: "Read and Write" label_access_permission: "Depending on user's permissions" @@ -38,5 +39,5 @@ help_moved_settings: "The settings page has been moved to {{link}}." label_settings_location: "Administration -> Settings -> Checkout" - text_repository_external: "The primary repository for this project is hosted at {{location}} .
This repository is a read-only copy which is updated automatically." + text_repository_external: "The primary repository for this project is hosted at {{location}} .
This repository is a read-only copy which is updated automatically every hour."