more styling

This commit is contained in:
Athou
2013-04-07 14:38:08 +02:00
parent 642661a926
commit f7e636d105
5 changed files with 38 additions and 10 deletions

View File

@@ -1,13 +1,26 @@
package com.commafeed.frontend.pages;
import javax.inject.Inject;
import com.commafeed.backend.dao.ApplicationSettingsService;
import com.commafeed.frontend.pages.components.LoginPanel;
import com.commafeed.frontend.pages.components.RegisterPanel;
@SuppressWarnings("serial")
public class WelcomePage extends BasePage {
@Inject
ApplicationSettingsService applicationSettingsService;
public WelcomePage() {
add(new LoginPanel("login"));
add(new RegisterPanel("register"));
add(new RegisterPanel("register") {
@Override
protected void onConfigure() {
super.onConfigure();
setVisibilityAllowed(applicationSettingsService.get()
.isAllowRegistrations());
}
});
}
}