#526 add adminUser flag and messages
This commit is contained in:
parent
ea3f34ec19
commit
6ae633905d
5 changed files with 9 additions and 1 deletions
|
@ -116,7 +116,9 @@ public abstract class FessSearchAction extends FessBaseAction {
|
|||
locale = Locale.ENGLISH;
|
||||
}
|
||||
runtime.registerData("langItems", systemHelper.getLanguageItems(locale));
|
||||
runtime.registerData("username", systemHelper.getUsername());
|
||||
String username = systemHelper.getUsername();
|
||||
runtime.registerData("username", username);
|
||||
runtime.registerData("adminUser", fessConfig.isAdminUser(username));
|
||||
|
||||
runtime.registerData("pageLoginLink", fessConfig.isPageLoginLink());
|
||||
}
|
||||
|
|
|
@ -797,6 +797,9 @@ public class FessLabels extends ActionMessages {
|
|||
/** The key of the message: Change Password */
|
||||
public static final String LABELS_PROFILE = "{labels.profile}";
|
||||
|
||||
/** The key of the message: Administration */
|
||||
public static final String LABELS_ADMINISTRATION = "{labels.administration}";
|
||||
|
||||
/** The key of the message: Profile */
|
||||
public static final String LABELS_profile_button = "{labels.profile_button}";
|
||||
|
||||
|
|
|
@ -256,6 +256,7 @@ labels.logout=Logout
|
|||
labels.do_you_want_to_logout=Do you want to logout?
|
||||
labels.logout_button=Logout
|
||||
labels.profile=Change Password
|
||||
labels.administration=Administration
|
||||
labels.profile_button=Profile
|
||||
labels.profile.title=Profile
|
||||
labels.profile.update=Update
|
||||
|
|
|
@ -256,6 +256,7 @@ labels.logout=Logout
|
|||
labels.do_you_want_to_logout=Do you want to logout?
|
||||
labels.logout_button=Logout
|
||||
labels.profile=Change Password
|
||||
labels.administration=Administration
|
||||
labels.profile_button=Profile
|
||||
labels.profile.title=Profile
|
||||
labels.profile.update=Update
|
||||
|
|
|
@ -252,6 +252,7 @@ labels.logout=\u30ed\u30b0\u30a2\u30a6\u30c8
|
|||
labels.do_you_want_to_logout=\u30ed\u30b0\u30a2\u30a6\u30c8\u3057\u307e\u3059\u304b\uff1f
|
||||
labels.logout_button=\u30ed\u30b0\u30a2\u30a6\u30c8
|
||||
labels.profile=\u30d1\u30b9\u30ef\u30fc\u30c9\u5909\u66f4
|
||||
labels.administration=\u7ba1\u7406
|
||||
labels.profile_button=\u8a2d\u5b9a
|
||||
labels.profile.title= \u8a2d\u5b9a
|
||||
labels.profile.update= \u66f4\u65b0
|
||||
|
|
Loading…
Add table
Reference in a new issue