# HG changeset patch # User Chris Cannam # Date 1301392232 -3600 # Node ID eabb08b4afc36de0475e8472fd7ba45a717e2093 # Parent 2c9d65eff2528185a9df66276d3e40ef18f34e32# Parent 5835a1beeb1154cb1026bc0702f0fcbb760207ba Merge from branch "bug_70" diff -r 2c9d65eff252 -r eabb08b4afc3 config/locales/en.yml --- a/config/locales/en.yml Mon Mar 28 18:08:24 2011 +0100 +++ b/config/locales/en.yml Tue Mar 29 10:50:32 2011 +0100 @@ -942,7 +942,6 @@ text_settings_repo_is_internal: Currently the repository hosted at this site is the primary repository for this project. text_settings_repo_is_external: Currently the repository hosted at this site is a read-only copy of an external repository. text_settings_repo_need_help: Please contact us if you need help deciding how best to set this up.
We can also import complete revision history from other systems into a new primary repository for you if you wish. - text_repository_external: "The primary repository for this project is hosted at {{location}}
This repository is a read-only copy which is updated automatically." default_role_manager: Manager diff -r 2c9d65eff252 -r eabb08b4afc3 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 Mon Mar 28 18:08:24 2011 +0100 +++ b/vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.rhtml Tue Mar 29 10:50:32 2011 +0100 @@ -17,8 +17,15 @@
<%= image_tag 'paste.png', :plugin => 'redmine_checkout' %>
<% end -%> - <% if default_protocol %>

<%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %>

<% end %> - + +

+ <% if User.current.logged? %> + <% if default_protocol %><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %><% end %> + <% else %> +   + <% end %> +

+ <% javascript_tag do %> var checkout_access = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{l(p.access_label(User.current))}'"}.join(', ') %>}); var checkout_commands = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{escape_javascript(p.full_command(checkout_path))}'"}.join(', ') %>}); @@ -27,8 +34,9 @@ <% end%> <% if repository.is_external? %> -
-

<%= l(:text_repository_external, :location => repository.external_url) %>

+
+
+

<%= l(:text_repository_external, :location => repository.external_url) %>

<% end %>
diff -r 2c9d65eff252 -r eabb08b4afc3 vendor/plugins/redmine_checkout/assets/stylesheets/checkout.css --- a/vendor/plugins/redmine_checkout/assets/stylesheets/checkout.css Mon Mar 28 18:08:24 2011 +0100 +++ b/vendor/plugins/redmine_checkout/assets/stylesheets/checkout.css Tue Mar 29 10:50:32 2011 +0100 @@ -20,6 +20,10 @@ border-bottom: 1px solid #ccc; } +.topline { + border-top: 1px solid #ccc; +} + #checkout_box { margin: 10px 0; } @@ -159,4 +163,4 @@ #clipboard_button img { padding-top: 2px; -} \ No newline at end of file +} diff -r 2c9d65eff252 -r eabb08b4afc3 vendor/plugins/redmine_checkout/config/locales/en-GB.yml --- a/vendor/plugins/redmine_checkout/config/locales/en-GB.yml Mon Mar 28 18:08:24 2011 +0100 +++ b/vendor/plugins/redmine_checkout/config/locales/en-GB.yml Tue Mar 29 10:50:32 2011 +0100 @@ -16,9 +16,9 @@ label_protocol_plural: "Protocols" button_add_protocol: "Add Protocol" - label_access_type: 'This URL has {{type}} access.' - label_access_read_only: 'Read-Only' - label_access_read_write: "Read+Write" + label_access_type: 'You have {{type}} access to this URL.' + label_access_read_only: 'Read Only' + label_access_read_write: "Read and Write" label_access_permission: "Depending on user's permissions" label_append_path: "Append path" @@ -37,3 +37,5 @@ Leave the Checkout URL field empty to use the defined repository URL. 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." diff -r 2c9d65eff252 -r eabb08b4afc3 vendor/plugins/redmine_checkout/config/locales/en.yml --- a/vendor/plugins/redmine_checkout/config/locales/en.yml Mon Mar 28 18:08:24 2011 +0100 +++ b/vendor/plugins/redmine_checkout/config/locales/en.yml Tue Mar 29 10:50:32 2011 +0100 @@ -16,9 +16,9 @@ label_protocol_plural: "Protocols" button_add_protocol: "Add Protocol" - label_access_type: 'This URL has {{type}} access.' - label_access_read_only: 'Read-Only' - label_access_read_write: "Read+Write" + label_access_type: 'You have {{type}} access to this URL.' + label_access_read_only: 'Read Only' + label_access_read_write: "Read and Write" label_access_permission: "Depending on user's permissions" label_append_path: "Append path" @@ -37,3 +37,6 @@ Leave the Checkout URL field empty to use the defined repository URL. 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." +