libdolt 0.17.1 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/libdolt/version.rb +1 -1
- data/views/404.erb +5 -3
- data/views/500.erb +11 -9
- data/views/blame.erb +24 -22
- data/views/blob.erb +14 -12
- data/views/commits.erb +45 -24
- data/views/index.erb +9 -7
- data/views/layout.erb +20 -4
- data/views/raw.erb +3 -2
- data/views/tree.erb +32 -30
- metadata +2 -2
data/lib/libdolt/version.rb
CHANGED
data/views/404.erb
CHANGED
@@ -17,6 +17,8 @@
|
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#++
|
19
19
|
%>
|
20
|
-
<
|
21
|
-
<
|
22
|
-
<
|
20
|
+
<div class="container gts-body">
|
21
|
+
<h1><%= @title = "No such path" %></h1>
|
22
|
+
<h2><%= CGI::escapeElement(error.respond_to?(:message) ? error.message : error).gsub(/</, "<") %></h2>
|
23
|
+
<p><a href="<%= tree_url(repository_slug, ref, "") %>">Go back</a></p>
|
24
|
+
</div>
|
data/views/500.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%#
|
2
2
|
# encoding: utf-8
|
3
3
|
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
5
|
#
|
6
6
|
# This program is free software: you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -17,11 +17,13 @@
|
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#++
|
19
19
|
%>
|
20
|
-
<
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
<div class="container gts-body">
|
21
|
+
<h1><%= @title = "An error occurred" %></h1>
|
22
|
+
<h2><%= CGI::escapeElement(error.respond_to?(:message) ? error.message : error).gsub(/</, "<") %></h2>
|
23
|
+
<% if error.respond_to?(:backtrace) && !error.backtrace.nil? %>
|
24
|
+
<ul>
|
25
|
+
<%= error.backtrace.map { |l| "<li>#{l}</li>" }.join("") %>
|
26
|
+
</ul>
|
27
|
+
<% end %>
|
28
|
+
<p><a href="<%= tree_url(repository_slug, ref, "") %>">Go back</a></p>
|
29
|
+
</div>
|
data/views/blame.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%#
|
2
2
|
# encoding: utf-8
|
3
3
|
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
5
|
#
|
6
6
|
# This program is free software: you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -17,26 +17,28 @@
|
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#++
|
19
19
|
%>
|
20
|
-
|
20
|
+
<div class="container gts-body">
|
21
|
+
<% @title = "Blame #{path} in #{repository_slug}:master" %>
|
21
22
|
|
22
|
-
<div class="gts-file gts-browser">
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
23
|
+
<div class="gts-file gts-browser">
|
24
|
+
<div id="gts-ref-selector-ph"></div>
|
25
|
+
<ul class="pull-right gts-blob-view">
|
26
|
+
<li><a href="<%= blob_url(repository_slug, ref, path) %>">Blob content</a></li>
|
27
|
+
<li class="active">Blame</li>
|
28
|
+
<li><a href="<%= history_url(repository_slug, ref, path) %>">History</a></li>
|
29
|
+
<li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
|
30
|
+
</ul>
|
31
|
+
<%= breadcrumb(repository_slug, ref, path) %>
|
32
|
+
<table class="gts-code-listing">
|
33
|
+
<% annotations = blame_annotations(blame) %>
|
34
|
+
<% lines = blame_lines(path, blame) %>
|
35
|
+
<% annotations.length.times do |i| %>
|
36
|
+
<tr>
|
37
|
+
<%= blame_annotation_cell(annotations[i]) %>
|
38
|
+
<td class="linenum L<%= i + 1 %>"><%= i + 1 %></td>
|
39
|
+
<%= blame_code_cell(lines[i]) %>
|
40
|
+
</tr>
|
41
|
+
<% end %>
|
42
|
+
</table>
|
43
|
+
</div>
|
42
44
|
</div>
|
data/views/blob.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%#
|
2
2
|
# encoding: utf-8
|
3
3
|
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
5
|
#
|
6
6
|
# This program is free software: you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -17,15 +17,17 @@
|
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#++
|
19
19
|
%>
|
20
|
-
|
21
|
-
|
22
|
-
<div
|
23
|
-
|
24
|
-
<
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
20
|
+
<div class="container gts-body">
|
21
|
+
<% @title = "#{path} in #{repository_slug}:master" %>
|
22
|
+
<div class="gts-file gts-browser">
|
23
|
+
<div id="gts-ref-selector-ph"></div>
|
24
|
+
<ul class="pull-right gts-blob-view">
|
25
|
+
<li class="active">Blob content</li>
|
26
|
+
<li><a href="<%= blame_url(repository_slug, ref, path) %>">Blame</a></li>
|
27
|
+
<li><a href="<%= history_url(repository_slug, ref, path) %>">History</a></li>
|
28
|
+
<li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
|
29
|
+
</ul>
|
30
|
+
<%= breadcrumb(repository_slug, ref, path) %>
|
31
|
+
<%= format_blob(path, blob.text(nil, Encoding.default_external), repository_slug, ref) %>
|
32
|
+
</div>
|
31
33
|
</div>
|
data/views/commits.erb
CHANGED
@@ -1,26 +1,47 @@
|
|
1
|
+
<%#
|
2
|
+
# encoding: utf-8
|
3
|
+
#--
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
|
+
#
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
7
|
+
# it under the terms of the GNU Affero General Public License as published by
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
9
|
+
# (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU Affero General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU Affero General Public License
|
17
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
+
#++
|
19
|
+
%>
|
1
20
|
<% @title = "History of #{path}" %>
|
2
|
-
<div class="gts-
|
3
|
-
<div
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<
|
14
|
-
<
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
21
|
+
<div class="container gts-body">
|
22
|
+
<div class="gts-browser">
|
23
|
+
<div id="gts-ref-selector-ph"></div>
|
24
|
+
<ul class="pull-right gts-blob-view">
|
25
|
+
<li><a href="<%= blob_url(repository_slug, ref, path) %>">Blob content</a></li>
|
26
|
+
<li><a href="<%= blame_url(repository_slug, ref, path) %>">Blame</a></li>
|
27
|
+
<li class="active">History</li>
|
28
|
+
<li><a href="<%= raw_url(repository_slug, ref, path) %>">Raw blob</a></li>
|
29
|
+
</ul>
|
30
|
+
<%= breadcrumb(repository_slug, ref, path) %>
|
31
|
+
<% commits.each do |commit| %>
|
32
|
+
<div class="gts-commit">
|
33
|
+
<p class="gts-log-message">
|
34
|
+
<span class="gts-commit-oid" data-gts-commit-oid="<%= commit[:oid] %>"><%= commit_oid(commit[:oid]) %></span>:
|
35
|
+
<%= commit[:summary] %>
|
36
|
+
</p>
|
37
|
+
<p>
|
38
|
+
<a class="event-author" href="/~">
|
39
|
+
<img width="24" height="24" src="<%= gravatar(commit[:author][:email]) %>" alt="avatar" class="gts-avatar">
|
40
|
+
<%= commit[:author][:name] %>
|
41
|
+
</a>
|
42
|
+
<span class="event-time"><%= commit[:date].strftime("%H:%M") %></span>
|
43
|
+
</p>
|
44
|
+
</div>
|
45
|
+
<% end %>
|
46
|
+
</div>
|
26
47
|
</div>
|
data/views/index.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%#
|
2
2
|
# encoding: utf-8
|
3
3
|
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
5
|
#
|
6
6
|
# This program is free software: you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -17,9 +17,11 @@
|
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#++
|
19
19
|
%>
|
20
|
-
<
|
21
|
-
<
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
20
|
+
<div class="container gts-body">
|
21
|
+
<h1><%= @title = "All repositories" %></h1>
|
22
|
+
<ul>
|
23
|
+
<% repositories.each do |repo| %>
|
24
|
+
<li><a href="/<%= repo %>/tree/master:"><%= repo %></a></li>
|
25
|
+
<% end %>
|
26
|
+
</ul>
|
27
|
+
</div>
|
data/views/layout.erb
CHANGED
@@ -1,4 +1,22 @@
|
|
1
|
-
|
1
|
+
<%#
|
2
|
+
# encoding: utf-8
|
3
|
+
#--
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
|
+
#
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
7
|
+
# it under the terms of the GNU Affero General Public License as published by
|
8
|
+
# the Free Software Foundation, either version 3 of the License, or
|
9
|
+
# (at your option) any later version.
|
10
|
+
#
|
11
|
+
# This program is distributed in the hope that it will be useful,
|
12
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14
|
+
# GNU Affero General Public License for more details.
|
15
|
+
#
|
16
|
+
# You should have received a copy of the GNU Affero General Public License
|
17
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
|
+
#++
|
19
|
+
%><!DOCTYPE html>
|
2
20
|
<html lang="en">
|
3
21
|
<head>
|
4
22
|
<meta charset="utf-8">
|
@@ -17,9 +35,7 @@
|
|
17
35
|
</div>
|
18
36
|
</div>
|
19
37
|
<br><br>
|
20
|
-
|
21
|
-
<%= yield %>
|
22
|
-
</div>
|
38
|
+
<%= yield %>
|
23
39
|
<div class="footer">
|
24
40
|
<div class="container">
|
25
41
|
<p class="pull-right gts-powered-by">
|
data/views/raw.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%#
|
2
2
|
# encoding: utf-8
|
3
3
|
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
5
|
#
|
6
6
|
# This program is free software: you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -16,4 +16,5 @@
|
|
16
16
|
# You should have received a copy of the GNU Affero General Public License
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#++
|
19
|
-
|
19
|
+
%>
|
20
|
+
<div class="container gts-body"><%= blob.content %></div>
|
data/views/tree.erb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<%#
|
2
2
|
# encoding: utf-8
|
3
3
|
#--
|
4
|
-
# Copyright (C) 2012 Gitorious AS
|
4
|
+
# Copyright (C) 2012-2013 Gitorious AS
|
5
5
|
#
|
6
6
|
# This program is free software: you can redistribute it and/or modify
|
7
7
|
# it under the terms of the GNU Affero General Public License as published by
|
@@ -17,34 +17,36 @@
|
|
17
17
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
18
18
|
#++
|
19
19
|
%>
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<
|
26
|
-
<
|
27
|
-
<
|
28
|
-
<th colspan="<%= tree_table_padding_width(levels) + 1 %>">File</th>
|
29
|
-
<th class="gts-col-changed">Changed</th>
|
30
|
-
<th class="gts-col-commit" colspan="2">Last commit</th>
|
31
|
-
</tr>
|
32
|
-
</thead>
|
33
|
-
<tbody>
|
34
|
-
<%= tree_context(repository_slug, ref, levels) %>
|
35
|
-
<% tree_entries(tree).each do |object| %>
|
20
|
+
<div class="container gts-body">
|
21
|
+
<%
|
22
|
+
@title = "#{path == '' ? './' : path} in #{ref}"
|
23
|
+
levels = accumulate_path(partition_path(path, respond_to?(:maxdepth) ? maxdepth : nil))
|
24
|
+
%>
|
25
|
+
<div id="gts-ref-selector-ph"></div>
|
26
|
+
<table class="table table-striped gts-tree-explorer" data-gts-tree-history="<%= tree_history_url(repository_slug, ref, path) %>">
|
27
|
+
<thead>
|
36
28
|
<tr>
|
37
|
-
<%=
|
38
|
-
<
|
39
|
-
|
40
|
-
<i class="icon <%= object_icon_class(object) %>"></i>
|
41
|
-
<%= object[:name] %>
|
42
|
-
</a>
|
43
|
-
</td>
|
44
|
-
<td class="gts-commit-date"></td>
|
45
|
-
<td class="gts-commit-oid"></td>
|
46
|
-
<td></td>
|
29
|
+
<th colspan="<%= tree_table_padding_width(levels) + 1 %>">File</th>
|
30
|
+
<th class="gts-col-changed">Changed</th>
|
31
|
+
<th class="gts-col-commit" colspan="2">Last commit</th>
|
47
32
|
</tr>
|
48
|
-
|
49
|
-
|
50
|
-
|
33
|
+
</thead>
|
34
|
+
<tbody>
|
35
|
+
<%= tree_context(repository_slug, ref, levels) %>
|
36
|
+
<% tree_entries(tree).each do |object| %>
|
37
|
+
<tr>
|
38
|
+
<%= tree_table_padding_td(levels) %>
|
39
|
+
<td class="gts-name">
|
40
|
+
<a href="<%= object_url(repository_slug, ref, path, object) %>">
|
41
|
+
<i class="icon <%= object_icon_class(object) %>"></i>
|
42
|
+
<%= object[:name] %>
|
43
|
+
</a>
|
44
|
+
</td>
|
45
|
+
<td class="gts-commit-date"></td>
|
46
|
+
<td class="gts-commit-oid"></td>
|
47
|
+
<td></td>
|
48
|
+
</tr>
|
49
|
+
<% end %>
|
50
|
+
</tbody>
|
51
|
+
</table>
|
52
|
+
</div>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libdolt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rugged
|