Revision 443:350acce374a2 vendor
| vendor/plugins/redmine_checkout/app/views/redmine_checkout_hooks/_view_repositories_show_contextual.rhtml | ||
|---|---|---|
| 17 | 17 |
<div id="clipboard_button"><%= image_tag 'paste.png', :plugin => 'redmine_checkout' %></div> |
| 18 | 18 |
</div> |
| 19 | 19 |
<% end -%> |
| 20 |
<% if default_protocol %><p><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %></p><% end %> |
|
| 21 |
|
|
| 20 |
|
|
| 21 |
<p> |
|
| 22 |
<% if User.current.logged? %> |
|
| 23 |
<% if repository.is_external? %> |
|
| 24 |
<%=l :label_access_type_all, :type => l(:label_access_read_only) %> |
|
| 25 |
<% else %> |
|
| 26 |
<% if default_protocol %><%=l :label_access_type, :type => l(default_protocol.access_label(User.current)) %><% end %> |
|
| 27 |
<% end %> |
|
| 28 |
<% else %> |
|
| 29 |
|
|
| 30 |
<% end %> |
|
| 31 |
</p> |
|
| 32 |
|
|
| 22 | 33 |
<% javascript_tag do %> |
| 23 | 34 |
var checkout_access = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{l(p.access_label(User.current))}'"}.join(', ') %>});
|
| 24 | 35 |
var checkout_commands = $H({<%= protocols.inject([]){|r,p| r << "'checkout_protocol_#{p.protocol.to_s.underscore}': '#{escape_javascript(p.full_command(checkout_path))}'"}.join(', ') %>});
|
| ... | ... | |
| 26 | 37 |
<% end %> |
| 27 | 38 |
</div> |
| 28 | 39 |
<% end%> |
| 40 |
<% if repository.is_external? %> |
|
| 41 |
<div style="clear: left"> |
|
| 42 |
</div> |
|
| 43 |
<p class="topline" style="padding-top: 1em"><%= l(:text_repository_external, :location => repository.external_url) %></p> |
|
| 44 |
<% end %> |
|
| 29 | 45 |
</div> |
| 30 | 46 |
<div style="clear: left"></div> |
| 31 | 47 |
|
| ... | ... | |
| 33 | 49 |
<%= stylesheet_link_tag 'checkout', :plugin => 'redmine_checkout' %> |
| 34 | 50 |
<%= javascript_include_tag 'checkout', :plugin => 'redmine_checkout' %> |
| 35 | 51 |
<%= (javascript_include_tag 'ZeroClipboard', :plugin => 'redmine_checkout') if Setting.checkout_use_zero_clipboard? %> |
| 36 |
<% end %> |
|
| 52 |
<% end %> |
|
| vendor/plugins/redmine_checkout/assets/stylesheets/checkout.css | ||
|---|---|---|
| 20 | 20 |
border-bottom: 1px solid #ccc; |
| 21 | 21 |
} |
| 22 | 22 |
|
| 23 |
.topline {
|
|
| 24 |
border-top: 1px solid #ccc; |
|
| 25 |
} |
|
| 26 |
|
|
| 23 | 27 |
#checkout_box {
|
| 24 | 28 |
margin: 10px 0; |
| 25 | 29 |
} |
| ... | ... | |
| 159 | 163 |
|
| 160 | 164 |
#clipboard_button img {
|
| 161 | 165 |
padding-top: 2px; |
| 162 |
} |
|
| 166 |
} |
|
| vendor/plugins/redmine_checkout/config/locales/en-GB.yml | ||
|---|---|---|
| 16 | 16 |
label_protocol_plural: "Protocols" |
| 17 | 17 |
button_add_protocol: "Add Protocol" |
| 18 | 18 |
|
| 19 |
label_access_type: 'This URL has <span id="checkout_access">{{type}}</span> access.'
|
|
| 20 |
label_access_read_only: 'Read-Only'
|
|
| 21 |
label_access_read_write: "Read+Write"
|
|
| 19 |
label_access_type: 'You have <span id="checkout_access">{{type}}</span> access to this URL.'
|
|
| 20 |
label_access_read_only: 'Read Only'
|
|
| 21 |
label_access_read_write: "Read and Write"
|
|
| 22 | 22 |
label_access_permission: "Depending on user's permissions" |
| 23 | 23 |
|
| 24 | 24 |
label_append_path: "Append path" |
| ... | ... | |
| 37 | 37 |
Leave the Checkout URL field empty to use the defined repository URL. |
| 38 | 38 |
help_moved_settings: "The settings page has been moved to {{link}}."
|
| 39 | 39 |
label_settings_location: "Administration -> Settings -> Checkout" |
| 40 |
|
|
| 41 |
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."
|
|
| vendor/plugins/redmine_checkout/config/locales/en.yml | ||
|---|---|---|
| 16 | 16 |
label_protocol_plural: "Protocols" |
| 17 | 17 |
button_add_protocol: "Add Protocol" |
| 18 | 18 |
|
| 19 |
label_access_type: 'This URL has <span id="checkout_access">{{type}}</span> access.'
|
|
| 20 |
label_access_read_only: 'Read-Only' |
|
| 21 |
label_access_read_write: "Read+Write" |
|
| 19 |
label_access_type: 'You have <span id="checkout_access">{{type}}</span> access to this URL.'
|
|
| 20 |
label_access_type_all: 'All access to this URL is <span id="checkout_access">{{type}}</span>.'
|
|
| 21 |
label_access_read_only: 'Read Only' |
|
| 22 |
label_access_read_write: "Read and Write" |
|
| 22 | 23 |
label_access_permission: "Depending on user's permissions" |
| 23 | 24 |
|
| 24 | 25 |
label_append_path: "Append path" |
| ... | ... | |
| 37 | 38 |
Leave the Checkout URL field empty to use the defined repository URL. |
| 38 | 39 |
help_moved_settings: "The settings page has been moved to {{link}}."
|
| 39 | 40 |
label_settings_location: "Administration -> Settings -> Checkout" |
| 41 |
|
|
| 42 |
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."
|
|
| 43 |
|
|
Also available in: Unified diff