Skip to content

The Unified and Autonomous Development Platform

midwork

robin shine8129d0942d3b
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/account/notifications/AccountNotificationsPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/account/notifications/AccountNotificationsPage.java
index 057b35b1e3..1d8b5271f8 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/account/notifications/AccountNotificationsPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/account/notifications/AccountNotificationsPage.java
@@ -62,7 +62,7 @@ public class AccountNotificationsPage extends AccountLayoutPage {
List<IColumn<Notification, String>> columns = new ArrayList<>();
selectionColumn = new SelectionColumn<Notification, String>();
- if (getAccount().equals(getCurrentUser()))
+ if (getAccount().equals(getLoginUser()))
columns.add(selectionColumn);
columns.add(new AbstractColumn<Notification, String>(Model.of("Pull Request"), "request") {
@@ -167,7 +167,7 @@ public class AccountNotificationsPage extends AccountLayoutPage {
@Override
protected void onConfigure() {
super.onConfigure();
- setVisible(getAccount().equals(getCurrentUser()));
+ setVisible(getAccount().equals(getLoginUser()));
}
});
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/base/BasePage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/base/BasePage.java
index e2621dab47..afab05330f 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/base/BasePage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/base/BasePage.java
@@ -1,5 +1,7 @@
package com.pmease.gitplex.web.page.base;
+import javax.annotation.Nullable;
+
import org.apache.shiro.authz.UnauthorizedException;
import org.apache.wicket.RestartResponseAtInterceptPageException;
import org.apache.wicket.markup.ComponentTag;
@@ -42,7 +44,8 @@ public abstract class BasePage extends CommonPage {
return true;
}
- protected final Account getCurrentUser() {
+ @Nullable
+ protected final Account getLoginUser() {
return GitPlex.getInstance(AccountManager.class).getCurrent();
}
@@ -51,7 +54,7 @@ public abstract class BasePage extends CommonPage {
super.onInitialize();
if (!isPermitted()) {
- if (getCurrentUser() != null)
+ if (getLoginUser() != null)
throw new UnauthorizedException();
else
throw new RestartResponseAtInterceptPageException(LoginPage.class);
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.java
index 013ccd09b4..88170dba79 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
@@ -235,7 +235,7 @@ public class DepotBranchesPage extends DepotPage {
protected Map<String, BranchWatch> load() {
Map<String, BranchWatch> requestWatches = new HashMap<>();
for (BranchWatch watch: GitPlex.getInstance(BranchWatchManager.class).findBy(
- Preconditions.checkNotNull(getCurrentUser()), getDepot()))
+ Preconditions.checkNotNull(getLoginUser()), getDepot()))
requestWatches.put(watch.getBranch(), watch);
return requestWatches;
}
@@ -582,7 +582,7 @@ public class DepotBranchesPage extends DepotPage {
@Override
protected void onConfigure() {
super.onConfigure();
- setVisible(getCurrentUser() != null
+ setVisible(getLoginUser() != null
&& branchWatchesModel.getObject().containsKey(item.getModelObject()));
}
@@ -594,7 +594,7 @@ public class DepotBranchesPage extends DepotPage {
BranchWatch watch = new BranchWatch();
watch.setDepot(getDepot());
watch.setBranch(branch);
- watch.setUser(getCurrentUser());
+ watch.setUser(getLoginUser());
GitPlex.getInstance(Dao.class).persist(watch);
target.add(actionsContainer);
}
@@ -602,7 +602,7 @@ public class DepotBranchesPage extends DepotPage {
@Override
protected void onConfigure() {
super.onConfigure();
- setVisible(getCurrentUser() != null
+ setVisible(getLoginUser() != null
&& !branchWatchesModel.getObject().containsKey(item.getModelObject()));
}
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/DepotFilePage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/DepotFilePage.java
index 2b3b1f3240..3f701840d4 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/DepotFilePage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/DepotFilePage.java
@@ -913,6 +913,11 @@ public class DepotFilePage extends DepotPage implements BlobViewContext {
&& blobIdent.revision.equals(request.getSource().getObjectName(false));
}
+ @Override
+ protected boolean isFootVisible() {
+ return false;
+ }
+
@Override
public List<MenuItem> getMenuItems(MenuLink menuLink) {
if (mode != Mode.EDIT && mode != Mode.DELETE) {
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/depot-file.js b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/depot-file.js
index c36f9b906a..fed8704bfa 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/depot-file.js
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/file/depot-file.js
@@ -51,7 +51,7 @@ $(window).load(function() {
var $fileViewer = $("#repo-file>.file-viewer");
var width = $(window).width()-$("#repo-file").parent().prev().outerWidth();
var height = $(window).height()-$fileViewer.offset().top;
- if ($("#main>.foot").is(":visible"))
+ if ($("#main>.foot").length != 0)
height -= $("#main>.foot").outerHeight();
if ($searchResult.is(":visible")) {
$searchResult.outerWidth(width);
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/newrequest/NewRequestPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/newrequest/NewRequestPage.java
index 64405d3c8f..63e9600389 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/newrequest/NewRequestPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/newrequest/NewRequestPage.java
@@ -126,7 +126,7 @@ public class NewRequestPage extends PullRequestPage {
}
}
- Account currentUser = getCurrentUser();
+ Account currentUser = getLoginUser();
if (currentUser == null)
throw new RestartResponseAtInterceptPageException(LoginPage.class);
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/RequestOverviewPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/RequestOverviewPage.java
index cf06b9d4e1..6a7f816005 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/RequestOverviewPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/overview/RequestOverviewPage.java
@@ -241,7 +241,7 @@ public class RequestOverviewPage extends RequestDetailPage {
// onDetach can be called multiple times at end of a request cycle
RequestCycle.get().setMetaData(RENDERED_ACTIVITY, null);
- Account user = getCurrentUser();
+ Account user = getLoginUser();
if (user != null) {
PullRequestVisit visit = getPullRequest().getVisit(user);
if (visit == null) {
@@ -477,7 +477,7 @@ public class RequestOverviewPage extends RequestDetailPage {
@Override
protected void onConfigure() {
super.onConfigure();
- setVisible(getCurrentUser() != null);
+ setVisible(getLoginUser() != null);
}
};
@@ -488,7 +488,7 @@ public class RequestOverviewPage extends RequestDetailPage {
@Override
protected WatchStatus load() {
- PullRequestWatch watch = getPullRequest().getWatch(getCurrentUser());
+ PullRequestWatch watch = getPullRequest().getWatch(getLoginUser());
if (watch != null) {
if (watch.isIgnore())
return WatchStatus.IGNORE;
@@ -523,7 +523,7 @@ public class RequestOverviewPage extends RequestDetailPage {
@Override
protected void onUpdate(AjaxRequestTarget target) {
- PullRequestWatch watch = getPullRequest().getWatch(getCurrentUser());
+ PullRequestWatch watch = getPullRequest().getWatch(getLoginUser());
Dao dao = GitPlex.getInstance(Dao.class);
if (optionModel.getObject() == WatchStatus.WATCHING) {
if (watch != null) {
@@ -532,7 +532,7 @@ public class RequestOverviewPage extends RequestDetailPage {
} else {
watch = new PullRequestWatch();
watch.setRequest(getPullRequest());
- watch.setUser(getCurrentUser());
+ watch.setUser(getLoginUser());
getPullRequest().getWatches().add(watch);
}
dao.persist(watch);
@@ -547,7 +547,7 @@ public class RequestOverviewPage extends RequestDetailPage {
} else {
watch = new PullRequestWatch();
watch.setRequest(getPullRequest());
- watch.setUser(getCurrentUser());
+ watch.setUser(getLoginUser());
watch.setIgnore(true);
getPullRequest().getWatches().add(watch);
}
@@ -562,7 +562,7 @@ public class RequestOverviewPage extends RequestDetailPage {
@Override
protected String load() {
- PullRequestWatch watch = getPullRequest().getWatch(getCurrentUser());
+ PullRequestWatch watch = getPullRequest().getWatch(getLoginUser());
if (watch != null) {
if (watch.isIgnore()) {
return "Ignore notifications irrelevant to me.";
@@ -586,7 +586,7 @@ public class RequestOverviewPage extends RequestDetailPage {
Fragment assigneeContainer;
Account assignee = request.getAssignee();
- Account currentUser = getCurrentUser();
+ Account currentUser = getLoginUser();
boolean canChangeAssignee = request.isOpen()
&& (currentUser != null && currentUser.equals(request.getSubmitter())
|| SecurityUtils.canManage(getDepot()));
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/updates/RequestUpdatesPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/updates/RequestUpdatesPage.java
index ef435b5fa3..9a65872c43 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/updates/RequestUpdatesPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/depot/pullrequest/requestdetail/updates/RequestUpdatesPage.java
@@ -131,7 +131,7 @@ public class RequestUpdatesPage extends RequestDetailPage {
super.onConfigure();
setEnabled(getPullRequest().isOpen()
- && (item.getModelObject().getReviewer().equals(getCurrentUser())
+ && (item.getModelObject().getReviewer().equals(getLoginUser())
|| SecurityUtils.getSubject().isPermitted(ObjectPermission.ofDepotAdmin(getDepot()))));
}
diff --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.java
index bffc54cd79..cfc10d9e8c 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
@@ -197,7 +197,7 @@ public class DepotTagsPage extends DepotPage {
target.focusComponent(nameInput);
target.add(form);
} else {
- getDepot().tag(tagName, tagRevision, getCurrentUser().asPerson(), tagMessage);
+ getDepot().tag(tagName, tagRevision, getLoginUser().asPerson(), tagMessage);
close(target);
target.add(tagsContainer);
target.add(pagingNavigator);
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.html b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.html
index 25fa65e60a..46fd11e0f4 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.html
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.html
@@ -31,7 +31,7 @@
<div class="body">
<wicket:child></wicket:child>
</div>
- <div class="foot clearfix">
+ <div wicket:id="mainFoot" class="foot clearfix">
<div class="pull-left">
<a href="http://www.pmease.com">PMEase GitPlex</a>, 1.0.0, 2013-03-05, Commercial License for Site 'PMEase Inc.'
</div>
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.java
index 9364c31da5..987897b4b8 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/LayoutPage.java
@@ -48,34 +48,34 @@ public abstract class LayoutPage extends BasePage {
protected void onInitialize() {
super.onInitialize();
- WebMarkupContainer mainHead = new WebMarkupContainer("mainHead");
- add(mainHead);
+ WebMarkupContainer head = new WebMarkupContainer("mainHead");
+ add(head);
- mainHead.add(new BookmarkablePageLink<Void>("home", getApplication().getHomePage()));
- mainHead.add(newContextHead("context"));
- mainHead.add(new BookmarkablePageLink<Void>("administration", UserListPage.class)
+ head.add(new BookmarkablePageLink<Void>("home", getApplication().getHomePage()));
+ head.add(newContextHead("context"));
+ head.add(new BookmarkablePageLink<Void>("administration", UserListPage.class)
.setVisible(SecurityUtils.canManageSystem()));
- final Account user = getCurrentUser();
+ Account user = getLoginUser();
boolean signedIn = user != null;
- mainHead.add(new BookmarkablePageLink<Void>("login", LoginPage.class).setVisible(!signedIn));
- mainHead.add(new BookmarkablePageLink<Void>("register", RegisterPage.class).setVisible(!signedIn));
- mainHead.add(new BookmarkablePageLink<Void>("logout", LogoutPage.class).setVisible(signedIn));
+ head.add(new BookmarkablePageLink<Void>("login", LoginPage.class).setVisible(!signedIn));
+ head.add(new BookmarkablePageLink<Void>("register", RegisterPage.class).setVisible(!signedIn));
+ head.add(new BookmarkablePageLink<Void>("logout", LogoutPage.class).setVisible(signedIn));
if (user != null) {
- mainHead.add(new BookmarkablePageLink<Void>("notification",
+ head.add(new BookmarkablePageLink<Void>("notification",
AccountNotificationsPage.class,
AccountNotificationsPage.paramsOf(user)) {
@Override
protected void onConfigure() {
super.onConfigure();
- setVisible(!getCurrentUser().getRequestNotifications().isEmpty());
+ setVisible(!getLoginUser().getRequestNotifications().isEmpty());
}
});
} else {
- mainHead.add(new WebMarkupContainer("notification").setVisible(false));
+ head.add(new WebMarkupContainer("notification").setVisible(false));
}
if (signedIn) {
@@ -92,7 +92,7 @@ public abstract class LayoutPage extends BasePage {
};
prevLink.add(new Avatar("avatar", prevUser, null));
- mainHead.add(prevLink);
+ head.add(prevLink);
// Use dropdown panel to mimic tooltip as the bootstrap tooltip has the issue
// of disappearing when we adjust margin property when hover over the link
@@ -116,11 +116,11 @@ public abstract class LayoutPage extends BasePage {
WebMarkupContainer prevLink = new WebMarkupContainer("prevUser");
prevLink.add(new WebMarkupContainer("avatar"));
prevLink.setVisible(false);
- mainHead.add(prevLink);
- mainHead.add(new WebMarkupContainer("tooltip").setVisible(false));
+ head.add(prevLink);
+ head.add(new WebMarkupContainer("tooltip").setVisible(false));
}
- mainHead.add(new AvatarLink("user", user, null));
- mainHead.add(new MenuLink("userMenuTrigger", new AlignPlacement(50, 100, 50, 0, 8)) {
+ head.add(new AvatarLink("user", user, null));
+ head.add(new MenuLink("userMenuTrigger", new AlignPlacement(50, 100, 50, 0, 8)) {
@Override
protected List<MenuItem> getMenuItems() {
@@ -183,11 +183,21 @@ public abstract class LayoutPage extends BasePage {
WebMarkupContainer prevLink = new WebMarkupContainer("prevUser");
prevLink.add(new WebMarkupContainer("avatar"));
prevLink.setVisible(false);
- mainHead.add(prevLink);
- mainHead.add(new WebMarkupContainer("user").setVisible(false));
- mainHead.add(new WebMarkupContainer("userMenuTrigger").setVisible(false));
- mainHead.add(new WebMarkupContainer("userMenu").setVisible(false));
+ head.add(prevLink);
+ head.add(new WebMarkupContainer("user").setVisible(false));
+ head.add(new WebMarkupContainer("userMenuTrigger").setVisible(false));
+ head.add(new WebMarkupContainer("userMenu").setVisible(false));
}
+
+ add(new WebMarkupContainer("mainFoot") {
+
+ @Override
+ protected void onConfigure() {
+ super.onConfigure();
+ setVisible(isFootVisible());
+ }
+
+ });
}
protected Component newContextHead(String componentId) {
@@ -195,7 +205,7 @@ public abstract class LayoutPage extends BasePage {
}
protected boolean isLoggedIn() {
- return getCurrentUser() != null;
+ return getLoginUser() != null;
}
protected boolean isRemembered() {
@@ -206,6 +216,10 @@ public abstract class LayoutPage extends BasePage {
return SecurityUtils.getSubject().isAuthenticated();
}
+ protected boolean isFootVisible() {
+ return true;
+ }
+
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/layout.css b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/layout.css
index 2013bd924a..8cc42c57bf 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/layout.css
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/layout/layout.css
@@ -1,107 +1,107 @@
-html, body {
- background: #f0f2f4;
-}
-#main>.head {
- background: #303845;
- padding: 8px 16px;
-}
-#main>.head>div {
- margin-right: 16px;
-}
-#main>.head a {
- text-decoration: none;
- color: #EEE;
-}
-#main>.head>.logo .fa {
- font-size: 28px;
- color: #69B7F7;
-}
-#main>.head>.context {
- color: #EEE;
- font-size: 20px;
- margin-left: 40px;
-}
-#main>.head>.administration a {
- font-size: 30px;
- line-height: 20px;
-}
-#main>.head>.account {
- margin-right: 0;
-}
-#main>.head>.account>.logged-in>.notifications {
- color: #69B7F7;
-}
-#main>.head>.account>.logged-in>a, #main>.head>.account>.logged-in>span {
- margin-right: 8px;
- font-size: 20px;
-}
-#main>.head>.account>.logged-in>.menu {
- margin-right: 8px;
-}
-#main>.head>.account>.logged-out a {
- font-size: 16px;
-}
-#main>.head>.account .avatar {
- width: 32px;
- height: 32px;
- box-shadow: -1px 0px 3px 0px #333,
- 1px 0px 3px 0px #333,
- 0px -1px 3px 0px #333,
- 0px 1px 3px 0px #333;
-}
-#main>.head>.account a.previous .avatar {
- margin-right: -24px;
-}
-#main>.head>.account a.previous:hover .avatar {
- margin-right: -12px;
-}
-#runas-tooltip {
- padding: 4px 8px;
-}
-
-#main>.body {
- background: white;
- border-bottom: 1px solid #BBB;
-}
-
-.sidebar>table>tbody>tr>td.nav {
- padding: 20px 0;
- width: 1px;
- border-right: 1px solid #BBB;
-}
-.sidebar>table>tbody>tr>td.nav>.tabs {
- margin-bottom: 0;
-}
-.sidebar>table>tbody>tr>td.nav>.tabs>li>a {
- color: #666;
- display: block;
- text-decoration: none;
- padding: 8px;
- height: 36px;
- white-space: nowrap;
- border-left: 4px solid white;
- width: 180px;
-}
-.sidebar>table>tbody>tr>td.nav>.tabs>li>a .fa {
- font-size: 16px;
- margin-right: 4px;
-}
-.sidebar>table>tbody>tr>td.nav>.tabs>li:hover>a {
- color: #303845;
- background: #EEE;
- border-left-color: #EEE;
-}
-.sidebar>table>tbody>tr>td.nav>.tabs>li.active>a {
- color: #303845;
- background: #DDD;
- border-left-color: #69B7F7;
- font-weight: bold;
-}
-#main>.foot {
- font-size: 11px;
- padding: 8px;
-}
-section>.head {
- font-size: 18px;
- margin-bottom: 20px;
-}
+html, body {
+ background: #f0f2f4;
+}
+#main>.head {
+ background: #303845;
+ padding: 8px 16px;
+}
+#main>.head>div {
+ margin-right: 16px;
+}
+#main>.head a {
+ text-decoration: none;
+ color: #EEE;
+}
+#main>.head>.logo .fa {
+ font-size: 28px;
+ color: #69B7F7;
+}
+#main>.head>.context {
+ color: #EEE;
+ font-size: 20px;
+ margin-left: 40px;
+}
+#main>.head>.administration a {
+ font-size: 30px;
+ line-height: 20px;
+}
+#main>.head>.account {
+ margin-right: 0;
+}
+#main>.head>.account>.logged-in>.notifications {
+ color: #69B7F7;
+}
+#main>.head>.account>.logged-in>a, #main>.head>.account>.logged-in>span {
+ margin-right: 8px;
+ font-size: 20px;
+}
+#main>.head>.account>.logged-in>.menu {
+ margin-right: 8px;
+}
+#main>.head>.account>.logged-out a {
+ font-size: 16px;
+}
+#main>.head>.account .avatar {
+ width: 32px;
+ height: 32px;
+ box-shadow: -1px 0px 3px 0px #333,
+ 1px 0px 3px 0px #333,
+ 0px -1px 3px 0px #333,
+ 0px 1px 3px 0px #333;
+}
+#main>.head>.account a.previous .avatar {
+ margin-right: -24px;
+}
+#main>.head>.account a.previous:hover .avatar {
+ margin-right: -12px;
+}
+#runas-tooltip {
+ padding: 4px 8px;
+}
+
+#main>.body {
+ background: white;
+ border-bottom: 1px solid #BBB;
+}
+
+.sidebar>table>tbody>tr>td.nav {
+ padding: 20px 0;
+ width: 1px;
+ border-right: 1px solid #BBB;
+}
+.sidebar>table>tbody>tr>td.nav>.tabs {
+ margin-bottom: 0;
+}
+.sidebar>table>tbody>tr>td.nav>.tabs>li>a {
+ color: #666;
+ display: block;
+ text-decoration: none;
+ padding: 8px;
+ height: 36px;
+ white-space: nowrap;
+ border-left: 4px solid white;
+ width: 180px;
+}
+.sidebar>table>tbody>tr>td.nav>.tabs>li>a .fa {
+ font-size: 16px;
+ margin-right: 4px;
+}
+.sidebar>table>tbody>tr>td.nav>.tabs>li:hover>a {
+ color: #303845;
+ background: #EEE;
+ border-left-color: #EEE;
+}
+.sidebar>table>tbody>tr>td.nav>.tabs>li.active>a {
+ color: #303845;
+ background: #DDD;
+ border-left-color: #69B7F7;
+ font-weight: bold;
+}
+#main>.foot {
+ font-size: 11px;
+ padding: 8px;
+}
+section>.head {
+ font-size: 18px;
+ margin-bottom: 20px;
+}
diff --git a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/security/RegisterPage.java b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/security/RegisterPage.java
index 683417337d..e25c76ffe4 100644
--- a/gitplex.web/src/main/java/com/pmease/gitplex/web/page/security/RegisterPage.java
+++ b/gitplex.web/src/main/java/com/pmease/gitplex/web/page/security/RegisterPage.java
@@ -26,7 +26,7 @@ import jersey.repackaged.com.google.common.collect.Sets;
public class RegisterPage extends BasePage {
public RegisterPage() {
- if (getCurrentUser() != null)
+ if (getLoginUser() != null)
throw new IllegalStateException("Can not sign up an account while signed in.");
}