Remove redundant 'Prev' and 'Next' string constants
The 'Prev' and 'Next' strings used in paginated lists of groups and projects are the same, but are defined in separate constants. Replace them with constants that are used by both. Change-Id: I88e6bc0a9553c871eac408aca216dd223217fa28
This commit is contained in:
parent
709a173fb2
commit
b94f9abe9e
@ -135,9 +135,6 @@ public interface AdminConstants extends Constants {
|
||||
String sectionTypeSection();
|
||||
Map<String, String> sectionNames();
|
||||
|
||||
String pagedProjectListPrev();
|
||||
String pagedProjectListNext();
|
||||
|
||||
String pagedGroupListPrev();
|
||||
String pagedGroupListNext();
|
||||
String pagedListPrev();
|
||||
String pagedListNext();
|
||||
}
|
||||
|
@ -99,11 +99,8 @@ noGroupSelected = (No group selected)
|
||||
errorNoMatchingGroups = No Matching Groups
|
||||
errorNoGitRepository = No Git Repository
|
||||
|
||||
pagedProjectListPrev = ⇦Prev
|
||||
pagedProjectListNext = Next⇨
|
||||
|
||||
pagedGroupListPrev = ⇦Prev
|
||||
pagedGroupListNext = Next⇨
|
||||
pagedListPrev = ⇦Prev
|
||||
pagedListNext = Next⇨
|
||||
|
||||
addPermission = Add Permission ...
|
||||
|
||||
|
@ -148,10 +148,10 @@ public class GroupListScreen extends AccountScreen implements FilteredUserInterf
|
||||
setPageTitle(Util.C.groupListTitle());
|
||||
initPageHeader();
|
||||
|
||||
prev = new Hyperlink(Util.C.pagedGroupListPrev(), true, "");
|
||||
prev = new Hyperlink(Util.C.pagedListPrev(), true, "");
|
||||
prev.setVisible(false);
|
||||
|
||||
next = new Hyperlink(Util.C.pagedGroupListNext(), true, "");
|
||||
next = new Hyperlink(Util.C.pagedListNext(), true, "");
|
||||
next.setVisible(false);
|
||||
|
||||
groups = new GroupTable(PageLinks.ADMIN_GROUPS);
|
||||
|
@ -161,10 +161,10 @@ public class ProjectListScreen extends Screen implements FilteredUserInterface {
|
||||
setPageTitle(Util.C.projectListTitle());
|
||||
initPageHeader();
|
||||
|
||||
prev = new Hyperlink(Util.C.pagedProjectListPrev(), true, "");
|
||||
prev = new Hyperlink(Util.C.pagedListPrev(), true, "");
|
||||
prev.setVisible(false);
|
||||
|
||||
next = new Hyperlink(Util.C.pagedProjectListNext(), true, "");
|
||||
next = new Hyperlink(Util.C.pagedListNext(), true, "");
|
||||
next.setVisible(false);
|
||||
|
||||
projects = new ProjectsTable() {
|
||||
|
Loading…
Reference in New Issue
Block a user