Skip to content

Commit 7147051

Browse files
author
root
committed
Move HighCharts to RedmineBootstrapKit, use new assets loader method
1 parent 01b96d5 commit 7147051

File tree

8 files changed

+24
-361
lines changed

8 files changed

+24
-361
lines changed

Diff for: app/views/common/_git_hosting_js_headers.html.haml

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
- content_for :header_tags do
2-
= redmine_bootstrap_kit_load(:redmine_bootstrap_kit)
3-
= redmine_bootstrap_kit_load(:bootstrap_alerts)
4-
= redmine_bootstrap_kit_load(:bootstrap_label)
5-
= redmine_bootstrap_kit_load(:bootstrap_modals)
6-
= redmine_bootstrap_kit_load(:bootstrap_switch)
7-
= redmine_bootstrap_kit_load(:bootstrap_tables)
8-
= redmine_bootstrap_kit_load(:jquery_tag_it)
9-
= redmine_bootstrap_kit_load(:font_awesome)
2+
= bootstrap_load_base
3+
= bootstrap_load_module(:alerts)
4+
= bootstrap_load_module(:label)
5+
= bootstrap_load_module(:modals)
6+
= bootstrap_load_module(:switch)
7+
= bootstrap_load_module(:tables)
8+
= bootstrap_load_module(:tag_it)
9+
= bootstrap_load_module(:font_awesome)
1010

1111
= stylesheet_link_tag 'application', plugin: 'redmine_git_hosting'
1212
= javascript_include_tag 'application', plugin: 'redmine_git_hosting'

Diff for: app/views/common/_git_urls.html.haml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
- content_for :header_tags do
2-
= redmine_bootstrap_kit_load(:redmine_bootstrap_kit)
3-
= redmine_bootstrap_kit_load(:zero_clipboard)
2+
= bootstrap_load_base
3+
= bootstrap_load_module(:tooltip)
4+
= zero_clipboard_load_base
5+
46
= stylesheet_link_tag 'git_urls', plugin: 'redmine_git_hosting'
57
= javascript_include_tag 'application', plugin: 'redmine_git_hosting'
68

Diff for: app/views/gitolite_public_keys/_ssh_keys.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<% content_for :header_tags do %>
2-
<%= stylesheet_link_tag 'font_awesome', :plugin => 'redmine_bootstrap_kit' %>
2+
<%= bootstrap_load_module(:font_awesome) %>
33
<% end %>
44

55
<table class="list">

Diff for: app/views/projects/settings/_repositories.html.haml

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
%p= link_to l(:label_repository_new), new_project_repository_path(@project), class: 'icon icon-add'
5454

5555
- content_for :header_tags do
56-
= stylesheet_link_tag 'bootstrap/bootstrap_custom', plugin: 'redmine_bootstrap_kit'
57-
= stylesheet_link_tag 'bootstrap/bootstrap_label', plugin: 'redmine_bootstrap_kit'
58-
= stylesheet_link_tag 'bootstrap/bootstrap_tables', plugin: 'redmine_bootstrap_kit'
59-
= stylesheet_link_tag 'font_awesome', plugin: 'redmine_bootstrap_kit'
56+
= bootstrap_load_base
57+
= bootstrap_load_module(:label)
58+
= bootstrap_load_module(:tables)
59+
= bootstrap_load_module(:font_awesome)

Diff for: app/views/repositories/_download_revision.html.haml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@
2121
:class => 'button'
2222

2323
- content_for :header_tags do
24-
= stylesheet_link_tag 'font_awesome', :plugin => 'redmine_bootstrap_kit'
24+
= bootstrap_load_module(:font_awesome)

Diff for: app/views/repositories/stats.html.erb

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
<h2><%= l(:label_statistics) %></h2>
22

33
<% content_for :header_tags do %>
4-
<%= stylesheet_link_tag 'application', :plugin => 'redmine_git_hosting' %>
5-
<%= stylesheet_link_tag 'bootstrap/bootstrap_custom', :plugin => 'redmine_bootstrap_kit' %>
6-
<%= javascript_include_tag 'highcharts/highcharts', :plugin => 'redmine_git_hosting' %>
7-
<%= javascript_include_tag 'highcharts/modules/drilldown', :plugin => 'redmine_git_hosting' %>
8-
<%= javascript_include_tag 'set_highcharts', :plugin => 'redmine_git_hosting' %>
4+
<%= bootstrap_load_base %>
5+
<%= high_charts_load_base %>
6+
<%= high_charts_load_module(:drilldown) %>
7+
8+
<%= stylesheet_link_tag 'application', plugin: 'redmine_git_hosting' %>
9+
<%= javascript_include_tag 'set_highcharts', plugin: 'redmine_git_hosting' %>
910
<% end %>
1011

1112
<div id="statistics-tabs">

Diff for: assets/javascripts/highcharts/highcharts.js

-324
This file was deleted.

Diff for: assets/javascripts/highcharts/modules/drilldown.js

-16
This file was deleted.

0 commit comments

Comments
 (0)