The Unified and Autonomous Development Platform
Partial css work on request overview page.
robin shine49a38fc74c2b
diff --git a/gitplex.core/src/main/java/com/pmease/gitplex/core/comment/Comment.java b/gitplex.core/src/main/java/com/pmease/gitplex/core/comment/Comment.javaindex 9a0620edf2..63a6084088 100644--- a/gitplex.core/src/main/java/com/pmease/gitplex/core/comment/Comment.java+++ b/gitplex.core/src/main/java/com/pmease/gitplex/core/comment/Comment.java@@ -20,10 +20,6 @@ public interface Comment extends Serializable {void saveContent(String content);- boolean isResolved();-- void resolve(boolean resolved);-Repository getRepository();void delete();diff --git a/gitplex.core/src/main/java/com/pmease/gitplex/core/model/PullRequestComment.java b/gitplex.core/src/main/java/com/pmease/gitplex/core/model/PullRequestComment.javaindex f3223bc152..8483cd224d 100644--- a/gitplex.core/src/main/java/com/pmease/gitplex/core/model/PullRequestComment.java+++ b/gitplex.core/src/main/java/com/pmease/gitplex/core/model/PullRequestComment.java@@ -50,8 +50,6 @@ public class PullRequestComment extends AbstractEntity implements InlineComment@Column(nullable=false)private Date date = new Date();- private boolean resolved;-@OneToMany(mappedBy="comment")@OnDelete(action=OnDeleteAction.CASCADE)private Collection<PullRequestCommentReply> replies = new ArrayList<>();@@ -113,21 +111,6 @@ public class PullRequestComment extends AbstractEntity implements InlineCommentGitPlex.getInstance(Dao.class).remove(this);}- @Override- public boolean isResolved() {- return resolved;- }-- public void setResolved(boolean resolved) {- this.resolved = resolved;- }-- @Override- public void resolve(boolean resolved) {- setResolved(resolved);- GitPlex.getInstance(Dao.class).persist(this);- }-@Overridepublic Collection<PullRequestCommentReply> getReplies() {return request.getCommentReplies(this);diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentCollapsing.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentCollapsing.javadeleted file mode 100644index 2b255d61c6..0000000000--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentCollapsing.java+++ /dev/null@@ -1,22 +0,0 @@-package com.pmease.gitplex.web.component.comment;--import org.apache.wicket.ajax.AjaxRequestTarget;--import com.pmease.commons.wicket.AjaxEvent;-import com.pmease.gitplex.core.comment.Comment;--public class CommentCollapsing extends AjaxEvent {-- private final Comment comment;-- public CommentCollapsing(AjaxRequestTarget target, Comment comment) {- super(target);-- this.comment = comment;- }-- public Comment getComment() {- return comment;- }--}diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.htmlindex a158aef916..6464a7b7a8 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.html@@ -5,8 +5,6 @@<span class="operations"><a wicket:id="edit" title="Edit comment"><span class="fa fa-pencil"></span></a><a wicket:id="delete" title="Delete comment"><span class="fa fa-times"></span></a>- <a wicket:id="resolve"></a>- <span wicket:id="resolved" class="fa fa-check" title="This comment is marked as resolved"></span><span wicket:id="additionalOperations"></span></span><a wicket:id="anchor"></a>diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.javaindex 2ead84fb6e..9e7d558306 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/comment/CommentPanel.java@@ -14,7 +14,6 @@ import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink;import org.apache.wicket.behavior.AttributeAppender;import org.apache.wicket.event.Broadcast;import org.apache.wicket.event.IEvent;-import org.apache.wicket.markup.ComponentTag;import org.apache.wicket.markup.head.CssHeaderItem;import org.apache.wicket.markup.head.IHeaderResponse;import org.apache.wicket.markup.html.WebMarkupContainer;@@ -179,52 +178,6 @@ public class CommentPanel extends Panel {}.add(new ConfirmBehavior("Deleting this comment will also delete all its replies. Do you really want to continue?")));- AjaxLink<Void> resolveLink;- head.add(resolveLink = new AjaxLink<Void>("resolve") {-- @Override- public void onClick(AjaxRequestTarget target) {- getComment().resolve(!getComment().isResolved());- if (getComment().isResolved())- send(CommentPanel.this, Broadcast.BUBBLE, new CommentCollapsing(target, getComment()));- if (findPage() != null) // only render this checkbox if the whole comment panel is not replaced- target.add(head);- }-- @Override- protected void onConfigure() {- super.onConfigure();-- setVisible(SecurityUtils.canModify(getComment()));- }-- @Override- protected void onComponentTag(ComponentTag tag) {- super.onComponentTag(tag);-- if (getComment().isResolved()) {- tag.put("class", "fa fa-check-square-o resolve");- tag.put("title", "Mark this comment as unresolved");- } else {- tag.put("class", "fa fa-square-o resolve");- tag.put("title", "Mark this comment as resolved");- }- }-- });- resolveLink.setOutputMarkupId(true);-- head.add(new WebMarkupContainer("resolved") {-- @Override- protected void onConfigure() {- super.onConfigure();-- setVisible(getComment().isResolved() && !SecurityUtils.canModify(getComment()));- }-- });-head.add(newAdditionalCommentOperations("additionalOperations", new AbstractReadOnlyModel<Comment>() {@Overridediff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/ApproveActivityPanel.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/ApproveActivityPanel.htmlindex 649134d612..95fc6079e5 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/ApproveActivityPanel.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/ApproveActivityPanel.html@@ -1,6 +1,6 @@<wicket:panel><div class="approve activity-summary">- <span class="icon fa fa-arrow-up"></span> <span wicket:id="user" class="user"></span>+ <span class="icon fa fa-thumbs-o-up"></span> <span wicket:id="user" class="user"></span>approved pull request <span wicket:id="age"></span> <span class="operations"><span wicket:id="changes"></span></span></div></wicket:panel>\ No newline at end of filediff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.htmlindex 8d0a6f1222..33505f7732 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.html@@ -1,7 +1,3 @@<wicket:panel><div wicket:id="content" class="comment"></div>- <wicket:fragment wicket:id="operationsFrag">- <a wicket:id="collapse" class="fa fa-compress" title="Collapse this comment"></a>- <span wicket:id="changes"></span>- </wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.javaindex 8db134b2f4..8ae8b5d31f 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentActivityPanel.java@@ -1,10 +1,6 @@package com.pmease.gitplex.web.page.repository.pullrequest.requestdetail.overview;import org.apache.wicket.Component;-import org.apache.wicket.ajax.AjaxRequestTarget;-import org.apache.wicket.ajax.markup.html.AjaxLink;-import org.apache.wicket.event.Broadcast;-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;@@ -13,7 +9,6 @@ import com.pmease.gitplex.core.comment.Comment;import com.pmease.gitplex.core.comment.CommentReply;import com.pmease.gitplex.core.model.PullRequest;import com.pmease.gitplex.core.model.PullRequestComment;-import com.pmease.gitplex.web.component.comment.CommentCollapsing;import com.pmease.gitplex.web.component.comment.CommentPanel;@SuppressWarnings("serial")@@ -35,45 +30,14 @@ class CommentActivityPanel extends Panel {@Overrideprotected Component newAdditionalCommentOperations(String id, final IModel<Comment> commentModel) {- Fragment fragment = new Fragment(id, "operationsFrag", CommentActivityPanel.this) {-- @Override- protected void onDetach() {- commentModel.detach();- super.onDetach();- }-- };-- fragment.add(new AjaxLink<Void>("collapse") {-- @Override- public void onClick(AjaxRequestTarget target) {- send(CommentActivityPanel.this, Broadcast.BUBBLE,- new CommentCollapsing(target, commentModel.getObject()));- }-- @Override- protected void onConfigure() {- super.onConfigure();-- setVisible(commentModel.getObject().isResolved());- }-- });-- fragment.add(new SinceChangesLink("changes", new AbstractReadOnlyModel<PullRequest>() {+ return new SinceChangesLink(id, new AbstractReadOnlyModel<PullRequest>() {@Overridepublic PullRequest getObject() {return CommentActivityPanel.this.commentModel.getObject().getRequest();}- }, CommentActivityPanel.this.commentModel.getObject().getDate(), "Changes since this comment"));-- fragment.setRenderBodyOnly(true);-- return fragment;+ }, CommentActivityPanel.this.commentModel.getObject().getDate(), "Changes since this comment");}@Overridediff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentPullRequest.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentPullRequest.javaindex 351c26a671..9ea81de0f9 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentPullRequest.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/CommentPullRequest.java@@ -16,8 +16,6 @@ class CommentPullRequest implements RenderableActivity {private final Long commentId;- private Boolean collapsed;-@Overridepublic Date getDate() {return getComment().getDate();@@ -28,16 +26,6 @@ class CommentPullRequest implements RenderableActivity {return getComment().getUser();}- public boolean isCollapsed() {- if (collapsed == null)- collapsed = getComment().isResolved();- return collapsed;- }-- public void setCollapsed(boolean collapsed) {- this.collapsed = collapsed;- }-public CommentPullRequest(PullRequestComment comment) {this.commentId = comment.getId();}diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/DisapproveActivityPanel.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/DisapproveActivityPanel.htmlindex 044fbe7639..a6bf4c3079 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/DisapproveActivityPanel.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/DisapproveActivityPanel.html@@ -1,6 +1,6 @@<wicket:panel><div class="disapprove activity-summary">- <span class="icon fa fa-arrow-down"></span> <span wicket:id="user" class="user"></span>+ <span class="icon fa fa-thumbs-o-down"></span> <span wicket:id="user" class="user"></span>disapproved pull request <span wicket:id="age"></span> <span class="operations"><span wicket:id="changes"></span></span></div></wicket:panel>\ No newline at end of filediff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.htmlindex 1d8ef9db70..b97cdf0e6f 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.html@@ -33,7 +33,4 @@</div><div wicket:id="comment"></div></div>- <wicket:fragment wicket:id="operationsFrag">- <a wicket:id="collapse" class="fa fa-compress" title="Collapse this comment"></a>- </wicket:fragment></wicket:panel>\ No newline at end of filediff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.javaindex 346d187c09..7748577f7e 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/InlineCommentActivityPanel.java@@ -2,11 +2,8 @@ package com.pmease.gitplex.web.page.repository.pullrequest.requestdetail.overvieimport java.util.List;-import org.apache.wicket.Component;import org.apache.wicket.ajax.AjaxRequestTarget;-import org.apache.wicket.ajax.markup.html.AjaxLink;import org.apache.wicket.behavior.AttributeAppender;-import org.apache.wicket.event.Broadcast;import org.apache.wicket.event.IEvent;import org.apache.wicket.markup.head.IHeaderResponse;import org.apache.wicket.markup.head.OnDomReadyHeaderItem;@@ -15,7 +12,6 @@ import org.apache.wicket.markup.html.basic.Label;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.Fragment;import org.apache.wicket.markup.html.panel.Panel;import org.apache.wicket.model.AbstractReadOnlyModel;import org.apache.wicket.model.IModel;@@ -24,11 +20,9 @@ import com.pmease.commons.lang.diff.DiffLine;import com.pmease.commons.lang.diff.DiffMatchPatch.Operation;import com.pmease.commons.lang.tokenizers.CmToken;import com.pmease.gitplex.core.GitPlex;-import com.pmease.gitplex.core.comment.Comment;import com.pmease.gitplex.core.manager.PullRequestCommentManager;import com.pmease.gitplex.core.model.PullRequestComment;import com.pmease.gitplex.web.component.avatar.AvatarMode;-import com.pmease.gitplex.web.component.comment.CommentCollapsing;import com.pmease.gitplex.web.component.comment.CommentPanel;import com.pmease.gitplex.web.component.userlink.UserLink;import com.pmease.gitplex.web.model.UserModel;@@ -205,29 +199,6 @@ class InlineCommentActivityPanel extends Panel {*/add(new CommentPanel("comment", commentModel) {- @Override- protected Component newAdditionalCommentOperations(String id, IModel<Comment> comment) {- Fragment fragment = new Fragment(id, "operationsFrag", InlineCommentActivityPanel.this);- fragment.add(new AjaxLink<Void>("collapse") {-- @Override- public void onClick(AjaxRequestTarget target) {- send(InlineCommentActivityPanel.this, Broadcast.BUBBLE,- new CommentCollapsing(target, commentModel.getObject()));- }-- @Override- protected void onConfigure() {- super.onConfigure();-- setVisible(commentModel.getObject().isResolved());- }-- });- fragment.setRenderBodyOnly(true);- return fragment;- }-@Overridepublic void onEvent(IEvent<?> event) {super.onEvent(event);diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.htmlindex ed7b57d875..a48119f2d9 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.html@@ -69,18 +69,6 @@</td></tr></table>- <wicket:fragment wicket:id="collapsedCommentFrag">- <div class="collapsed comment">- <div class="head">- <span wicket:id="user" class="user"></span> <span wicket:id="action"></span> <span wicket:id="age"></span>- <span class="operations">- <span class="fa fa-check" title="This comment is marked as resolved"></span>- <a wicket:id="expand" class="fa fa-expand" title="Expand this comment"></a>- </span>- </div>- <div wicket:id="body" class="body"></div>- </div>- </wicket:fragment><wicket:fragment wicket:id="assigneeEditFrag"><label>Assigned To: <span wicket:id="help" class="fa fa-question-circle pointer small"></span></label><div>diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.javaindex d65bcb0e49..912e1d1d88 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/RequestOverviewPage.java@@ -11,7 +11,6 @@ import org.apache.wicket.Component;import org.apache.wicket.ajax.AjaxRequestTarget;import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior;import org.apache.wicket.ajax.form.OnChangeAjaxBehavior;-import org.apache.wicket.ajax.markup.html.AjaxLink;import org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink;import org.apache.wicket.behavior.AttributeAppender;import org.apache.wicket.event.Broadcast;@@ -63,7 +62,6 @@ import com.pmease.gitplex.core.security.SecurityUtils;import com.pmease.gitplex.web.component.avatar.AvatarByUser;import com.pmease.gitplex.web.component.avatar.AvatarMode;import com.pmease.gitplex.web.component.branchlink.BranchLink;-import com.pmease.gitplex.web.component.comment.CommentCollapsing;import com.pmease.gitplex.web.component.comment.CommentInput;import com.pmease.gitplex.web.component.comment.CommentRemoved;import com.pmease.gitplex.web.component.pullrequest.ReviewResultIcon;@@ -77,7 +75,6 @@ import com.pmease.gitplex.web.model.UserModel;import com.pmease.gitplex.web.page.repository.pullrequest.PullRequestChanged;import com.pmease.gitplex.web.page.repository.pullrequest.requestdetail.RequestDetailPage;import com.pmease.gitplex.web.page.repository.pullrequest.requestlist.RequestListPage;-import com.pmease.gitplex.web.utils.DateUtils;import de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig;import de.agilecoders.wicket.core.markup.html.bootstrap.components.TooltipConfig.Placement;@@ -116,12 +113,6 @@ public class RequestOverviewPage extends RequestDetailPage {}private Component newActivityRow(final String id, RenderableActivity activity) {- final CommentPullRequest commentActivity;- if (activity instanceof CommentPullRequest)- commentActivity = (CommentPullRequest) activity;- else- commentActivity = null;-final WebMarkupContainer row = new WebMarkupContainer(id, Model.of(activity)) {@Override@@ -132,43 +123,10 @@ public class RequestOverviewPage extends RequestDetailPage {CommentRemoved commentRemoved = (CommentRemoved) event.getPayload();remove();commentRemoved.getTarget().appendJavaScript(String.format("$('#%s').remove();", getMarkupId()));- } else if (event.getPayload() instanceof CommentCollapsing) {- Preconditions.checkNotNull(commentActivity);- commentActivity.setCollapsed(true);- Component row = newActivityRow(id, commentActivity);- replaceWith(row);- ((CommentCollapsing) event.getPayload()).getTarget().add(row);- }+ }}};- if (commentActivity != null && commentActivity.isCollapsed()) {- PullRequestComment comment = commentActivity.getComment();-- Fragment fragment = new Fragment(DETAIL_ID, "collapsedCommentFrag", RequestOverviewPage.this);-- fragment.add(new UserLink("user", new UserModel(comment.getUser()), AvatarMode.NAME));- if (comment.getInlineInfo() != null)- fragment.add(new Label("action", "added inline comment on file '" + comment.getBlobIdent().path + "'"));- else- fragment.add(new Label("action", "commented"));- fragment.add(new Label("age", DateUtils.formatAge(comment.getDate())));-- fragment.add(new Label("body", comment.getContent()));-- fragment.add(new AjaxLink<Void>("expand") {-- @Override- public void onClick(AjaxRequestTarget target) {- RenderableActivity activity = (RenderableActivity) row.getDefaultModelObject();- row.replace(activity.render(DETAIL_ID));- commentActivity.setCollapsed(false);- target.add(row);- }-- });- row.add(fragment);- }row.setOutputMarkupId(true);@@ -193,13 +151,6 @@ public class RequestOverviewPage extends RequestDetailPage {protected String load() {String cssClasses = "";RenderableActivity activity = (RenderableActivity) row.getDefaultModelObject();- if (activity instanceof CommentPullRequest) {- CommentPullRequest commentActivity = (CommentPullRequest) activity;- if (commentActivity.isCollapsed())- cssClasses += " collapsed";- if (commentActivity.getComment().isResolved())- cssClasses += " resolved";- }if (lastVisitDate != null && lastVisitDate.before(activity.getDate()))cssClasses += " new";return cssClasses;diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/UpdateActivityPanel.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/UpdateActivityPanel.htmlindex f878818e4c..f0e6baffaa 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/UpdateActivityPanel.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/UpdateActivityPanel.html@@ -2,7 +2,7 @@<div class="update"><div class="head activity-summary"><span class="icon fa fa-ext fa-repo-push"></span>- Update #<span wicket:id="updateNo"></span> pushed <span wicket:id="age"></span>+ <span class="update-no">Update #<span wicket:id="updateNo"></span></span> was pushed <span wicket:id="age"></span><span class="operations"><a wicket:id="changes" title="Changes of this update"></a></span></div><div class="body">diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/request-overview.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/request-overview.cssindex 85fe106ed1..6c22c2c8a9 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/request-overview.css+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/repository/pullrequest/requestdetail/overview/request-overview.css@@ -10,9 +10,6 @@border-top: 1px solid #E5E5E5;padding: 12px 0;}-#request-detail .activities>table>tbody>tr.discussion.collapsed>td {- padding: 8px 0;-}#request-detail .activities>table>tbody>tr.discussion>td.avatar {width: 1px;padding-left: 12px;@@ -24,86 +21,91 @@#request-detail .activities>table>tbody>tr.activity>td.avatar {border-right: 1px dashed #DDD;}-#request-detail .activities>table>tbody>tr.activity.discussion>td.avatar {border-right: none;}#request-detail .activities>table>tbody>tr.discussion+.non-discussion>td {border-top: 1px solid #E5E5E5;}-#request-detail .activities>table>tbody>tr.discussion+.non-update>td {- padding-top: 8px;-}#request-detail .activities>table>tbody>tr.discussion>.avatar img {width: 40px;height: 40px;}-#request-detail .activities>table>tbody>tr.non-discussion>td {- padding-left: 6px;+#request-detail .activities>table>tbody>tr.non-discussion>td.detail {font-size: 13px;+ padding: 8px 0;+}+#request-detail .activities>table>tbody>tr.discussion+.non-discussion>td.detail {+ padding-top: 16px;+}+#request-detail .activities>table>tbody>tr.non-discussion .activity-summary {+ margin-left: -13px;+}+#request-detail .activities>table>tbody>tr.non-discussion .activity-summary .icon {+ border-radius: 12px;+ background: #5CA7F8;+ width: 26px;+ height: 26px;+ color: white;+ padding: 6px;+ margin-right: 4px;}#request-detail .activities>table>tbody>tr.non-discussion>td.avatar img {display: none;}-#request-detail .activities>table>tbody>tr.non-discussion>.activity>div.summary .user a {+#request-detail .activities>table>tbody>tr.non-discussion .activity-summary .user a {font-weight: normal;}-#request-detail .activities>table>tbody>tr.update+.update>td>table {- margin-top: -12px;+#request-detail .activities .activity>.detail>.update .update-no {+ color: #555;}--#request-detail .activities .activity>.commits {+#request-detail .activities .activity>.detail>.update>.body {color: #777;- margin-left: -32px;+ margin-left: -7px;}-#request-detail .activities .activity>.commits a {+#request-detail .activities .activity>.detail>.update>.body a {color: #555;}-#request-detail .activities .activity>.commits td {- padding-top: 8px;- padding-bottom: 8px;-}-#request-detail .activities .non-update+.update>td tr:first-child td {- border-top: none;-}-#request-detail .activities .activity>.commits td.icon {- width: 32px;- white-space: nowrap;- text-align: right;+#request-detail .activities .activity>.detail>.update>.body td {+ padding: 2px 0;}-#request-detail .activities .activity>.commits tr.integrated td.icon .fa {- color: #35A612;-}-#request-detail .activities .activity>.commits td.detail {- padding-left: 15px;+#request-detail .activities .activity>.detail>.update>.body td.detail {+ padding-left: 14px;padding-right: 8px;}-#request-detail .activities .activity>.commits td.status {+#request-detail .activities .activity>.detail>.update>.body td.icon {+ width: 1px;+ vertical-align: middle;+ background: white;+}+#request-detail .activities .activity>.detail>.update>.body td.status {text-align: right;}-#request-detail .activities .activity>.commits tr:hover td.detail,-#request-detail .activities .activity>.commits tr:hover td.status {+#request-detail .activities .activity>.detail>.update>.body tr:hover td {background: #F5F5F5;}-#request-detail .activities .activity>.commits td.status a.commit-hash {+#request-detail .activities .activity>.detail>.update>.body td.status a.commit-hash {font-family: monospace;}-#request-detail .activities .activity>.commits tr.rebased td a {+#request-detail .activities .activity>.detail>.update>.body tr.integrated td.icon .fa {+ color: #35A612;+}+#request-detail .activities .activity>.detail>.update>.body tr.rebased td a {color: #AAA;}-#request-detail .activities .activity>.commits tr.rebased td.icon .fa {+#request-detail .activities .activity>.detail>.update>.body tr.rebased td.icon .fa {color: #CCC;}-#request-detail .activities .activity>.commits tr.rebased img.avatar {+#request-detail .activities .activity>.detail>.update>.body tr.rebased img.avatar {opacity: 0.5;}-#request-detail .activities .activity>.commits td.status .successful {+#request-detail .activities .activity>.detail>.update>.body td.status .successful {color: #35A612;}-#request-detail .activities .activity>.commits td.status .failed {+#request-detail .activities .activity>.detail>.update>.body td.status .failed {color: #F93333;}-#request-detail .activities .activity>.commits td.status .running {+#request-detail .activities .activity>.detail>.update>.body td.status .running {color: #AFAD1F;}#request-detail .activities .activity.new>.avatar {@@ -134,42 +136,23 @@margin-bottom: 4px;}-#request-detail .activities .activity.non-discussion>.activity>.summary .fa {- background: white;-}-#request-detail .activities .activity>div>.fa {- vertical-align: middle;- margin: 0 8px 0 -16px;- font-size: 24px;-}-#request-detail .activities .activity>.update>.fa {- margin: 0 8px 0 -15px;- font-size: 20px;-}-#request-detail .activities .activity>.discard>.fa {- color: #F93333;+#request-detail .activities .activity>.detail>.discard>.icon {+ background: #F93333;}-#request-detail .activities .activity>.integrate>.fa {- color: #35A612;- margin-left: -20px;+#request-detail .activities .activity>.detail>.integrate>.icon {+ background: #35A612;}-#request-detail .activities .activity>.approve>.fa {- color: #35A612;- margin-left: -18px;+#request-detail .activities .activity>.detail>.approve>.icon {+ background: #35A612;}-#request-detail .activities .activity>.disapprove>.fa {- color: #F93333;- margin-left: -18px;+#request-detail .activities .activity>.detail>.disapprove>.icon {+ background: #F93333;}-#request-detail .activities .activity>.undo-review>.fa {- color: #666;- margin-left: -14px;+#request-detail .activities .activity>.detail>.undo-review>.icon {+ background: #666;}-#request-detail .activities .activity>.reopen>.fa {- color: #666;- font-size: 30px;- margin-left: -20px;- margin-right: 7px;+#request-detail .activities .activity>.detail>.reopen>.icon {+ background: #666;}#request-detail .info>div>div {@@ -233,18 +216,3 @@#request-detail .info .reviewers .review-result {top: 12px;}--.collapsed>.avatar img {- opacity: 0.3;-}-.collapsed>.activity>div.summary {- margin-bottom: 0;- color: #AAA;-}-.collapsed>.activity>div.summary .user a {- color: #888;-}-.collapsed>.activity>div.detail {- text-overflow: ellipsis; overflow: hidden;- max-width: 600px; color: #777; white-space: nowrap;-}