0010-Use-repository-detail-view-hook-for-displaying-the-u.patch
| app/views/repositories/_repository_detail.html.erb | ||
|---|---|---|
| 1 |
<% interface = Object.const_get("#{repository.class.name.demodulize}Creator") rescue nil %>
|
|
| 2 |
<% if repository.created_with_scm && interface && interface.enabled? && interface.options['url'].present? %> |
|
| 3 |
<% name = interface.repository_name(repository.root_url) %> |
|
| 4 |
<% res_url = (name ? interface.external_url(name) : repository.url) %> |
|
| 5 |
<% else %> |
|
| 6 |
<% res_url = repository.url %> |
|
| 7 |
<% end %> |
|
| 8 |
<div class="autoscroll"> |
|
| 9 |
<%= l(:text_repository_url) %>: <%= link_to res_url,res_url, :target => "_blank" %> |
|
| 10 |
</div> |
|
| 11 | ||
| config/locales/de.yml | ||
|---|---|---|
| 7 | 7 | |
| 8 | 8 |
text_cannot_be_changed_later: Kann später nicht mehr geändert werden. |
| 9 | 9 |
text_cannot_be_used_redmine_auth: Die Authentifizierung über Redmine kann mit diesem Repository Namen nicht verwendet werden. |
| 10 |
text_repository_url: Repository URL für Checkout oder Clone |
|
| 10 | 11 | |
| 11 | 12 |
activerecord: |
| 12 | 13 |
errors: |
| config/locales/en.yml | ||
|---|---|---|
| 10 | 10 |
text_scm_creator_not_configured_warning: SCM Creator installed but not configured. |
| 11 | 11 |
text_scm_repository_created_by_scm: The repository on the file system was created especially for Redmine. By deleting its Redmine entry you may make it useless. |
| 12 | 12 |
text_scm_repository_destroy_confirmation: Do you want to remove the repository from the file system as well? |
| 13 |
text_repository_url: Repository URL for checkout or clone |
|
| 13 | 14 | |
| 14 | 15 |
activerecord: |
| 15 | 16 |
errors: |
| lib/scm_hook.rb | ||
|---|---|---|
| 40 | 40 |
end |
| 41 | 41 | |
| 42 | 42 |
end |
| 43 | ||
| 44 |
class ScmRepositoryDetailHook < Redmine::Hook::ViewListener |
|
| 45 | ||
| 46 |
render_on :view_repositories_show_contextual, :partial => 'repositories/repository_detail' |
|
| 47 | ||
| 48 |
end |
|
| 49 | ||
| 43 |
- |
|