The Unified and Autonomous Development Platform
Improve branches and tags page to be more tidy
robin shine1f39516929a2
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/contributorpanel/contributor.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/contributorpanel/contributor.cssindex 7b17d87d8b..edf67b044f 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/component/contributorpanel/contributor.css+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/component/contributorpanel/contributor.css@@ -1,7 +1,6 @@-.contributor {- color: #666;-}-.contributor .name {- color: #666;- font-weight: bold;-}+.contributor {+ color: #999;+}+.contributor .name {+ color: #666;+}diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.htmlindex 3bba5d66b0..2b8f8316ff 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.html@@ -17,20 +17,20 @@<table wicket:id="branches" class="table table-hover table-condensed"><tr wicket:id="branches"><td class="detail">- <a wicket:id="branchLink" class="name"><span wicket:id="name"></span></a> <span class="label label-default" wicket:id="default">default</span>- <span wicket:id="actions" class="actions">- <a wicket:id="unwatchRequests" title="You are watching pull requests of this branch, click to unwatch"><i class="fa fa-eye"></i></a>- <a wicket:id="watchRequests" title="You are not watching pull requests of this branch, click to watch"><i class="fa fa-eye-slash"></i></a>- <a wicket:id="delete" title="Delete this branch"><i class="fa fa-trash"></i></a>- <a wicket:id="makeDefault" class="btn btn-xs btn-default">make default</a>- </span>+ <div class="branch">+ <a wicket:id="branchLink" class="name"><span wicket:id="name"></span></a>+ <span class="label label-default" wicket:id="default">default</span>+ <span class="btn-group">+ <a wicket:id="makeDefault" class="make-default btn btn-xs btn-default"><i class="fa fa-check"></i> make default</a>+ </span>+ </div><div class="commit">- <i class="fa fa-ext fa-commit"></i>- <span wicket:id="commitHash"></span>- <span class="middot"></span>- <a wicket:id="commitLink"><span wicket:id="shortMessage"></span></a>- <span class="middot"></span>- <span wicket:id="age"></span>+ <span class="btn-group">+ <a wicket:id="hashLink" class="hash btn btn-default btn-xs"><span wicket:id="hash"></span></a>+ <a wicket:id="copyHash" class="btn btn-default btn-xs"><i class="fa fa-clipboard"></i></a>+ </span>+ <span wicket:id="contributor"></span>+ <a wicket:id="messageLink" class="message"><span wicket:id="message"></span></a></div></td><td class="behind behind-ahead">@@ -49,6 +49,13 @@<div class="bar" wicket:id="aheadBar"></div></div></td>+ <td wicket:id="actions" class="actions">+ <span class="btn-group">+ <a wicket:id="unwatchRequests" class="btn btn-default" title="You are watching pull requests of this branch, click to unwatch"><i class="fa fa-eye"></i></a>+ <a wicket:id="watchRequests" class="btn btn-default" title="You are not watching pull requests of this branch, click to watch"><i class="fa fa-eye-slash"></i></a>+ <a wicket:id="delete" class="btn btn-default" title="Delete this branch"><i class="fa fa-trash"></i></a>+ </span>+ </td></tr></table><div class="center"><ul wicket:id="branchesPageNav"></ul></div>diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.javaindex 302b1a519e..84e89e1de7 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/DepotBranchesPage.java@@ -51,6 +51,7 @@ import com.pmease.commons.git.GitUtils;import com.pmease.commons.git.RefInfo;import com.pmease.commons.util.StringUtils;import com.pmease.commons.wicket.behavior.OnTypingDoneBehavior;+import com.pmease.commons.wicket.behavior.clipboard.CopyClipboardBehavior;import com.pmease.commons.wicket.component.modal.ModalLink;import com.pmease.gitplex.core.GitPlex;import com.pmease.gitplex.core.entity.BranchWatch;@@ -62,7 +63,7 @@ import com.pmease.gitplex.core.manager.PullRequestManager;import com.pmease.gitplex.core.security.SecurityUtils;import com.pmease.gitplex.web.component.branchchoice.BranchChoiceProvider;import com.pmease.gitplex.web.component.branchchoice.BranchSingleChoice;-import com.pmease.gitplex.web.component.commithash.CommitHashPanel;+import com.pmease.gitplex.web.component.contributorpanel.ContributorPanel;import com.pmease.gitplex.web.component.revisionpicker.RevisionPicker;import com.pmease.gitplex.web.page.depot.DepotPage;import com.pmease.gitplex.web.page.depot.NoBranchesPage;@@ -74,7 +75,6 @@ import com.pmease.gitplex.web.page.depot.pullrequest.requestlist.RequestListPageimport com.pmease.gitplex.web.page.depot.pullrequest.requestlist.SearchOption;import com.pmease.gitplex.web.page.depot.pullrequest.requestlist.SearchOption.Status;import com.pmease.gitplex.web.page.depot.pullrequest.requestlist.SortOption;-import com.pmease.gitplex.web.util.DateUtils;import de.agilecoders.wicket.core.markup.html.bootstrap.common.NotificationPanel;import de.agilecoders.wicket.core.markup.html.bootstrap.navigation.ajax.BootstrapAjaxPagingNavigator;@@ -423,109 +423,7 @@ public class DepotBranchesPage extends DepotPage {link.add(new Label("name", branch));item.add(link);- WebMarkupContainer actionsContainer = new WebMarkupContainer("actions");- item.add(actionsContainer.setOutputMarkupId(true));-- actionsContainer.add(new AjaxLink<Void>("unwatchRequests") {-- @Override- public void onClick(AjaxRequestTarget target) {- BranchWatch watch = branchWatchesModel.getObject().get(branch);- if (watch != null) {- GitPlex.getInstance(BranchWatchManager.class).delete(watch);- branchWatchesModel.getObject().remove(branch);- }- target.add(actionsContainer);- }-- @Override- protected void onConfigure() {- super.onConfigure();- setVisible(getLoginUser() != null && branchWatchesModel.getObject().containsKey(branch));- }-- });- actionsContainer.add(new AjaxLink<Void>("watchRequests") {-- @Override- public void onClick(AjaxRequestTarget target) {- BranchWatch watch = new BranchWatch();- watch.setDepot(getDepot());- watch.setBranch(branch);- watch.setUser(getLoginUser());- GitPlex.getInstance(BranchWatchManager.class).save(watch);- target.add(actionsContainer);- }-- @Override- protected void onConfigure() {- super.onConfigure();- setVisible(getLoginUser() != null && !branchWatchesModel.getObject().containsKey(branch));- }-- });-- actionsContainer.add(new ModalLink("delete") {-- @Override- protected Component newContent(String id) {- Fragment fragment = new Fragment(id, "confirmDeleteBranchFrag", DepotBranchesPage.this);- PullRequestManager pullRequestManager = GitPlex.getInstance(PullRequestManager.class);- if (!pullRequestManager.findAllOpen(new DepotAndBranch(getDepot(), branch)).isEmpty()) {- Fragment bodyFrag = new Fragment("body", "openRequestsFrag", DepotBranchesPage.this);- SearchOption searchOption = new SearchOption();- searchOption.setStatus(Status.OPEN);- searchOption.setBranch(branch);- PageParameters params = RequestListPage.paramsOf(getDepot(), searchOption, new SortOption());- bodyFrag.add(new BookmarkablePageLink<Void>("openRequests", RequestListPage.class, params));- bodyFrag.add(new Label("branch", branch));- fragment.add(bodyFrag);- } else {- fragment.add(new Label("body", "You selected to delete branch " + branch));- }- fragment.add(new AjaxLink<Void>("delete") {-- @Override- public void onClick(AjaxRequestTarget target) {- getDepot().deleteBranch(branch);- if (branch.equals(baseBranch)) {- baseBranch = getDepot().getDefaultBranch();- target.add(baseChoice);- }- target.add(pagingNavigator);- target.add(branchesContainer);- target.add(noBranchesContainer);- close(target);- }-- });- fragment.add(new AjaxLink<Void>("cancel") {-- @Override- public void onClick(AjaxRequestTarget target) {- close(target);- }-- });- return fragment;- }-- @Override- protected void onConfigure() {- super.onConfigure();-- RefInfo ref = item.getModelObject();- if (!getDepot().getDefaultBranch().equals(branch)- && SecurityUtils.canPushRef(getDepot(), ref.getRef().getName(), ref.getRef().getObjectId(), ObjectId.zeroId())) {- setVisible(true);- } else {- setVisible(false);- }- }-- });-- actionsContainer.add(new AjaxLink<Void>("makeDefault") {+ item.add(new AjaxLink<Void>("makeDefault") {@Overridepublic void onClick(AjaxRequestTarget target) {@@ -542,16 +440,6 @@ public class DepotBranchesPage extends DepotPage {});- RevCommit lastCommit = getDepot().getRevCommit(ref.getRef().getObjectId());-- PageParameters params = CommitDetailPage.paramsOf(getDepot(), lastCommit.name());- link = new BookmarkablePageLink<Void>("commitLink", CommitDetailPage.class, params);- link.add(new Label("shortMessage", lastCommit.getShortMessage()));- item.add(link);-- item.add(new CommitHashPanel("commitHash", lastCommit.name()));- item.add(new Label("age", DateUtils.formatAge(lastCommit.getCommitterIdent().getWhen())));-item.add(new WebMarkupContainer("default") {@Override@@ -562,6 +450,19 @@ public class DepotBranchesPage extends DepotPage {});+ RevCommit lastCommit = getDepot().getRevCommit(ref.getRef().getObjectId());+ PageParameters params = CommitDetailPage.paramsOf(getDepot(), lastCommit.name());++ link = new BookmarkablePageLink<Void>("hashLink", CommitDetailPage.class, params);+ link.add(new Label("hash", GitUtils.abbreviateSHA(lastCommit.name())));+ item.add(link);+ item.add(new WebMarkupContainer("copyHash").add(new CopyClipboardBehavior(Model.of(lastCommit.name()))));++ item.add(new ContributorPanel("contributor", lastCommit.getAuthorIdent(), lastCommit.getCommitterIdent(), true));+ link = new BookmarkablePageLink<Void>("messageLink", CommitDetailPage.class, params);+ link.add(new Label("message", lastCommit.getShortMessage()));+ item.add(link);+AheadBehind ab = Preconditions.checkNotNull(aheadBehindsModel.getObject().get(lastCommit));item.add(new Link<Void>("behindLink") {@@ -685,6 +586,109 @@ public class DepotBranchesPage extends DepotPage {}});++ WebMarkupContainer actionsContainer = new WebMarkupContainer("actions");+ item.add(actionsContainer.setOutputMarkupId(true));++ actionsContainer.add(new AjaxLink<Void>("unwatchRequests") {++ @Override+ public void onClick(AjaxRequestTarget target) {+ BranchWatch watch = branchWatchesModel.getObject().get(branch);+ if (watch != null) {+ GitPlex.getInstance(BranchWatchManager.class).delete(watch);+ branchWatchesModel.getObject().remove(branch);+ }+ target.add(actionsContainer);+ }++ @Override+ protected void onConfigure() {+ super.onConfigure();+ setVisible(getLoginUser() != null && branchWatchesModel.getObject().containsKey(branch));+ }++ });+ actionsContainer.add(new AjaxLink<Void>("watchRequests") {++ @Override+ public void onClick(AjaxRequestTarget target) {+ BranchWatch watch = new BranchWatch();+ watch.setDepot(getDepot());+ watch.setBranch(branch);+ watch.setUser(getLoginUser());+ GitPlex.getInstance(BranchWatchManager.class).save(watch);+ target.add(actionsContainer);+ }++ @Override+ protected void onConfigure() {+ super.onConfigure();+ setVisible(getLoginUser() != null && !branchWatchesModel.getObject().containsKey(branch));+ }++ });++ actionsContainer.add(new ModalLink("delete") {++ @Override+ protected Component newContent(String id) {+ Fragment fragment = new Fragment(id, "confirmDeleteBranchFrag", DepotBranchesPage.this);+ PullRequestManager pullRequestManager = GitPlex.getInstance(PullRequestManager.class);+ if (!pullRequestManager.findAllOpen(new DepotAndBranch(getDepot(), branch)).isEmpty()) {+ Fragment bodyFrag = new Fragment("body", "openRequestsFrag", DepotBranchesPage.this);+ SearchOption searchOption = new SearchOption();+ searchOption.setStatus(Status.OPEN);+ searchOption.setBranch(branch);+ PageParameters params = RequestListPage.paramsOf(getDepot(), searchOption, new SortOption());+ bodyFrag.add(new BookmarkablePageLink<Void>("openRequests", RequestListPage.class, params));+ bodyFrag.add(new Label("branch", branch));+ fragment.add(bodyFrag);+ } else {+ fragment.add(new Label("body", "You selected to delete branch " + branch));+ }+ fragment.add(new AjaxLink<Void>("delete") {++ @Override+ public void onClick(AjaxRequestTarget target) {+ getDepot().deleteBranch(branch);+ if (branch.equals(baseBranch)) {+ baseBranch = getDepot().getDefaultBranch();+ target.add(baseChoice);+ }+ target.add(pagingNavigator);+ target.add(branchesContainer);+ target.add(noBranchesContainer);+ close(target);+ }++ });+ fragment.add(new AjaxLink<Void>("cancel") {++ @Override+ public void onClick(AjaxRequestTarget target) {+ close(target);+ }++ });+ return fragment;+ }++ @Override+ protected void onConfigure() {+ super.onConfigure();++ RefInfo ref = item.getModelObject();+ if (!getDepot().getDefaultBranch().equals(branch)+ && SecurityUtils.canPushRef(getDepot(), ref.getRef().getName(), ref.getRef().getObjectId(), ObjectId.zeroId())) {+ setVisible(true);+ } else {+ setVisible(false);+ }+ }++ });+}});diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/depot-branches.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/depot-branches.cssindex a8df73b95d..4ddcb87682 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/depot-branches.css+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/branches/depot-branches.css@@ -5,21 +5,29 @@#repo-branches>.list>.head>.base {width: 240px;}-#repo-branches>.list>table .actions {- margin-left: 16px;-}-#repo-branches>.list>table .actions>.btn {+#repo-branches>.list>table .branch .make-default {display: none;}-#repo-branches>.list>table>tbody>tr:hover .actions>.btn {+#repo-branches>.list>table>tbody>tr:hover .branch .make-default {display: inline;}-#repo-branches>.list>table .actions>a {+#repo-branches>.list>table td.detail>.branch {+ height: 24px;+}+#repo-branches>.list>table td.detail>.branch>.name {+ font-weight: bold;+ font-size: 16px;+ color: #555;margin-right: 8px;- color: #333;}-#repo-branches>.list>table td {- white-space: nowrap;+#repo-branches>.list>table td.detail>.commit {+ margin: 8px 0;+}+#repo-branches>.list>table td.detail>.commit>* {+ margin-right: 4px;+}+#repo-branches>.list>table td.detail>.commit>.message {+ color: #666;}#repo-branches>.list>table td.behind {padding-right: 0;@@ -33,13 +41,13 @@#repo-branches>.list>table td.behind-ahead div.text {margin: 0 8px;}-#repo-branches>.list>table td.behind-ahead em {- font-style: normal;- color: #666;-}#repo-branches>.list>table td.behind-ahead {font-size: 13px;padding-top: 12px;+ width: 20%;+}+#repo-branches>.list>table td.behind-ahead a {+ color: #555;}#repo-branches>.list>table .bar {height: 6px;@@ -64,21 +72,12 @@border-radius: 2px;vertical-align: middle;}-#repo-branches>.list>table td.detail a.name {- font-weight: bold;- font-size: 16px;-}-#repo-branches>.list>table td.detail .commit {- margin: 8px 0;- font-size: 12px;- color: #666;-}-#repo-branches>.list>table td.detail .commit .fa {- color: #666;-}-#repo-branches>.list>table td.detail input.commit-hash {- border: 1px dotted #999;++#repo-branches>.list>table td.actions {+ text-align: right;+ width: 90px;}+#searching-branches {position: absolute;left: 50%;diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.htmlindex 680c1b7d6b..c9413003bf 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.html+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.html@@ -1,81 +1,85 @@-<html xmlns:wicket>-<wicket:extend>- <div id="repo-tags">- <div class="list">- <div class="head clearfix">- <div class="pull-left">- <input wicket:id="searchTags" class="form-control search" placeholder="Search tags"></input>- </div>- <div class="pull-left">- <a wicket:id="createTag" class="btn btn-default"><i class="fa fa-plus"></i> Create Tag</a>- </div>- </div>- <table wicket:id="tagsContainer" class="table table-hover table-condensed">- <tr wicket:id="tags">- <td class="detail">- <div class="tag">- <a wicket:id="tagLink" class="name"><span wicket:id="name"></span></a>- <span wicket:id="annotated" class="annotated"></span>- </div>- <div class="commit">- <i class="fa fa-ext fa-commit"></i>- <span wicket:id="hash"></span>- <span class="middot"></span>- <a wicket:id="commitLink"><span wicket:id="shortMessage"></span></a>- </div>- </td>- <td class="actions">- <a wicket:id="download" title="Download zip archive"><i class="fa fa-download"></i></a>- <a wicket:id="compare" title="Compare with previous tag in same branch"><i class="fa fa-ext fa-file-diff"></i></a>- <a wicket:id="delete" class="fa fa-times fa-lg" title="Delete this tag"></a>- </td>- </tr>- </table>- <div class="center"><ul wicket:id="tagsPageNav"></ul></div>- <div wicket:id="noTags" class="alert alert-warning">No tags found</div>- </div>- </div>- <wicket:fragment wicket:id="annotatedFrag">- <wicket:enclosure child="date">- <span class="middot"></span>- <span wicket:id="date"></span>- </wicket:enclosure>- <wicket:enclosure child="author">- <span class="middot"></span>- <a wicket:id="author"></a>- </wicket:enclosure>- <a wicket:id="messageToggle" class="ellipsis-expander"><i class="fa fa-ellipsis-h"></i></a>- <pre wicket:id="message" class="message"></pre>- </wicket:fragment>- <wicket:fragment wicket:id="createTagFrag">- <form wicket:id="form" class="create-tag">- <div class="modal-header">- <h4 class="modal-title">Create Tag</h4>- </div>- <div class="modal-body">- <div wicket:id="feedback"></div>- <div class="form-group">- <label>Tag Name</label>- <input wicket:id="name" class="form-control focusable">- </div>- <div class="form-group">- <label>Tag Message</label>- <textarea wicket:id="message" rows="10" class="form-control"></textarea>- </div>- <div class="form-group">- <label>Create From</label>- <div>- <a wicket:id="revision" class="btn btn-default"></a>- </div>- </div>- </div>- <div class="modal-footer">- <div class="form-group">- <button wicket:id="create" class="btn btn-primary">Create</button>- <button wicket:id="cancel" class="btn btn-default">Cancel</button>- </div>- </div>- </form>- </wicket:fragment>-</wicket:extend>+<html xmlns:wicket>+<wicket:extend>+ <div id="repo-tags">+ <div class="list">+ <div class="head clearfix">+ <div class="pull-left">+ <input wicket:id="searchTags" class="form-control search" placeholder="Search tags"></input>+ </div>+ <div class="pull-left">+ <a wicket:id="createTag" class="btn btn-default"><i class="fa fa-plus"></i> Create Tag</a>+ </div>+ </div>+ <table wicket:id="tagsContainer" class="table table-hover table-condensed">+ <tr wicket:id="tags">+ <td class="detail">+ <div class="tag">+ <a wicket:id="tagLink" class="name"><span wicket:id="name"></span></a>+ <span wicket:id="annotated" class="annotated"></span>+ </div>+ <div class="commit">+ <span class="btn-group">+ <a wicket:id="hashLink" class="hash btn btn-default btn-xs"><span wicket:id="hash"></span></a>+ <a wicket:id="copyHash" class="btn btn-default btn-xs"><i class="fa fa-clipboard"></i></a>+ </span>+ <span wicket:id="contributor"></span>+ <a wicket:id="messageLink" class="message"><span wicket:id="message"></span></a>+ </div>+ </td>+ <td class="actions">+ <span class="btn-group">+ <a wicket:id="download" class="btn btn-default" title="Download tag archive"><i class="fa fa-download"></i></a>+ <a wicket:id="compare" class="btn btn-default" title="Compare with previous tag in same branch"><i class="fa fa-ext fa-file-diff"></i></a>+ <a wicket:id="delete" class="btn btn-default" title="Delete this tag"><i class="fa fa-times fa-lg"></i></a>+ </span>+ </td>+ </tr>+ </table>+ <div class="center"><ul wicket:id="tagsPageNav"></ul></div>+ <div wicket:id="noTags" class="alert alert-warning">No tags found</div>+ </div>+ </div>+ <wicket:fragment wicket:id="annotatedFrag">+ <wicket:enclosure child="date">+ <span class="middot"></span>+ <span wicket:id="date"></span>+ </wicket:enclosure>+ <wicket:enclosure child="author">+ <span class="middot"></span>+ <a wicket:id="author"></a>+ </wicket:enclosure>+ <a wicket:id="messageToggle" class="ellipsis-expander"><i class="fa fa-ellipsis-h"></i></a>+ <pre wicket:id="message" class="message"></pre>+ </wicket:fragment>+ <wicket:fragment wicket:id="createTagFrag">+ <form wicket:id="form" class="create-tag">+ <div class="modal-header">+ <h4 class="modal-title">Create Tag</h4>+ </div>+ <div class="modal-body">+ <div wicket:id="feedback"></div>+ <div class="form-group">+ <label>Tag Name</label>+ <input wicket:id="name" class="form-control focusable">+ </div>+ <div class="form-group">+ <label>Tag Message</label>+ <textarea wicket:id="message" rows="10" class="form-control"></textarea>+ </div>+ <div class="form-group">+ <label>Create From</label>+ <div>+ <a wicket:id="revision" class="btn btn-default"></a>+ </div>+ </div>+ </div>+ <div class="modal-footer">+ <div class="form-group">+ <button wicket:id="create" class="btn btn-primary">Create</button>+ <button wicket:id="cancel" class="btn btn-default">Cancel</button>+ </div>+ </div>+ </form>+ </wicket:fragment>+</wicket:extend></html>\ No newline at end of filediff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.javaindex c99e96662e..77d18ad1f5 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.java+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/DepotTagsPage.java@@ -42,13 +42,14 @@ import com.pmease.commons.git.RefInfo;import com.pmease.commons.util.StringUtils;import com.pmease.commons.wicket.ajaxlistener.ConfirmListener;import com.pmease.commons.wicket.behavior.OnTypingDoneBehavior;+import com.pmease.commons.wicket.behavior.clipboard.CopyClipboardBehavior;import com.pmease.commons.wicket.component.modal.ModalLink;import com.pmease.gitplex.core.entity.Depot;import com.pmease.gitplex.core.entity.support.DepotAndRevision;import com.pmease.gitplex.core.security.SecurityUtils;import com.pmease.gitplex.web.component.AccountLink;import com.pmease.gitplex.web.component.archivemenulink.ArchiveMenuLink;-import com.pmease.gitplex.web.component.commithash.CommitHashPanel;+import com.pmease.gitplex.web.component.contributorpanel.ContributorPanel;import com.pmease.gitplex.web.component.revisionpicker.RevisionPicker;import com.pmease.gitplex.web.page.depot.DepotPage;import com.pmease.gitplex.web.page.depot.NoBranchesPage;@@ -284,10 +285,17 @@ public class DepotTagsPage extends DepotPage {}RevCommit commit = (RevCommit) ref.getPeeledObj();- item.add(new CommitHashPanel("hash", commit.name()));PageParameters params = CommitDetailPage.paramsOf(getDepot(), commit.name());- link = new BookmarkablePageLink<Void>("commitLink", CommitDetailPage.class, params);- link.add(new Label("shortMessage", commit.getShortMessage()));++ link = new BookmarkablePageLink<Void>("hashLink", CommitDetailPage.class, params);+ link.add(new Label("hash", GitUtils.abbreviateSHA(commit.name())));+ item.add(link);+ item.add(new WebMarkupContainer("copyHash").add(new CopyClipboardBehavior(Model.of(commit.name()))));++ item.add(new ContributorPanel("contributor", commit.getAuthorIdent(), commit.getCommitterIdent(), true));++ link = new BookmarkablePageLink<Void>("messageLink", CommitDetailPage.class, params);+ link.add(new Label("message", commit.getShortMessage()));item.add(link);item.add(new ArchiveMenuLink("download", depotModel) {diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/depot-tags.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/depot-tags.cssindex e2e03d7e7a..ab4b7cb98e 100644--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/depot-tags.css+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/tags/depot-tags.css@@ -1,50 +1,46 @@-#repo-tags {- padding: 20px;-}--#repo-tags>.list>table td {- white-space: nowrap;-}-#repo-tags .tag a.name {- font-weight: bold;- font-size: 16px;-}-#repo-tags .annotated {- color: #666;- font-size: 12px;-}-#repo-tags .annotated .ellipsis-expander {- margin-left: 4px;-}-#repo-tags .annotated .message {- display: none;- border: none;- font-size: 12px;- background: none;- margin: -8px 0;-}-#repo-tags .commit input {- border: 1px dotted #999;-}-#repo-tags>.list>table td.actions {- width: 1%;- text-align: right;-}-#repo-tags>.list>table td.actions .fa.fa-times {- color: red;-}-#repo-tags>.list>table td.actions .fa.fa-download {- font-size: 15px;- vertical-align: middle;-}-#repo-tags>.list>table td.actions span.fa.fa-times {- color: #888;-}-#repo-tags>.list>table td.detail>div,-#repo-tags>.list>table td.detail>div .name a {- font-size: 13px;- color: #666;-}-#repo-tags>.list>table td.detail .commit {- margin: 8px 0;-}+#repo-tags {+ padding: 20px;+}++#repo-tags>.list>table td {+ white-space: nowrap;+}+#repo-tags .tag a.name {+ color: #444;+ font-weight: bold;+ font-size: 16px;+}+#repo-tags .annotated {+ color: #999;+ font-size: 12px;+}+#repo-tags .annotated a {+ color: #666;+}+#repo-tags .annotated .ellipsis-expander {+ margin-left: 4px;+}+#repo-tags .annotated .message {+ display: none;+ border: none;+ font-size: 12px;+ background: none;+ margin: 0 0 -4px 0;+}+#repo-tags>.list>table td.actions {+ text-align: right;+}+#repo-tags>.list>table td.detail>div,+#repo-tags>.list>table td.detail>div .name a {+ font-size: 13px;+ color: #666;+}+#repo-tags>.list>table td.detail .commit {+ margin: 8px 0;+}+#repo-tags>.list>table td.detail .commit>* {+ margin-right: 4px;+}+#repo-tags>.list>table td.detail .commit>.message {+ color: #666;+}\ No newline at end of file