mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 12:02:20 +00:00
Refine content and appearance of the user account screen (#9521)
Co-authored-by: Tim Jacomb <21194782+timja@users.noreply.github.com>
This commit is contained in:
1 parent
0037be68b7
commit
2d2adefabd
45 files changed
+54
-291
No files matched your search
@@ -62,6 +62,11 @@ public class TimeZoneProperty extends UserProperty {
|
||||
return Messages.TimeZoneProperty_DisplayName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return Messages.TimeZoneProperty_Description();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserProperty newInstance(User user) {
|
||||
return new TimeZoneProperty();
|
||||
|
||||
@@ -26,6 +26,7 @@ package hudson.model;
|
||||
|
||||
import edu.umd.cs.findbugs.annotations.CheckForNull;
|
||||
import edu.umd.cs.findbugs.annotations.NonNull;
|
||||
import edu.umd.cs.findbugs.annotations.Nullable;
|
||||
import hudson.model.userproperty.UserPropertyCategory;
|
||||
import java.util.Optional;
|
||||
import org.jenkinsci.Symbol;
|
||||
@@ -126,4 +127,15 @@ public abstract class UserPropertyDescriptor extends Descriptor<UserProperty> {
|
||||
protected @CheckForNull String getUserPropertyCategoryAsString() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Optional description for the configurable object
|
||||
* Displays as plain text
|
||||
*
|
||||
* @since TODO
|
||||
*/
|
||||
@Nullable
|
||||
public String getDescription() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -65,6 +65,11 @@ public class ConsoleUrlProviderUserProperty extends UserProperty {
|
||||
return Messages.consoleUrlProviderDisplayName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDescription() {
|
||||
return Messages.consoleUrlProviderDisplayName_Description();
|
||||
}
|
||||
|
||||
@Override
|
||||
public UserProperty newInstance(User user) {
|
||||
return new ConsoleUrlProviderUserProperty();
|
||||
|
||||
Reference in new issue
Block a user