From 459759370fa73264a4adfa4b21282471ab775945 Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Mon, 27 Oct 2014 04:14:20 +0300 Subject: [PATCH 1/2] Show pull request link, when commit related with pull request --- server/app/views/commit.html | 29 +++++------------------- server/app/views/commit_detail.html | 23 +++++++++++++++++++ server/app/views/commit_detail_pr.html | 31 ++++++++++++++++++++++++++ 3 files changed, 60 insertions(+), 23 deletions(-) create mode 100644 server/app/views/commit_detail.html create mode 100644 server/app/views/commit_detail_pr.html diff --git a/server/app/views/commit.html b/server/app/views/commit.html index fbdcc5258..1f398e6c0 100644 --- a/server/app/views/commit.html +++ b/server/app/views/commit.html @@ -11,29 +11,12 @@

{{ commit.duration | toDuration}}

-
-
- - commit - {{ commit.sha | shortHash}} - to {{ commit.branch }} branch - -
-
- - commit - {{ commit.sha | shortHash}} - to {{ commit.branch }} branch - -
-
- commit {{ commit.sha | shortHash}} to {{ commit.branch }} branch -
-
{{ commit.finished_at | fromNow }}
-
Started {{ commit.started_at | fromNow }}
-
Created {{ commit.created_at}}
-
- +
+
+
{{ commit.finished_at | fromNow }}
+
Started {{ commit.started_at | fromNow }}
+
Created {{ commit.created_at}}
+
diff --git a/server/app/views/commit_detail.html b/server/app/views/commit_detail.html new file mode 100644 index 000000000..639b73284 --- /dev/null +++ b/server/app/views/commit_detail.html @@ -0,0 +1,23 @@ + +
+ + commit + {{ commit.sha | shortHash}} + to {{ commit.branch }} branch + +
+ + +
+ + commit + {{ commit.sha | shortHash}} + to {{ commit.branch }} branch + +
+ + +
+ commit {{ commit.sha | shortHash}} to {{ commit.branch }} branch +
+ \ No newline at end of file diff --git a/server/app/views/commit_detail_pr.html b/server/app/views/commit_detail_pr.html new file mode 100644 index 000000000..6669a7b38 --- /dev/null +++ b/server/app/views/commit_detail_pr.html @@ -0,0 +1,31 @@ + +
+ + Pull Request + #{{ commit.pull_request }} + +
+ + +
+ + Pull Request + #{{ commit.pull_request }} + +
+ + +
+ + Pull Request + #{{ commit.pull_request }} + +
+ + +
+ + Pull Request #{{ commit.pull_request }} + +
+ \ No newline at end of file From c7649e15b1513501ee9b4ee71ba9899d6a642a0d Mon Sep 17 00:00:00 2001 From: Kirill Zaitsev Date: Mon, 27 Oct 2014 14:32:44 +0300 Subject: [PATCH 2/2] Add gitlab repo url --- plugin/remote/gitlab/gitlab.go | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/remote/gitlab/gitlab.go b/plugin/remote/gitlab/gitlab.go index 61423297f..b4e07597d 100644 --- a/plugin/remote/gitlab/gitlab.go +++ b/plugin/remote/gitlab/gitlab.go @@ -75,6 +75,7 @@ func (r *Gitlab) GetRepos(user *model.User) ([]*model.Repo, error) { CloneURL: item.HttpRepoUrl, GitURL: item.HttpRepoUrl, SSHURL: item.SshRepoUrl, + URL: item.Url, Role: &model.Perm{}, }