Skip to content

The Unified and Autonomous Development Platform

Fix the issue that build status is not updating automatically on pull request page

robin shinec2ff36e77237
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/pullrequest/verificationstatus/VerificationStatusPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/pullrequest/verificationstatus/VerificationStatusPanel.java
index f0fe0b8858..342aef75ae 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/pullrequest/verificationstatus/VerificationStatusPanel.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/pullrequest/verificationstatus/VerificationStatusPanel.java
@@ -1,138 +1,176 @@
-package com.pmease.gitplex.web.component.pullrequest.verificationstatus;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.wicket.Component;
-import org.apache.wicket.behavior.AttributeAppender;
-import org.apache.wicket.markup.head.CssHeaderItem;
-import org.apache.wicket.markup.head.IHeaderResponse;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.markup.html.list.ListView;
-import org.apache.wicket.markup.html.panel.Fragment;
-import org.apache.wicket.markup.html.panel.Panel;
-import org.apache.wicket.model.AbstractReadOnlyModel;
-import org.apache.wicket.model.IModel;
-
-import com.pmease.commons.wicket.component.DropdownLink;
-import com.pmease.gitplex.core.entity.PullRequest;
-import com.pmease.gitplex.core.entity.PullRequestVerification;
-
-@SuppressWarnings("serial")
-public class VerificationStatusPanel extends Panel {
-
- private final IModel<PullRequest> requestModel;
-
- private final IModel<String> commitHashModel;
-
- public VerificationStatusPanel(String id, IModel<PullRequest> requestModel, IModel<String> commitHashModel) {
- super(id);
-
- this.requestModel = requestModel;
- this.commitHashModel = commitHashModel;
- }
-
- private List<PullRequestVerification> getVerifications() {
- List<PullRequestVerification> verifications = new ArrayList<>();
- for (PullRequestVerification verification: requestModel.getObject().getVerifications()) {
- if (verification.getCommit().equals(commitHashModel.getObject()))
- verifications.add(verification);
- }
- return verifications;
- }
-
- @Override
- protected void onInitialize() {
- super.onInitialize();
-
- DropdownLink link = new DropdownLink("link") {
-
- @Override
- protected Component newContent(String id) {
- Fragment fragment = new Fragment(id, "detailFrag", VerificationStatusPanel.this);
-
- IModel<List<PullRequestVerification>> model = new AbstractReadOnlyModel<List<PullRequestVerification>>() {
-
- @Override
- public List<PullRequestVerification> getObject() {
- return getVerifications();
- }
-
- };
- fragment.add(new ListView<PullRequestVerification>("verifications", model) {
-
- @Override
- protected void populateItem(ListItem<PullRequestVerification> item) {
- PullRequestVerification verification = item.getModelObject();
- item.add(new Label("configuration", verification.getConfiguration()));
- item.add(new Label("message", verification.getMessage()).setEscapeModelStrings(false));
-
- if (verification.getStatus() == PullRequestVerification.Status.FAILED)
- item.add(AttributeAppender.append("class", "failed"));
- else if (verification.getStatus() == PullRequestVerification.Status.SUCCESSFUL)
- item.add(AttributeAppender.append("class", "successful"));
- else
- item.add(AttributeAppender.append("class", "running"));
- }
-
- });
-
- return fragment;
- }
-
- };
- add(link);
-
- PullRequestVerification.Status overallStatus = null;
- for (PullRequestVerification verification: getVerifications()) {
- if (verification.getStatus() == PullRequestVerification.Status.FAILED) {
- overallStatus = PullRequestVerification.Status.FAILED;
- break;
- } else if (verification.getStatus() == PullRequestVerification.Status.RUNNING) {
- overallStatus = PullRequestVerification.Status.RUNNING;
- } else if (overallStatus == null) {
- overallStatus = PullRequestVerification.Status.SUCCESSFUL;
- }
- }
- WebMarkupContainer icon = new WebMarkupContainer("icon");
- link.add(icon);
-
- if (overallStatus == PullRequestVerification.Status.SUCCESSFUL) {
- link.add(AttributeAppender.append("class", "successful "));
- link.add(AttributeAppender.append("title", "Builds are successful"));
- icon.add(AttributeAppender.append("class", "fa fa-check"));
- } else if (overallStatus == PullRequestVerification.Status.FAILED) {
- link.add(AttributeAppender.append("class", "failed"));
- link.add(AttributeAppender.append("title", "At least one build is failed"));
- icon.add(AttributeAppender.append("class", "fa fa-times"));
- } else {
- link.add(AttributeAppender.append("class", "running"));
- link.add(AttributeAppender.append("title", "Builds are running"));
- icon.add(AttributeAppender.append("class", "fa fa-clock-o"));
- }
-
- }
-
- @Override
- public void renderHead(IHeaderResponse response) {
- super.renderHead(response);
-
- response.render(CssHeaderItem.forReference(new VerificationStatusResourceReference()));
- }
-
- @Override
- protected void onDetach() {
- requestModel.detach();
- commitHashModel.detach();
- super.onDetach();
- }
-
- @Override
- protected void onConfigure() {
- super.onConfigure();
- setVisible(!getVerifications().isEmpty());
- }
-
-}
+package com.pmease.gitplex.web.component.pullrequest.verificationstatus;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.wicket.Component;
+import org.apache.wicket.behavior.AttributeAppender;
+import org.apache.wicket.markup.head.CssHeaderItem;
+import org.apache.wicket.markup.head.IHeaderResponse;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.list.ListItem;
+import org.apache.wicket.markup.html.list.ListView;
+import org.apache.wicket.markup.html.panel.Fragment;
+import org.apache.wicket.markup.html.panel.Panel;
+import org.apache.wicket.model.AbstractReadOnlyModel;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.LoadableDetachableModel;
+
+import com.pmease.commons.wicket.component.DropdownLink;
+import com.pmease.gitplex.core.entity.PullRequest;
+import com.pmease.gitplex.core.entity.PullRequestVerification;
+
+@SuppressWarnings("serial")
+public class VerificationStatusPanel extends Panel {
+
+ private final IModel<PullRequest> requestModel;
+
+ private final IModel<String> commitHashModel;
+
+ public VerificationStatusPanel(String id, IModel<PullRequest> requestModel, IModel<String> commitHashModel) {
+ super(id);
+
+ this.requestModel = requestModel;
+ this.commitHashModel = commitHashModel;
+ }
+
+ private List<PullRequestVerification> getVerifications() {
+ List<PullRequestVerification> verifications = new ArrayList<>();
+ for (PullRequestVerification verification: requestModel.getObject().getVerifications()) {
+ if (verification.getCommit().equals(commitHashModel.getObject()))
+ verifications.add(verification);
+ }
+ return verifications;
+ }
+
+ @Override
+ protected void onInitialize() {
+ super.onInitialize();
+
+ DropdownLink link = new DropdownLink("link") {
+
+ @Override
+ protected Component newContent(String id) {
+ Fragment fragment = new Fragment(id, "detailFrag", VerificationStatusPanel.this);
+
+ IModel<List<PullRequestVerification>> model = new AbstractReadOnlyModel<List<PullRequestVerification>>() {
+
+ @Override
+ public List<PullRequestVerification> getObject() {
+ return getVerifications();
+ }
+
+ };
+ fragment.add(new ListView<PullRequestVerification>("verifications", model) {
+
+ @Override
+ protected void populateItem(ListItem<PullRequestVerification> item) {
+ PullRequestVerification verification = item.getModelObject();
+ item.add(new Label("configuration", verification.getConfiguration()));
+ item.add(new Label("message", verification.getMessage()).setEscapeModelStrings(false));
+
+ if (verification.getStatus() == PullRequestVerification.Status.FAILED)
+ item.add(AttributeAppender.append("class", "failed"));
+ else if (verification.getStatus() == PullRequestVerification.Status.SUCCESSFUL)
+ item.add(AttributeAppender.append("class", "successful"));
+ else
+ item.add(AttributeAppender.append("class", "running"));
+ }
+
+ });
+
+ return fragment;
+ }
+
+ };
+ add(link);
+
+ link.add(AttributeAppender.append("class", new LoadableDetachableModel<String>() {
+
+ @Override
+ protected String load() {
+ PullRequestVerification.Status overallStatus = getOverallStatus();
+ if (overallStatus == PullRequestVerification.Status.SUCCESSFUL) {
+ return "successful";
+ } else if (overallStatus == PullRequestVerification.Status.FAILED) {
+ return "failed";
+ } else {
+ return "running";
+ }
+ }
+
+ }));
+ link.add(AttributeAppender.append("title", new LoadableDetachableModel<String>() {
+
+ @Override
+ protected String load() {
+ PullRequestVerification.Status overallStatus = getOverallStatus();
+ if (overallStatus == PullRequestVerification.Status.SUCCESSFUL) {
+ return "Builds are successful";
+ } else if (overallStatus == PullRequestVerification.Status.FAILED) {
+ return "At least one build is failed";
+ } else {
+ return "Builds are running";
+ }
+ }
+
+ }));
+
+ WebMarkupContainer icon = new WebMarkupContainer("icon");
+ link.add(icon);
+ icon.add(AttributeAppender.append("class", new LoadableDetachableModel<String>() {
+
+ @Override
+ protected String load() {
+ PullRequestVerification.Status overallStatus = getOverallStatus();
+ if (overallStatus == PullRequestVerification.Status.SUCCESSFUL) {
+ return "fa fa-check";
+ } else if (overallStatus == PullRequestVerification.Status.FAILED) {
+ return "fa fa-times";
+ } else {
+ return "fa fa-clock-o";
+ }
+ }
+
+ }));
+
+ setOutputMarkupPlaceholderTag(true);
+ }
+
+ private PullRequestVerification.Status getOverallStatus() {
+ PullRequestVerification.Status overallStatus = null;
+ for (PullRequestVerification verification: getVerifications()) {
+ if (verification.getStatus() == PullRequestVerification.Status.FAILED) {
+ overallStatus = PullRequestVerification.Status.FAILED;
+ break;
+ } else if (verification.getStatus() == PullRequestVerification.Status.RUNNING) {
+ overallStatus = PullRequestVerification.Status.RUNNING;
+ } else if (overallStatus == null) {
+ overallStatus = PullRequestVerification.Status.SUCCESSFUL;
+ }
+ }
+ return overallStatus;
+ }
+
+ @Override
+ public void renderHead(IHeaderResponse response) {
+ super.renderHead(response);
+
+ response.render(CssHeaderItem.forReference(new VerificationStatusResourceReference()));
+ }
+
+ @Override
+ protected void onDetach() {
+ requestModel.detach();
+ commitHashModel.detach();
+ super.onDetach();
+ }
+
+ @Override
+ protected void onConfigure() {
+ super.onConfigure();
+ setVisible(!getVerifications().isEmpty());
+ }
+
+}
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/activity/UpdatedPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/activity/UpdatedPanel.java
index 5138f4fb21..6820d91bb4 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/activity/UpdatedPanel.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/activity/UpdatedPanel.java
@@ -1,129 +1,150 @@
-package com.pmease.gitplex.web.page.depot.pullrequest.requestdetail.overview.activity;
-
-import java.util.List;
-
-import org.apache.wicket.behavior.AttributeAppender;
-import org.apache.wicket.markup.html.WebMarkupContainer;
-import org.apache.wicket.markup.html.basic.Label;
-import org.apache.wicket.markup.html.link.BookmarkablePageLink;
-import org.apache.wicket.markup.html.link.Link;
-import org.apache.wicket.markup.html.list.ListItem;
-import org.apache.wicket.markup.html.list.ListView;
-import org.apache.wicket.markup.html.panel.GenericPanel;
-import org.apache.wicket.model.AbstractReadOnlyModel;
-import org.apache.wicket.model.IModel;
-import org.apache.wicket.model.LoadableDetachableModel;
-import org.apache.wicket.model.Model;
-import org.apache.wicket.request.mapper.parameter.PageParameters;
-import org.eclipse.jgit.lib.FileMode;
-import org.eclipse.jgit.revwalk.RevCommit;
-
-import com.pmease.commons.git.BlobIdent;
-import com.pmease.commons.git.GitUtils;
-import com.pmease.commons.wicket.behavior.clipboard.CopyClipboardBehavior;
-import com.pmease.gitplex.core.entity.Depot;
-import com.pmease.gitplex.core.entity.PullRequest;
-import com.pmease.gitplex.core.entity.PullRequestUpdate;
-import com.pmease.gitplex.web.Constants;
-import com.pmease.gitplex.web.component.avatar.AvatarLink;
-import com.pmease.gitplex.web.component.commitmessage.ExpandableCommitMessagePanel;
-import com.pmease.gitplex.web.component.pullrequest.verificationstatus.VerificationStatusPanel;
-import com.pmease.gitplex.web.page.depot.commit.CommitDetailPage;
-import com.pmease.gitplex.web.page.depot.file.DepotFilePage;
-
-import de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig;
-
-@SuppressWarnings("serial")
-class UpdatedPanel extends GenericPanel<PullRequestUpdate> {
-
- public UpdatedPanel(String id, IModel<PullRequestUpdate> model) {
- super(id, model);
- }
-
- @Override
- protected void onInitialize() {
- super.onInitialize();
-
- String tooManyMessage = "Too many commits, displaying recent " + Constants.MAX_DISPLAY_COMMITS;
- add(new Label("tooManyCommits", tooManyMessage) {
-
- @Override
- protected void onConfigure() {
- super.onConfigure();
- setVisible(getUpdate().getCommits().size()>Constants.MAX_DISPLAY_COMMITS);
- }
-
- });
- add(new ListView<RevCommit>("commits", new LoadableDetachableModel<List<RevCommit>>() {
-
- @Override
- protected List<RevCommit> load() {
- List<RevCommit> commits = getUpdate().getCommits();
- if (commits.size() > Constants.MAX_DISPLAY_COMMITS)
- return commits.subList(commits.size()-Constants.MAX_DISPLAY_COMMITS, commits.size());
- else
- return commits;
- }
-
- }) {
-
- @Override
- protected void populateItem(final ListItem<RevCommit> item) {
- RevCommit commit = item.getModelObject();
-
- item.add(new AvatarLink("author", commit.getAuthorIdent(), new TooltipConfig()));
-
- IModel<Depot> depotModel = new AbstractReadOnlyModel<Depot>() {
-
- @Override
- public Depot getObject() {
- return getUpdate().getRequest().getTarget().getDepot();
- }
-
- };
- item.add(new ExpandableCommitMessagePanel("message", depotModel, item.getModel()));
-
- IModel<PullRequest> requestModel = new AbstractReadOnlyModel<PullRequest>() {
-
- @Override
- public PullRequest getObject() {
- return getUpdate().getRequest();
- }
-
- };
- item.add(new VerificationStatusPanel("verification", requestModel, Model.of(commit.name())));
-
- CommitDetailPage.State commitState = new CommitDetailPage.State();
- commitState.revision = commit.name();
- PageParameters params = CommitDetailPage.paramsOf(depotModel.getObject(), commitState);
- Link<Void> hashLink = new BookmarkablePageLink<Void>("hashLink", CommitDetailPage.class, params);
- item.add(hashLink);
- hashLink.add(new Label("hash", GitUtils.abbreviateSHA(commit.name())));
- item.add(new WebMarkupContainer("copyHash").add(new CopyClipboardBehavior(Model.of(commit.name()))));
-
- DepotFilePage.State browseState = new DepotFilePage.State();
- browseState.blobIdent = new BlobIdent(commit.name(), null, FileMode.TYPE_TREE);
- params = DepotFilePage.paramsOf(depotModel.getObject(), browseState);
- item.add(new BookmarkablePageLink<Void>("browseCode", DepotFilePage.class, params));
-
- if (getUpdate().getRequest().getTarget().getObjectId(false) != null) {
- if (getUpdate().getRequest().getMergedCommits().contains(commit)) {
- item.add(AttributeAppender.append("class", " integrated"));
- item.add(AttributeAppender.append("title", "This commit has been integrated"));
- } else if (!getUpdate().getRequest().getPendingCommits().contains(commit)) {
- item.add(AttributeAppender.append("class", " rebased"));
- item.add(AttributeAppender.append("title", "This commit has been rebased"));
- }
- }
-
- }
-
- });
-
- }
-
- private PullRequestUpdate getUpdate() {
- return getModelObject();
- }
-
-}
+package com.pmease.gitplex.web.page.depot.pullrequest.requestdetail.overview.activity;
+
+import java.util.List;
+
+import org.apache.wicket.behavior.AttributeAppender;
+import org.apache.wicket.event.IEvent;
+import org.apache.wicket.markup.html.WebMarkupContainer;
+import org.apache.wicket.markup.html.basic.Label;
+import org.apache.wicket.markup.html.link.BookmarkablePageLink;
+import org.apache.wicket.markup.html.link.Link;
+import org.apache.wicket.markup.html.list.ListItem;
+import org.apache.wicket.markup.html.list.ListView;
+import org.apache.wicket.markup.html.panel.GenericPanel;
+import org.apache.wicket.model.AbstractReadOnlyModel;
+import org.apache.wicket.model.IModel;
+import org.apache.wicket.model.LoadableDetachableModel;
+import org.apache.wicket.model.Model;
+import org.apache.wicket.request.mapper.parameter.PageParameters;
+import org.apache.wicket.util.visit.IVisit;
+import org.apache.wicket.util.visit.IVisitor;
+import org.eclipse.jgit.lib.FileMode;
+import org.eclipse.jgit.revwalk.RevCommit;
+
+import com.pmease.commons.git.BlobIdent;
+import com.pmease.commons.git.GitUtils;
+import com.pmease.commons.wicket.behavior.clipboard.CopyClipboardBehavior;
+import com.pmease.gitplex.core.entity.Depot;
+import com.pmease.gitplex.core.entity.PullRequest;
+import com.pmease.gitplex.core.entity.PullRequestUpdate;
+import com.pmease.gitplex.web.Constants;
+import com.pmease.gitplex.web.component.avatar.AvatarLink;
+import com.pmease.gitplex.web.component.commitmessage.ExpandableCommitMessagePanel;
+import com.pmease.gitplex.web.component.pullrequest.verificationstatus.VerificationStatusPanel;
+import com.pmease.gitplex.web.page.depot.commit.CommitDetailPage;
+import com.pmease.gitplex.web.page.depot.file.DepotFilePage;
+import com.pmease.gitplex.web.websocket.PullRequestChanged;
+
+import de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig;
+
+@SuppressWarnings("serial")
+class UpdatedPanel extends GenericPanel<PullRequestUpdate> {
+
+ public UpdatedPanel(String id, IModel<PullRequestUpdate> model) {
+ super(id, model);
+ }
+
+ @Override
+ public void onEvent(IEvent<?> event) {
+ super.onEvent(event);
+
+ if (event.getPayload() instanceof PullRequestChanged) {
+ PullRequestChanged pullRequestChanged = (PullRequestChanged) event.getPayload();
+ visitChildren(VerificationStatusPanel.class, new IVisitor<VerificationStatusPanel, Void>() {
+
+ @Override
+ public void component(VerificationStatusPanel object, IVisit<Void> visit) {
+ pullRequestChanged.getPartialPageRequestHandler().add(object);
+ }
+
+ });
+ }
+ }
+
+ @Override
+ protected void onInitialize() {
+ super.onInitialize();
+
+ String tooManyMessage = "Too many commits, displaying recent " + Constants.MAX_DISPLAY_COMMITS;
+ add(new Label("tooManyCommits", tooManyMessage) {
+
+ @Override
+ protected void onConfigure() {
+ super.onConfigure();
+ setVisible(getUpdate().getCommits().size()>Constants.MAX_DISPLAY_COMMITS);
+ }
+
+ });
+ add(new ListView<RevCommit>("commits", new LoadableDetachableModel<List<RevCommit>>() {
+
+ @Override
+ protected List<RevCommit> load() {
+ List<RevCommit> commits = getUpdate().getCommits();
+ if (commits.size() > Constants.MAX_DISPLAY_COMMITS)
+ return commits.subList(commits.size()-Constants.MAX_DISPLAY_COMMITS, commits.size());
+ else
+ return commits;
+ }
+
+ }) {
+
+ @Override
+ protected void populateItem(final ListItem<RevCommit> item) {
+ RevCommit commit = item.getModelObject();
+
+ item.add(new AvatarLink("author", commit.getAuthorIdent(), new TooltipConfig()));
+
+ IModel<Depot> depotModel = new AbstractReadOnlyModel<Depot>() {
+
+ @Override
+ public Depot getObject() {
+ return getUpdate().getRequest().getTarget().getDepot();
+ }
+
+ };
+ item.add(new ExpandableCommitMessagePanel("message", depotModel, item.getModel()));
+
+ IModel<PullRequest> requestModel = new AbstractReadOnlyModel<PullRequest>() {
+
+ @Override
+ public PullRequest getObject() {
+ return getUpdate().getRequest();
+ }
+
+ };
+ item.add(new VerificationStatusPanel("verification", requestModel, Model.of(commit.name())));
+
+ CommitDetailPage.State commitState = new CommitDetailPage.State();
+ commitState.revision = commit.name();
+ PageParameters params = CommitDetailPage.paramsOf(depotModel.getObject(), commitState);
+ Link<Void> hashLink = new BookmarkablePageLink<Void>("hashLink", CommitDetailPage.class, params);
+ item.add(hashLink);
+ hashLink.add(new Label("hash", GitUtils.abbreviateSHA(commit.name())));
+ item.add(new WebMarkupContainer("copyHash").add(new CopyClipboardBehavior(Model.of(commit.name()))));
+
+ DepotFilePage.State browseState = new DepotFilePage.State();
+ browseState.blobIdent = new BlobIdent(commit.name(), null, FileMode.TYPE_TREE);
+ params = DepotFilePage.paramsOf(depotModel.getObject(), browseState);
+ item.add(new BookmarkablePageLink<Void>("browseCode", DepotFilePage.class, params));
+
+ if (getUpdate().getRequest().getTarget().getObjectId(false) != null) {
+ if (getUpdate().getRequest().getMergedCommits().contains(commit)) {
+ item.add(AttributeAppender.append("class", " integrated"));
+ item.add(AttributeAppender.append("title", "This commit has been integrated"));
+ } else if (!getUpdate().getRequest().getPendingCommits().contains(commit)) {
+ item.add(AttributeAppender.append("class", " rebased"));
+ item.add(AttributeAppender.append("title", "This commit has been rebased"));
+ }
+ }
+
+ }
+
+ });
+
+ }
+
+ private PullRequestUpdate getUpdate() {
+ return getModelObject();
+ }
+
+}
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/request-overview.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/request-overview.css
index ff2a011ec3..bd3ae4b4cd 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/request-overview.css
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/request-overview.css
@@ -1,320 +1,320 @@
-#request-detail>.overview>tbody>tr>td.activities {
- width: 75%;
- padding-right: 16px;
-}
-#request-detail .activities>table {
- margin-bottom: 20px;
- table-layout: fixed;
- border-bottom: 1px solid #CCC;
-}
-#request-detail tr.activity>td.spacer {
- border-right: 1px solid #E8E8E8;
-}
-#request-detail td.avatar {
- width: 48px;
- border-left: 4px solid white;
- padding-left: 8px;
-}
-#request-detail td.spacer {
- width: 30px;
-}
-#request-detail .discussion>td.content>div.activity {
- position: relative;
- border: 1px solid #CCC;
- border-radius: 4px;
- background: white;
- margin-left: -15px;
-}
-#request-detail .discussion>td.content>div.activity:before {
- display: inline-block;
- position: absolute;
- top: 10px;
- left: -8px;
- border-top: 8px solid transparent;
- border-bottom: 8px solid transparent;
- border-right: 8px solid #CBCBCB;
- content: "";
-}
-#request-detail .discussion>td.content>.activity:after {
- display: inline-block;
- position: absolute;
- top: 11px;
- left: -7px;
- border-top: 7px solid transparent;
- border-bottom: 7px solid transparent;
- border-right: 7px solid #F5F5F5;
- content: "";
-}
-#request-detail div.activity>.body>.actions {
- margin-top: 8px;
-}
-#request-detail div.activity>.body>.actions>a {
- margin-right: 0;
- font-size: 13px;
-}
-#request-detail .discussion+.discussion>td {
- padding-top: 30px;
-}
-#request-detail .discussion:last-child>td {
- padding-bottom: 20px;
-}
-#request-detail .non-discussion:last-child>td.content {
- padding-bottom: 20px;
-}
-#request-detail .non-discussion>td.content {
- border-top: 1px solid #EEE;
-}
-#request-detail .discussion+.non-discussion>td.content,
-#request-detail .update+.update>td.content {
- border-top: none;
-}
-#request-detail .discussion>.avatar img {
- width: 40px;
- height: 40px;
-}
-#request-detail .non-discussion>td.content {
- font-size: 13px;
- padding: 10px 0;
-}
-
-#request-detail div.activity>.head, #request-detail div.activity>.head a,
-#request-detail div.activity>.body>.actions a {
- color: #999;
-}
-
-#request-detail div.activity .operations>* {
- color: #DDD;
- margin-left: 4px;
-}
-#request-detail div.activity:hover .operations>* {
- color: #999;
-}
-#request-detail div.activity .user a {
- color: #666;
- font-weight: bold;
- font-style: normal;
-}
-#request-detail tr.activity.since-changes {
- display: none;
-}
-#request-detail tr.activity.since-changes.visible {
- display: table-row;
-}
-#request-detail .non-discussion div.activity,
-#request-detail tr.activity.since-changes td.content>div {
- margin-left: -14px;
-}
-#request-detail tr.activity.since-changes td.content>div a {
- font-size: 16px;
-}
-
-#request-detail .non-discussion div.activity>.head>.icon,
-#request-detail tr.activity.since-changes .icon {
- border-radius: 13px;
- background: #5CA7F8;
- width: 26px;
- height: 26px;
- color: white;
- padding: 6px;
- margin-right: 4px;
-}
-#request-detail .discussion div.activity>.head {
- padding: 10px;
- border-radius: 4px 4px 0 0;
- background: #F5F5F5;
-}
-#request-detail .discussion div.activity>.body {
- padding: 12px;
-}
-#request-detail .non-discussion div.activity>.body {
- margin: 8px 0 0 36px;
-}
-#request-detail .non-discussion div.activity .user a {
- font-weight: normal;
-}
-
-#request-detail .non-discussion>td.avatar img {
- display: none;
-}
-#request-detail .activities tr.activity>.content>.update {
- color: #777;
- margin-left: -7px;
-}
-#request-detail .activities tr.activity>.content>.update>.alert {
- margin: 0 0 8px 28px;
-}
-#request-detail .activities tr.activity>.content>.update a {
- color: #555;
-}
-#request-detail .activities tr.activity>.content>.update td {
- padding: 4px 0;
-}
-#request-detail .activities tr.activity>.content>.update td.hash-and-status {
- width: 155px;
-}
-#request-detail .activities tr.activity>.content>.update td.hash-and-status>div {
- margin-left: 8px;
-}
-#request-detail .update+.update>td.content>div {
- margin-top: -16px;
-}
-#request-detail .update+.update>td.content>div>.alert {
- margin-top: 16px;
-}
-#request-detail .discussion+.non-discussion>td.content {
- padding-top: 16px;
-}
-#request-detail .non-discussion+.discussion>td {
- padding-top: 8px;
-}
-
-#request-detail .activities tr.activity>.content>.update td.detail {
- padding-left: 13px;
- padding-right: 8px;
-}
-#request-detail .activities tr.activity>.content>.update td.detail .commit-message {
- padding-left: 4px;
-}
-#request-detail .activities tr.activity>.content>.update td.icon {
- width: 1px;
- padding-top: 7px;
-}
-#request-detail .activities tr.activity>.content>.update td.status {
- text-align: right;
- white-space: nowrap;
-}
-#request-detail .activities tr.activity>.content>.update tr:hover td {
- background: #F5F5F5;
-}
-#request-detail .activities tr.activity>.content>.update tr.integrated td.icon .fa {
- color: #35A612;
-}
-#request-detail .activities tr.activity>.content>.update tr.rebased td a {
- color: #AAA;
-}
-#request-detail .activities tr.activity>.content>.update tr.rebased td.icon .fa {
- color: #CCC;
-}
-#request-detail .activities tr.activity>.content>.update tr.rebased img.avatar {
- opacity: 0.5;
-}
-#request-detail .activities tr.activity>.content>.update td.status .successful {
- color: #35A612;
-}
-#request-detail .activities tr.activity>.content>.update td.status .failed {
- color: #F93333;
-}
-#request-detail .activities tr.activity>.content>.update td.status .running {
- color: #AFAD1F;
-}
-#request-detail .activities tr.activity.new>.avatar {
- border-color: #4667EE;
-}
-
-#request-detail .activities tr.activity>.content>.assigned>.head>.icon {
- padding-left: 8px;
-}
-#request-detail .activities tr.activity>.content>.discarded>.head>.icon {
- background: #F93333;
- padding-left: 7px;
-}
-#request-detail .activities tr.activity>.content>.integrated>.head>.icon {
- background: #35A612;
-}
-#request-detail .activities tr.activity>.content>.approved>.head>.icon,
-#request-detail .activities tr.activity>.content>.completed-verification-successful>.head>.icon {
- background: #35A612;
-}
-#request-detail .activities tr.activity>.content>.disapproved>.head>.icon,
-#request-detail .activities tr.activity>.content>.completed-verification-failed>.head>.icon {
- background: #F93333;
-}
-#request-detail .activities tr.activity>.content>.deleted-review>.head>.icon,
-#request-detail .activities tr.activity>.content>.deleted-verification>.head>.icon,
-#request-detail .activities tr.activity>.content>.deleted-source-branch>.head>.icon {
- padding-top: 6px;
- padding-left: 8px;
-}
-#request-detail .activities tr.activity>.content>.restored-source-branch>.head>.icon,
-#request-detail .activities tr.activity>.content>.reopened>.head>.icon {
- padding-left: 8px;
-}
-#request-detail .activities tr.activity>.content>.reference>.head>.icon {
- padding-left: 8px;
-}
-#request-detail .activities tr.activity>.content>.reference>.head {
- margin-bottom: 10px;
-}
-#request-detail .activities tr.activity>.content>.reference>.body {
- margin-left: 36px;
- font-size: 15px;
-}
-#request-detail .activities tr.activity>.content>.reference>.body a {
- color: #333;
-}
-#request-detail .activities tr.activity>.content>.reference>.body a .number {
- color: #999;
-}
-#request-detail .activities tr.activity>.content>.reference>.body .status .help {
- display: none;
-}
-#request-detail .activities tr.activity>.content>.open .feedback .alert {
- margin-bottom: 8px;
-}
-
-#request-detail .info>div>div {
- border-bottom: 1px dotted #BBB;
- margin-bottom: 20px;
- color: #666;
-}
-#request-detail .info>div>div:last-child {
- border-bottom: none;
- margin-bottom: 0;
-}
-#request-detail .info>div>.assignee, #request-detail .info>div>.reviewers>div,
-#request-detail .info>div>.integration-strategy, #request-detail .info>div>.watch {
- padding-bottom: 20px;
-}
-
-#request-detail .info .help-block {
- margin-bottom: 0;
- color: #888;
-}
-#request-detail .info .fa.small {
- font-size: 14px;
- vertical-align: middle;
-}
-#request-detail .info label {
- margin-right: 4px;
- font-weight: normal;
-}
-#request-detail .info .select2-container {
- width: 100%;
-}
-#request-detail .info .avatar {
- width: 24px;
- height: 24px;
-}
-#request-detail .info .select2-container .avatar {
- width: 20px;
- height: 20px;
-}
-
-#request-detail .info .reviewers ul {
- margin-bottom: 0;
-}
-#request-detail .info .reviewers li {
- margin-right: 16px;
- margin-bottom: 20px;
- position: relative;
-}
-#request-detail .info .reviewers li a:hover {
- text-decoration: none;
-}
-
-#request-detail .info .reviewers .review-result {
- top: -4px;
-}
-#request-detail .info .manage .help-block {
- margin-bottom: 12px;
-}
+#request-detail>.overview>tbody>tr>td.activities {
+ width: 75%;
+ padding-right: 16px;
+}
+#request-detail .activities>table {
+ margin-bottom: 20px;
+ table-layout: fixed;
+ border-bottom: 1px solid #CCC;
+}
+#request-detail tr.activity>td.spacer {
+ border-right: 1px solid #E8E8E8;
+}
+#request-detail td.avatar {
+ width: 48px;
+ border-left: 4px solid white;
+ padding-left: 8px;
+}
+#request-detail td.spacer {
+ width: 30px;
+}
+#request-detail .discussion>td.content>div.activity {
+ position: relative;
+ border: 1px solid #CCC;
+ border-radius: 4px;
+ background: white;
+ margin-left: -15px;
+}
+#request-detail .discussion>td.content>div.activity:before {
+ display: inline-block;
+ position: absolute;
+ top: 10px;
+ left: -8px;
+ border-top: 8px solid transparent;
+ border-bottom: 8px solid transparent;
+ border-right: 8px solid #CBCBCB;
+ content: "";
+}
+#request-detail .discussion>td.content>.activity:after {
+ display: inline-block;
+ position: absolute;
+ top: 11px;
+ left: -7px;
+ border-top: 7px solid transparent;
+ border-bottom: 7px solid transparent;
+ border-right: 7px solid #F5F5F5;
+ content: "";
+}
+#request-detail div.activity>.body>.actions {
+ margin-top: 8px;
+}
+#request-detail div.activity>.body>.actions>a {
+ margin-right: 0;
+ font-size: 13px;
+}
+#request-detail .discussion+.discussion>td {
+ padding-top: 30px;
+}
+#request-detail .discussion:last-child>td {
+ padding-bottom: 20px;
+}
+#request-detail .non-discussion:last-child>td.content {
+ padding-bottom: 20px;
+}
+#request-detail .non-discussion>td.content {
+ border-top: 1px solid #EEE;
+}
+#request-detail .discussion+.non-discussion>td.content,
+#request-detail .update+.update>td.content {
+ border-top: none;
+}
+#request-detail .discussion>.avatar img {
+ width: 40px;
+ height: 40px;
+}
+#request-detail .non-discussion>td.content {
+ font-size: 13px;
+ padding: 10px 0;
+}
+
+#request-detail div.activity>.head, #request-detail div.activity>.head a,
+#request-detail div.activity>.body>.actions a {
+ color: #999;
+}
+
+#request-detail div.activity .operations>* {
+ color: #DDD;
+ margin-left: 4px;
+}
+#request-detail div.activity:hover .operations>* {
+ color: #999;
+}
+#request-detail div.activity .user a {
+ color: #666;
+ font-weight: bold;
+ font-style: normal;
+}
+#request-detail tr.activity.since-changes {
+ display: none;
+}
+#request-detail tr.activity.since-changes.visible {
+ display: table-row;
+}
+#request-detail .non-discussion div.activity,
+#request-detail tr.activity.since-changes td.content>div {
+ margin-left: -14px;
+}
+#request-detail tr.activity.since-changes td.content>div a {
+ font-size: 16px;
+}
+
+#request-detail .non-discussion div.activity>.head>.icon,
+#request-detail tr.activity.since-changes .icon {
+ border-radius: 13px;
+ background: #5CA7F8;
+ width: 26px;
+ height: 26px;
+ color: white;
+ padding: 6px;
+ margin-right: 4px;
+}
+#request-detail .discussion div.activity>.head {
+ padding: 10px;
+ border-radius: 4px 4px 0 0;
+ background: #F5F5F5;
+}
+#request-detail .discussion div.activity>.body {
+ padding: 12px;
+}
+#request-detail .non-discussion div.activity>.body {
+ margin: 8px 0 0 36px;
+}
+#request-detail .non-discussion div.activity .user a {
+ font-weight: normal;
+}
+
+#request-detail .non-discussion>td.avatar img {
+ display: none;
+}
+#request-detail .activities tr.activity>.content>.update {
+ color: #777;
+ margin-left: -7px;
+}
+#request-detail .activities tr.activity>.content>.update>.alert {
+ margin: 0 0 8px 28px;
+}
+#request-detail .activities tr.activity>.content>.update a {
+ color: #555;
+}
+#request-detail .activities tr.activity>.content>.update td {
+ padding: 4px 0;
+}
+#request-detail .activities tr.activity>.content>.update td.hash-and-status {
+ width: 157px;
+}
+#request-detail .activities tr.activity>.content>.update td.hash-and-status>div {
+ margin-left: 8px;
+}
+#request-detail .update+.update>td.content>div {
+ margin-top: -16px;
+}
+#request-detail .update+.update>td.content>div>.alert {
+ margin-top: 16px;
+}
+#request-detail .discussion+.non-discussion>td.content {
+ padding-top: 16px;
+}
+#request-detail .non-discussion+.discussion>td {
+ padding-top: 8px;
+}
+
+#request-detail .activities tr.activity>.content>.update td.detail {
+ padding-left: 13px;
+ padding-right: 8px;
+}
+#request-detail .activities tr.activity>.content>.update td.detail .commit-message {
+ padding-left: 4px;
+}
+#request-detail .activities tr.activity>.content>.update td.icon {
+ width: 1px;
+ padding-top: 7px;
+}
+#request-detail .activities tr.activity>.content>.update td.status {
+ text-align: right;
+ white-space: nowrap;
+}
+#request-detail .activities tr.activity>.content>.update tr:hover td {
+ background: #F5F5F5;
+}
+#request-detail .activities tr.activity>.content>.update tr.integrated td.icon .fa {
+ color: #35A612;
+}
+#request-detail .activities tr.activity>.content>.update tr.rebased td a {
+ color: #AAA;
+}
+#request-detail .activities tr.activity>.content>.update tr.rebased td.icon .fa {
+ color: #CCC;
+}
+#request-detail .activities tr.activity>.content>.update tr.rebased img.avatar {
+ opacity: 0.5;
+}
+#request-detail .activities tr.activity>.content>.update td.status .successful {
+ color: #35A612;
+}
+#request-detail .activities tr.activity>.content>.update td.status .failed {
+ color: #F93333;
+}
+#request-detail .activities tr.activity>.content>.update td.status .running {
+ color: #AFAD1F;
+}
+#request-detail .activities tr.activity.new>.avatar {
+ border-color: #4667EE;
+}
+
+#request-detail .activities tr.activity>.content>.assigned>.head>.icon {
+ padding-left: 8px;
+}
+#request-detail .activities tr.activity>.content>.discarded>.head>.icon {
+ background: #F93333;
+ padding-left: 7px;
+}
+#request-detail .activities tr.activity>.content>.integrated>.head>.icon {
+ background: #35A612;
+}
+#request-detail .activities tr.activity>.content>.approved>.head>.icon,
+#request-detail .activities tr.activity>.content>.completed-verification-successful>.head>.icon {
+ background: #35A612;
+}
+#request-detail .activities tr.activity>.content>.disapproved>.head>.icon,
+#request-detail .activities tr.activity>.content>.completed-verification-failed>.head>.icon {
+ background: #F93333;
+}
+#request-detail .activities tr.activity>.content>.deleted-review>.head>.icon,
+#request-detail .activities tr.activity>.content>.deleted-verification>.head>.icon,
+#request-detail .activities tr.activity>.content>.deleted-source-branch>.head>.icon {
+ padding-top: 6px;
+ padding-left: 8px;
+}
+#request-detail .activities tr.activity>.content>.restored-source-branch>.head>.icon,
+#request-detail .activities tr.activity>.content>.reopened>.head>.icon {
+ padding-left: 8px;
+}
+#request-detail .activities tr.activity>.content>.reference>.head>.icon {
+ padding-left: 8px;
+}
+#request-detail .activities tr.activity>.content>.reference>.head {
+ margin-bottom: 10px;
+}
+#request-detail .activities tr.activity>.content>.reference>.body {
+ margin-left: 36px;
+ font-size: 15px;
+}
+#request-detail .activities tr.activity>.content>.reference>.body a {
+ color: #333;
+}
+#request-detail .activities tr.activity>.content>.reference>.body a .number {
+ color: #999;
+}
+#request-detail .activities tr.activity>.content>.reference>.body .status .help {
+ display: none;
+}
+#request-detail .activities tr.activity>.content>.open .feedback .alert {
+ margin-bottom: 8px;
+}
+
+#request-detail .info>div>div {
+ border-bottom: 1px dotted #BBB;
+ margin-bottom: 20px;
+ color: #666;
+}
+#request-detail .info>div>div:last-child {
+ border-bottom: none;
+ margin-bottom: 0;
+}
+#request-detail .info>div>.assignee, #request-detail .info>div>.reviewers>div,
+#request-detail .info>div>.integration-strategy, #request-detail .info>div>.watch {
+ padding-bottom: 20px;
+}
+
+#request-detail .info .help-block {
+ margin-bottom: 0;
+ color: #888;
+}
+#request-detail .info .fa.small {
+ font-size: 14px;
+ vertical-align: middle;
+}
+#request-detail .info label {
+ margin-right: 4px;
+ font-weight: normal;
+}
+#request-detail .info .select2-container {
+ width: 100%;
+}
+#request-detail .info .avatar {
+ width: 24px;
+ height: 24px;
+}
+#request-detail .info .select2-container .avatar {
+ width: 20px;
+ height: 20px;
+}
+
+#request-detail .info .reviewers ul {
+ margin-bottom: 0;
+}
+#request-detail .info .reviewers li {
+ margin-right: 16px;
+ margin-bottom: 20px;
+ position: relative;
+}
+#request-detail .info .reviewers li a:hover {
+ text-decoration: none;
+}
+
+#request-detail .info .reviewers .review-result {
+ top: -4px;
+}
+#request-detail .info .manage .help-block {
+ margin-bottom: 12px;
+}