Añade plugin Redmine Git Hosting 4.0.2
This commit is contained in:
parent
472cb1ea76
commit
bdd66d941f
494 changed files with 36768 additions and 0 deletions
|
@ -0,0 +1,12 @@
|
|||
- content_for :header_tags do
|
||||
= bootstrap_load_base
|
||||
= bootstrap_load_module(:alerts)
|
||||
= bootstrap_load_module(:label)
|
||||
= bootstrap_load_module(:modals)
|
||||
= bootstrap_load_module(:tables)
|
||||
= bootstrap_load_module(:sortable)
|
||||
|
||||
= stylesheet_link_tag 'application', plugin: 'redmine_git_hosting'
|
||||
= javascript_include_tag 'application', plugin: 'redmine_git_hosting'
|
||||
|
||||
#modal-box data-label-save="#{l(:button_save)}" data-label-cancel="#{l(:button_cancel)}" data-label-ok="#{l(:button_ok)}"
|
|
@ -0,0 +1,21 @@
|
|||
- content_for :header_tags do
|
||||
= bootstrap_load_module(:tooltip)
|
||||
= additionals_library_load(:clipboardjs)
|
||||
|
||||
= stylesheet_link_tag 'git_urls', plugin: 'redmine_git_hosting'
|
||||
= javascript_include_tag 'git_urls', plugin: 'redmine_git_hosting'
|
||||
|
||||
javascript:
|
||||
$(document).ready(function() { setFirstGitUrl('.git_url_list'); setGitUrls('.git_url'); });
|
||||
|
||||
- repositories = Array.wrap(repository) unless repositories
|
||||
- if repositories.map(&:available_urls_sorted).reject { |h| h.empty? }.any?
|
||||
- repositories.sort_by { |r| r.is_default ? 0 : 1 }.each do |repository|
|
||||
- next if repository.available_urls_sorted.empty?
|
||||
- present repository do |p|
|
||||
.repository-urls
|
||||
= p.link_to_repository if repositories.count > 1
|
||||
= p.git_urls_box
|
||||
|
||||
- else
|
||||
#git_url_box = l(:label_repository_access_not_configured)
|
Loading…
Add table
Add a link
Reference in a new issue