hubstats 0.3.17 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +0 -1
- data/CHANGELOG.markdown +10 -0
- data/MIT-LICENSE +3 -1
- data/README.md +2 -2
- data/app/assets/javascripts/hubstats/application.js +80 -24
- data/app/assets/javascripts/hubstats/pull_requests.js +35 -3
- data/app/assets/javascripts/hubstats/select2.js +8 -1
- data/app/assets/javascripts/hubstats/users.js +17 -5
- data/app/assets/stylesheets/hubstats/application.css +39 -1
- data/app/assets/stylesheets/hubstats/bootstrap.css +0 -6
- data/app/assets/stylesheets/hubstats/deploys.css +2 -0
- data/app/assets/stylesheets/hubstats/label.css +2 -0
- data/app/assets/stylesheets/hubstats/octicons.css.erb +2 -0
- data/app/assets/stylesheets/hubstats/pull_requests.css +2 -0
- data/app/controllers/hubstats/application_controller.rb +12 -4
- data/app/controllers/hubstats/base_controller.rb +8 -0
- data/app/controllers/hubstats/deploys_controller.rb +31 -8
- data/app/controllers/hubstats/events_controller.rb +11 -0
- data/app/controllers/hubstats/pull_requests_controller.rb +9 -1
- data/app/controllers/hubstats/repos_controller.rb +17 -3
- data/app/controllers/hubstats/users_controller.rb +15 -0
- data/app/models/hubstats/comment.rb +13 -5
- data/app/models/hubstats/deploy.rb +29 -6
- data/app/models/hubstats/label.rb +16 -4
- data/app/models/hubstats/pull_request.rb +44 -2
- data/app/models/hubstats/repo.rb +48 -4
- data/app/models/hubstats/user.rb +130 -32
- data/app/views/hubstats/deploys/index.html.erb +1 -3
- data/app/views/hubstats/deploys/show.html.erb +7 -2
- data/app/views/hubstats/partials/_comment-condensed.html.erb +3 -0
- data/app/views/hubstats/partials/_comment.html.erb +3 -0
- data/app/views/hubstats/partials/_deploy-condensed.html.erb +2 -2
- data/app/views/hubstats/partials/_deploy.html.erb +1 -1
- data/app/views/hubstats/partials/_footer.html.erb +22 -0
- data/app/views/hubstats/partials/_header.html.erb +18 -10
- data/app/views/hubstats/partials/_pull-condensed.html.erb +2 -0
- data/app/views/hubstats/partials/_pull.html.erb +2 -0
- data/app/views/hubstats/partials/_quick_addition_stats.html.erb +2 -0
- data/app/views/hubstats/partials/_quick_stats.html.erb +1 -0
- data/app/views/hubstats/partials/_repo.html.erb +2 -3
- data/app/views/hubstats/partials/_user-condensed.html.erb +4 -0
- data/app/views/hubstats/partials/_user.html.erb +4 -2
- data/app/views/hubstats/pull_requests/index.html.erb +6 -1
- data/app/views/hubstats/pull_requests/show.html.erb +5 -0
- data/app/views/hubstats/repos/dashboard.html.erb +6 -4
- data/app/views/hubstats/repos/show.html.erb +6 -1
- data/app/views/hubstats/tables/_comments-condensed.html.erb +2 -1
- data/app/views/hubstats/tables/_comments.html.erb +2 -1
- data/app/views/hubstats/tables/_deploys-condensed.html.erb +1 -0
- data/app/views/hubstats/tables/_deploys.html.erb +1 -0
- data/app/views/hubstats/tables/_grouped_deploys.html.erb +1 -0
- data/app/views/hubstats/tables/_grouped_pulls.html.erb +1 -0
- data/app/views/hubstats/tables/_pulls-condensed.html.erb +1 -0
- data/app/views/hubstats/tables/_pulls.html.erb +1 -0
- data/app/views/hubstats/tables/_repos-condensed.html.erb +1 -0
- data/app/views/hubstats/tables/_repos.html.erb +1 -0
- data/app/views/hubstats/tables/_users-condensed.html.erb +1 -0
- data/app/views/hubstats/tables/_users.html.erb +1 -1
- data/app/views/hubstats/users/index.html.erb +3 -2
- data/app/views/hubstats/users/show.html.erb +7 -1
- data/app/views/layouts/hubstats/application.html.erb +4 -4
- data/config/routes.rb +2 -1
- data/db/seeds.rb +41 -0
- data/hubstats.gemspec +1 -0
- data/lib/generators/hubstats/install_generator.rb +2 -1
- data/lib/hub_helper.rb +18 -0
- data/lib/hubstats.rb +0 -30
- data/lib/hubstats/events_handler.rb +25 -7
- data/lib/hubstats/github_api.rb +43 -15
- data/lib/hubstats/version.rb +1 -1
- data/lib/tasks/hubstats_tasks.rake +1 -0
- data/lib/tasks/populate_task.rake +2 -1
- data/spec/controllers/hubstats/deploys_controller_spec.rb +0 -3
- data/spec/controllers/hubstats/pull_requests_controller_spec.rb +3 -4
- data/spec/controllers/hubstats/repos_controller_spec.rb +4 -5
- data/spec/factories/comment.rb +2 -1
- data/spec/factories/deploys.rb +1 -0
- data/spec/factories/pull_requests.rb +1 -0
- data/spec/factories/repo.rb +1 -0
- data/spec/factories/users.rb +2 -1
- data/spec/lib/hubstats/github_api_spec.rb +5 -5
- metadata +41 -26
- data/date_range +0 -0
@@ -31,10 +31,8 @@
|
|
31
31
|
<option value="repo">Repo</option>
|
32
32
|
</select>
|
33
33
|
|
34
|
-
<!-- Show all of the deploys -->
|
34
|
+
<!-- Show and paginate all of the deploys -->
|
35
35
|
<%= render 'hubstats/tables/grouped_deploys' %>
|
36
|
-
|
37
|
-
<!--Contains the pagination so that only 15 deploys show per page-->
|
38
36
|
<div class="text-center">
|
39
37
|
<%= will_paginate @deploy, renderer: BootstrapPagination::Rails %>
|
40
38
|
</div>
|
@@ -1,19 +1,24 @@
|
|
1
1
|
<div class="container" id="deploy">
|
2
2
|
<div class="row">
|
3
|
-
|
3
|
+
|
4
|
+
<!-- Title with the repo name and git revision sha -->
|
4
5
|
<h1 class="title text-center">
|
5
6
|
<%= link_to @deploy.repo.name.titleize, repo_path(@deploy.repo.name) %> /
|
6
7
|
<%= @deploy.git_revision.titleize %>
|
7
8
|
</h1>
|
9
|
+
|
8
10
|
<br>
|
11
|
+
|
12
|
+
<!-- Show the date/time that the deploy was deployed -->
|
9
13
|
<h4 class="text-center">
|
10
14
|
Deployed at: <%= @deploy.deployed_at %>
|
11
15
|
</h4>
|
16
|
+
|
12
17
|
<!--Show the number of pull requests, comments, and net additions-->
|
13
18
|
<%= render "hubstats/partials/quick_stats" %>
|
14
19
|
</div>
|
15
20
|
|
16
|
-
<!--Show all of the pull requests in a "condensed"view -->
|
21
|
+
<!--Show all of the pull requests in a "condensed" view -->
|
17
22
|
<div class="col col-lg-8 col-lg-offset-2">
|
18
23
|
<div class="row">
|
19
24
|
<h4> Pull Requests </h4>
|
@@ -1,8 +1,11 @@
|
|
1
1
|
<div class="row single-comment">
|
2
|
+
|
3
|
+
<!-- Show the avatar of the user who made the PR -->
|
2
4
|
<div class="user-image-small col-lg-1 col-md-1 col-sm-2 col-xs-2">
|
3
5
|
<img src= <%= comment.user.avatar_url%> alt= <%= comment.user.login %> >
|
4
6
|
</div>
|
5
7
|
|
8
|
+
<!-- Show the comment, who it was by, and when it was made -->
|
6
9
|
<div class="comment-info col-lg-10 col-md-10 col-sm-8 col-xs-8">
|
7
10
|
<%= link_to comment.user.login, user_path(comment.user) %> commented
|
8
11
|
<%= "#{time_ago_in_words(comment.created_at)} ago "%> <br>
|
@@ -1,8 +1,11 @@
|
|
1
1
|
<div class="row single-comment">
|
2
|
+
|
3
|
+
<!-- Show the avatar of the user who made the PR -->
|
2
4
|
<div class="user-image col-lg-1 col-md-1 col-sm-1">
|
3
5
|
<img src= <%= comment.user.avatar_url%> alt= <%= comment.user.login %> >
|
4
6
|
</div>
|
5
7
|
|
8
|
+
<!-- Show the comment, who it was by, and when it was made -->
|
6
9
|
<div class="comment-info col-lg-10 col-md-10 col-sm-10">
|
7
10
|
<%= link_to comment.user.login, user_path(comment.user) %> commented
|
8
11
|
<%= "#{time_ago_in_words(comment.created_at)} ago "%> <br>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% end %>
|
6
6
|
</div>
|
7
7
|
|
8
|
-
<!-- Show the git revision and
|
8
|
+
<!-- Show the repo name, git revision, and who deployed it when -->
|
9
9
|
<div class="deploy-info col-lg-6 col-md-6 col-sm-6 col-xs-5">
|
10
10
|
<h4>
|
11
11
|
<%= link_to deploy.repo.name, repo_path(deploy.repo.name) %> /
|
@@ -20,7 +20,7 @@
|
|
20
20
|
<%= "#{time_ago_in_words(deploy.deployed_at)} ago "%>
|
21
21
|
</div>
|
22
22
|
|
23
|
-
<!-- Show
|
23
|
+
<!-- Show a list of links with all the pull requests in the deploy -->
|
24
24
|
<div class="col-lg-5 col-md-5 col-sm-5">
|
25
25
|
<div class="deploy-right">
|
26
26
|
<% deploy.pull_requests.each_with_index do |pull_request, index| %>
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<% end %>
|
6
6
|
</div>
|
7
7
|
|
8
|
-
<!-- Show the repo name, git revision, and who deployed it when
|
8
|
+
<!-- Show the repo name, git revision, and who deployed it when -->
|
9
9
|
<div class="deploy-info col-lg-6 col-md-6 col-sm-6">
|
10
10
|
<h4>
|
11
11
|
<%= link_to deploy.repo.name, repo_path(deploy.repo.name) %> /
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<div class="container" id="footer">
|
2
|
+
<hr>
|
3
|
+
<div class="row">
|
4
|
+
<div class="col-lg-3 col-md-3 col-sm-3">
|
5
|
+
<div class="footer-text">
|
6
|
+
© 2015 Sport Ngin
|
7
|
+
</div>
|
8
|
+
</div>
|
9
|
+
<div class="col-lg-6 col-md-6 col-sm-6">
|
10
|
+
<div class="footer-main-text">
|
11
|
+
Hubstats
|
12
|
+
<br>
|
13
|
+
<br>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
<div class="col-lg-3 col-md-3 col-sm-3">
|
17
|
+
<div class="footer-text" align="right">
|
18
|
+
<%= link_to("Source Code", "https://github.com/sportngin/hubstats") %>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
</div>
|
@@ -2,6 +2,7 @@
|
|
2
2
|
<nav class="navbar navbar-default" role="navigation">
|
3
3
|
<div class="container-fluid">
|
4
4
|
|
5
|
+
<!-- Show the Hubstats name in navbar along with a link to the PR page -->
|
5
6
|
<div class="navbar-header">
|
6
7
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
7
8
|
<span class="sr-only">Toggle navigation</span>
|
@@ -9,25 +10,32 @@
|
|
9
10
|
<span class="icon-bar"></span>
|
10
11
|
<span class="icon-bar"></span>
|
11
12
|
</button>
|
12
|
-
<%= link_to "Hubstats", root_path
|
13
|
+
<%= link_to "Hubstats", root_path(:state => "open", :label => "deployable", :group => "repo"),
|
14
|
+
{:data => {:repo_path => repos_path(), :user_path => users_path()}, :class => "navbar-brand title", :id =>"brand"}%>
|
13
15
|
</div>
|
14
16
|
|
17
|
+
<!-- Show all of the pages in tab form -->
|
15
18
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
16
19
|
<ul class="nav navbar-nav navbar-right">
|
17
20
|
<li class="<%='navbar-active' if params[:controller] == 'hubstats/deploys'%>">
|
18
|
-
|
21
|
+
<%= link_to "Deployments", deploys_path%></li>
|
19
22
|
<li class="<%='navbar-active' if params[:controller] == 'hubstats/repos'%>">
|
20
|
-
|
23
|
+
<%= link_to "Metrics", metrics_path%></li>
|
21
24
|
<li class="<%='navbar-active' if params[:controller] == 'hubstats/pull_requests'%>">
|
22
|
-
|
25
|
+
<%= link_to "Pull Requests", root_path%></li>
|
23
26
|
<li class="<%='navbar-active' if params[:controller] == 'hubstats/users'%>">
|
24
|
-
|
27
|
+
<%= link_to "Users", users_path%></li>
|
25
28
|
<li>
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
29
|
+
<!-- Show the datepicker -->
|
30
|
+
<div class="input-daterange input-group" id="datepicker">
|
31
|
+
<input type="text" class="input-small form-control" name="start" placeholder="Start Date"/>
|
32
|
+
<span class="input-group-addon">to</span>
|
33
|
+
<input type="text" class="input-small form-control" name="end" placeholder="End Date"/>
|
34
|
+
</div>
|
35
|
+
</li>
|
36
|
+
<li>
|
37
|
+
<!-- Show the apply button for the datepicker -->
|
38
|
+
<button type="button" class="btn apply btn-default" id="submitDateRange">Apply</button>
|
31
39
|
</li>
|
32
40
|
</ul>
|
33
41
|
</div>
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<img src= <%= pull.user.avatar_url%> alt= <%= pull.user.login %> >
|
4
4
|
</div>
|
5
5
|
|
6
|
+
<!-- Show the repo name and the specific pull request name and who made it when -->
|
6
7
|
<div class="pull-info col-lg-9 col-md-9 col-sm-9 col-xs-8">
|
7
8
|
<h4>
|
8
9
|
<%= link_to pull.repo.name, repo_path(pull.repo.name) %> /
|
@@ -18,6 +19,7 @@
|
|
18
19
|
<% end %>
|
19
20
|
</div>
|
20
21
|
|
22
|
+
<!-- Show the pull request number and a link to the github PR -->
|
21
23
|
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-2" >
|
22
24
|
<div class="pull-right">
|
23
25
|
<%= pull.number %>
|
@@ -3,6 +3,7 @@
|
|
3
3
|
<img src= <%= pull.user.avatar_url%> alt= <%= pull.user.login %> >
|
4
4
|
</div>
|
5
5
|
|
6
|
+
<!-- Show the repo name and the title of the PR, labels, and who made it when -->
|
6
7
|
<div class="pull-info col-lg-9 col-md-9 col-sm-9">
|
7
8
|
<h4>
|
8
9
|
<%= link_to pull.repo.name, repo_path(pull.repo.name) %> /
|
@@ -22,6 +23,7 @@
|
|
22
23
|
<% end %>
|
23
24
|
</div>
|
24
25
|
|
26
|
+
<!-- Show the PR number and a link to the github PR -->
|
25
27
|
<div class="col-lg-2 col-md-2 col-sm-2" >
|
26
28
|
<div class="pull-right">
|
27
29
|
<%= pull.number %>
|
@@ -1,4 +1,6 @@
|
|
1
|
+
<!-- All of the options for showing any stats that have to do with additions -->
|
1
2
|
<div class="col-lg-<%= (12-(@stats_additions.length)*2)/2 %>"></div>
|
3
|
+
|
2
4
|
<% if @stats_additions.has_key? :net_additions %>
|
3
5
|
<div class="col col-lg-2 col-md-4 col-sm-4 col-xs-4 text-center">
|
4
6
|
<h1> <%= @stats_additions[:net_additions] %> </h1>
|
@@ -1,8 +1,6 @@
|
|
1
1
|
<div class="row single-repo">
|
2
|
-
<!-- <div class="repo-image-small col-lg-1 col-md-1 col-sm-1 col-xs-1" >
|
3
|
-
<span class="repo-octicon-small mega-octicon octicon-repo"></span>
|
4
|
-
</div> -->
|
5
2
|
|
3
|
+
<!-- Show the repo name and the date that it was last updated, with a link to the github repo -->
|
6
4
|
<div class="repo-info col-lg-2 col-md-2 col-sm-2 col-xs-8">
|
7
5
|
<h4>
|
8
6
|
<%= link_to repo.name, repo_path(repo)%>
|
@@ -17,6 +15,7 @@
|
|
17
15
|
</h4>
|
18
16
|
</div>
|
19
17
|
|
18
|
+
<!-- Show all of the stats for the individual repo -->
|
20
19
|
<div class="col-lg-2 col-md-2 col-sm-2">
|
21
20
|
<div class="text-center">
|
22
21
|
<span class="text-large"><%= repo.deploy_count %></span>
|
@@ -1,4 +1,6 @@
|
|
1
1
|
<div class="row single-user">
|
2
|
+
|
3
|
+
<!-- Show the avatar of the github user and the user's username -->
|
2
4
|
<div class="user-image-small col-lg-1 col-md-1 col-sm-1 col-xs-2" >
|
3
5
|
<img src= <%= user.avatar_url%> alt= <%= user.login %> >
|
4
6
|
</div>
|
@@ -7,6 +9,8 @@
|
|
7
9
|
<%= link_to user.login, user_path(user) %>
|
8
10
|
</h4>
|
9
11
|
</div>
|
12
|
+
|
13
|
+
<!-- Show the number of pull requests and comments -->
|
10
14
|
<div class="col-lg-3 col-lg-offset-1 col-md-3 col-sm-3 col-xs-3">
|
11
15
|
<div class="pull-right">
|
12
16
|
<span class="text-large"><%= user.pull_request_count %></span>
|
@@ -1,4 +1,6 @@
|
|
1
1
|
<div class="row single-user">
|
2
|
+
|
3
|
+
<!-- Show the avatar of the githuber user and the user's username -->
|
2
4
|
<div class="user-image col-lg-1 col-md-1 col-sm-1" >
|
3
5
|
<img src= <%= user.avatar_url%> alt= <%= user.login %> >
|
4
6
|
</div>
|
@@ -14,7 +16,8 @@
|
|
14
16
|
</a>
|
15
17
|
</h4>
|
16
18
|
</div>
|
17
|
-
|
19
|
+
|
20
|
+
<!-- Show the basic stats for this user for this user -->
|
18
21
|
<div class="col-lg-2 col-md-2 col-sm-2">
|
19
22
|
<div class="text-center">
|
20
23
|
<span class="text-large"><%= user.deploy_count %></span>
|
@@ -33,7 +36,6 @@
|
|
33
36
|
<span class="mega-octicon octicon-comment"></span>
|
34
37
|
</div>
|
35
38
|
</div>
|
36
|
-
<!-- Show the net additions using the average_additions and the average_deletions -->
|
37
39
|
<div class="col-lg-2 col-md-2 col-sm-2">
|
38
40
|
<div class="text-center">
|
39
41
|
<span class="text-large"><%= user.additions - user.deletions %></span>
|
@@ -1,5 +1,7 @@
|
|
1
1
|
<div class="container" %>
|
2
2
|
<div class="row" %>
|
3
|
+
|
4
|
+
<!-- Allow for filtering by repository or user -->
|
3
5
|
<div class="col col-lg-3 col-md-3 col-sm-3">
|
4
6
|
<div class="form-group">
|
5
7
|
<input class="select2-control" id="repos">
|
@@ -24,6 +26,7 @@
|
|
24
26
|
</div>
|
25
27
|
</div>
|
26
28
|
|
29
|
+
<!-- Allow viewing pull requests by all, open, or closed PRs only -->
|
27
30
|
<div class="col col-lg-9 col-md-9 col-sm-9">
|
28
31
|
<div id="state-group" class="btn-group" data-toggle="buttons">
|
29
32
|
<label class="btn btn-default" id="all">
|
@@ -37,6 +40,7 @@
|
|
37
40
|
</label>
|
38
41
|
</div>
|
39
42
|
|
43
|
+
<!-- Allow viewing pull requests by newest first or oldest first -->
|
40
44
|
<div id="sort-group" class="btn-group" data-toggle="buttons">
|
41
45
|
<label class="btn btn-default" id="desc">
|
42
46
|
<input type="radio" name="sort"> Newest
|
@@ -46,14 +50,15 @@
|
|
46
50
|
</label>
|
47
51
|
</div>
|
48
52
|
|
53
|
+
<!-- Allow to group by repository and user -->
|
49
54
|
<select id="group-by" class="form-control pull-right" style="width: 100px; display: inline; ">
|
50
55
|
<option value="">Group By</option>
|
51
56
|
<option value="user">User</option>
|
52
57
|
<option value="repo">Repo</option>
|
53
58
|
</select>
|
54
59
|
|
60
|
+
<!-- Show and paginate all of the pull requests -->
|
55
61
|
<%= render 'hubstats/tables/grouped_pulls' %>
|
56
|
-
|
57
62
|
<div class="text-center">
|
58
63
|
<%= will_paginate @pull_requests, renderer: BootstrapPagination::Rails %>
|
59
64
|
</div>
|
@@ -1,11 +1,15 @@
|
|
1
1
|
<div class="container" id="repo">
|
2
2
|
<div class="row">
|
3
|
+
|
4
|
+
<!-- Title with the repo name and PR title -->
|
3
5
|
<h1 class="title text-center">
|
4
6
|
<%= link_to @repo.name.titleize, repo_path %> /
|
5
7
|
<a href=<%=@pull_request.html_url%>>
|
6
8
|
<%= @pull_request.title.titleize %>
|
7
9
|
</a>
|
8
10
|
</h1>
|
11
|
+
|
12
|
+
<!-- Show the date/time that the deploy was deployed -->
|
9
13
|
<%= render 'hubstats/partials/quick_stats' %>
|
10
14
|
</div>
|
11
15
|
|
@@ -19,6 +23,7 @@
|
|
19
23
|
</div>
|
20
24
|
</div>
|
21
25
|
|
26
|
+
<!--Show all of the comments in a "condensed" view -->
|
22
27
|
<div class="col col-lg-8 col-lg-offset-2">
|
23
28
|
<div class="row">
|
24
29
|
<h4> Comments </h4>
|
@@ -1,5 +1,7 @@
|
|
1
1
|
<div class="container" id="splash">
|
2
2
|
<div class="row text-center">
|
3
|
+
|
4
|
+
<!-- Show all of the statistics about all of the repositories and users within time frame -->
|
3
5
|
<%= render 'hubstats/partials/quick_stats' %>
|
4
6
|
<br>
|
5
7
|
<br>
|
@@ -10,14 +12,14 @@
|
|
10
12
|
<%= render 'hubstats/partials/quick_addition_stats' %>
|
11
13
|
</div>
|
12
14
|
|
15
|
+
<!-- Show all of the repositories with their individual stats -->
|
13
16
|
<div class="row">
|
14
17
|
<div class="col col-lg-12">
|
15
18
|
<h3> Repositories </h3>
|
16
19
|
<%= render 'hubstats/tables/repos' %>
|
20
|
+
<div class="text-center">
|
21
|
+
<%= will_paginate @repo, renderer: BootstrapPagination::Rails %>
|
22
|
+
</div>
|
17
23
|
</div>
|
18
24
|
</div>
|
19
25
|
</div>
|
20
|
-
|
21
|
-
<div class="text-center">
|
22
|
-
<%= will_paginate @repo, renderer: BootstrapPagination::Rails %>
|
23
|
-
</div>
|
@@ -1,6 +1,10 @@
|
|
1
1
|
<div class="container" id="repo">
|
2
2
|
<div class="row">
|
3
|
+
|
4
|
+
<!-- Title with the repo name -->
|
3
5
|
<h1 class="title text-center"><a href=<%=@repo.html_url%>> <%= @repo.name.titleize %> </a></h1>
|
6
|
+
|
7
|
+
<!-- Show all of the stats about the repository -->
|
4
8
|
<%= render 'hubstats/partials/quick_stats' %>
|
5
9
|
<br>
|
6
10
|
<br>
|
@@ -13,6 +17,7 @@
|
|
13
17
|
|
14
18
|
<div class="row">
|
15
19
|
|
20
|
+
<!-- Show all of the merged pull requests in a "condensed" view -->
|
16
21
|
<div class="col col-lg-6">
|
17
22
|
<h3> Pull Requests</h3>
|
18
23
|
<%= render 'hubstats/tables/pulls-condensed'%>
|
@@ -21,7 +26,7 @@
|
|
21
26
|
<% end %>
|
22
27
|
</div>
|
23
28
|
|
24
|
-
<!-- Show all of the deploys
|
29
|
+
<!-- Show all of the deploys in a "condensed" view -->
|
25
30
|
<div class="col col-lg-6">
|
26
31
|
<h3> Deployments </h3>
|
27
32
|
<%= render "hubstats/tables/deploys-condensed" %>
|
@@ -1,7 +1,8 @@
|
|
1
|
+
<!-- Show the comments or say there are no comments -->
|
1
2
|
<% if @comments.length > 0 %>
|
2
3
|
<div class="comments">
|
3
4
|
<%= render partial: 'hubstats/partials/comment-condensed', collection: @comments, as: :comment %>
|
4
5
|
</div>
|
5
6
|
<% else %>
|
6
7
|
<p> No comments to show </p>
|
7
|
-
<% end %>
|
8
|
+
<% end %>
|
@@ -1,7 +1,8 @@
|
|
1
|
+
<!-- Show the comments or say there are no comments -->
|
1
2
|
<% if @comments.length > 0 %>
|
2
3
|
<div class="comments">
|
3
4
|
<%= render partial: 'hubstats/partials/comment', collection: @comments, as: :comment %>
|
4
5
|
</div>
|
5
6
|
<% else %>
|
6
7
|
<p> No comments to show </p>
|
7
|
-
<% end %>
|
8
|
+
<% end %>
|