changeset 337:d67a7d67b159 cannam-pre-20110113-merge

Ensure the repository URL is marked read-only for external repos; add note about being updated hourly
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 30 Mar 2011 13:37:30 +0100
parents 7acd282bee3c
children 89b3acb833d1 5410d82c12df
files vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.rhtml vendor/plugins/redmine_checkout/config/locales/en.yml
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 
     <p>
     <% 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 %>
       &nbsp;
     <% end %>
--- 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 <span id="checkout_access">{{type}}</span> access to this URL.'
+  label_access_type_all: 'All access to this URL is <span id="checkout_access">{{type}}</span>.'
   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 <code>{{location}}</code> .<br>This repository is a read-only copy which is updated automatically."
+  text_repository_external: "The primary repository for this project is hosted at <code>{{location}}</code> .<br>This repository is a read-only copy which is updated automatically every hour."