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,49 @@
|
|||
- report = RepositoryCommitsStats.new(repository)
|
||||
|
||||
#chart_commits_per_month style='height: 300px; width: 47%; margin: 10px; float: left;'
|
||||
#chart_commits_per_day style='height: 300px; width: 47%; margin: 10px; float: left;'
|
||||
|
||||
.clear-both style='margin: 10px;'
|
||||
|
||||
#chart_commits_per_hour style = 'height: 500px; width: 47%; margin: 10px; float: left;'
|
||||
#chart_commits_per_weekday style= 'height: 300px; width: 47%; margin: 10px; float: left;'
|
||||
|
||||
#chart_commits_per_weekday style='margin-top: 20px;'
|
||||
|
||||
javascript:
|
||||
var chart_commits_per_month = new Object();
|
||||
chart_commits_per_month.label = "#{l(:label_commits_per_month)}";
|
||||
chart_commits_per_month.label_y_axis = "#{l(:label_commits_number)}";
|
||||
chart_commits_per_month.target = '#chart_commits_per_month';
|
||||
chart_commits_per_month.categories = #{report.commits_per_month[:categories].to_json.html_safe};
|
||||
chart_commits_per_month.series = #{report.commits_per_month[:series].to_json.html_safe};
|
||||
|
||||
var chart_commits_per_day = new Object();
|
||||
chart_commits_per_day.label = "#{l(:label_commits_per_day)}";
|
||||
chart_commits_per_day.label_y_axis = "#{l(:label_commits_number)}";
|
||||
chart_commits_per_day.target = '#chart_commits_per_day';
|
||||
chart_commits_per_day.categories = #{report.commits_per_day[:categories].to_json.html_safe};
|
||||
chart_commits_per_day.series = #{report.commits_per_day[:series].to_json.html_safe};
|
||||
chart_commits_per_day.legend = {
|
||||
layout: 'vertical',
|
||||
align: 'left',
|
||||
verticalAlign: 'top',
|
||||
x: 50,
|
||||
y: 50,
|
||||
floating: true,
|
||||
borderWidth: 1,
|
||||
backgroundColor: '#fff'
|
||||
};
|
||||
|
||||
var chart_commits_per_hour = new Object();
|
||||
chart_commits_per_hour.label = "#{l(:label_commits_per_hour)}";
|
||||
chart_commits_per_hour.label_y_axis = "#{l(:label_hour)}";
|
||||
chart_commits_per_hour.label_x_axis = "#{l(:label_commits_number)}";
|
||||
chart_commits_per_hour.target = '#chart_commits_per_hour';
|
||||
chart_commits_per_hour.categories = #{report.commits_per_hours[:categories].to_json.html_safe};
|
||||
chart_commits_per_hour.series = #{report.commits_per_hours[:series].to_json.html_safe};
|
||||
|
||||
var chart_commits_per_weekday = new Object();
|
||||
chart_commits_per_weekday.label = "#{l(:label_commits_per_weekday)}";
|
||||
chart_commits_per_weekday.target = '#chart_commits_per_weekday';
|
||||
chart_commits_per_weekday.series = #{report.commits_per_weekday.to_json.html_safe};
|
|
@ -0,0 +1,34 @@
|
|||
- report = RepositoryContributorsStats.new(repository)
|
||||
|
||||
ul.thumbnails
|
||||
- @author_charts = []
|
||||
- report.commits_per_author.each do |commits_data|
|
||||
- idx = report.commits_per_author.index(commits_data)
|
||||
- @author_charts.push("chart_commits_per_author_#{idx}")
|
||||
javascript:
|
||||
var chart_commits_per_author_#{idx} = new Object();
|
||||
chart_commits_per_author_#{idx}.label = "";
|
||||
chart_commits_per_author_#{idx}.label_y_axis = "#{l(:label_commits_number)}";
|
||||
chart_commits_per_author_#{idx}.target = '#chart_commits_per_author_#{idx}';
|
||||
chart_commits_per_author_#{idx}.categories = #{commits_data[:categories].to_json.html_safe};
|
||||
chart_commits_per_author_#{idx}.series = #{commits_data[:series].to_json.html_safe};
|
||||
chart_commits_per_author_#{idx}.legend = {};
|
||||
|
||||
li.span6
|
||||
.thumbnail id="contributor-#{idx}"
|
||||
h4
|
||||
= commits_data[:author_name]
|
||||
'
|
||||
small = commits_data[:author_mail]
|
||||
|
||||
h5 = commits_data[:total_commits]
|
||||
div id="chart_commits_per_author_#{idx}" style='height: 200px; width: 100%'
|
||||
|
||||
#chart_commits_per_author
|
||||
javascript:
|
||||
var chart_commits_per_author = new Object();
|
||||
chart_commits_per_author.label = "#{l(:label_commits_per_author)}";
|
||||
chart_commits_per_author.label_y_axis = "#{l(:label_commits_number)}";
|
||||
chart_commits_per_author.target = '#chart_commits_per_author';
|
||||
chart_commits_per_author.categories = #{report.commits_per_author_global[:categories].to_json.html_safe};
|
||||
chart_commits_per_author.series = #{report.commits_per_author_global[:series].to_json.html_safe};
|
|
@ -0,0 +1,8 @@
|
|||
- report = RepositoryGlobalStats.new(repository).build
|
||||
|
||||
ul.thumbnails
|
||||
- report.each do |key, value|
|
||||
li.span4
|
||||
.thumbnail
|
||||
.title = key
|
||||
.value = value
|
Loading…
Add table
Add a link
Reference in a new issue