gb.filesCopied = {0} files copied\r
gb.filesRenamed = {0} files renamed\r
gb.missingUsername = Missing Username\r
-gb.edit = edit
\ No newline at end of file
+gb.edit = edit\r
+gb.searchTypeTooltip = Select Search Type\r
+gb.searchTooltip = Search Git:Blit
\ No newline at end of file
container.add(new SimpleAttributeModifier("title", value));\r
}\r
\r
+ public static void setInputPlaceholder(Component container, String value) {\r
+ container.add(new SimpleAttributeModifier("placeholder", value));\r
+ }\r
+\r
public static void setChangeTypeCssClass(Component container, ChangeType type) {\r
switch (type) {\r
case ADD:\r
<!-- floating search form on right -->\r
<form wicket:id="searchForm">\r
<div class="search">\r
- <select wicket:id="searchType"/>\r
- <wicket:message key="gb.search"></wicket:message>:\r
+ <select wicket:id="searchType"/> \r
<input type="text" id="searchBox" wicket:id="searchBox" value=""/>\r
</div>\r
</form>\r
this.repositoryName = repositoryName;\r
DropDownChoice<SearchType> searchType = new DropDownChoice<SearchType>("searchType", Arrays.asList(SearchType.values()));\r
searchType.setModel(searchTypeModel);\r
+ WicketUtils.setHtmlTitle(searchType, getString("gb.searchTypeTooltip"));\r
add(searchType);\r
- add(new TextField<String>("searchBox", searchBoxModel));\r
+ TextField<String> searchBox = new TextField<String>("searchBox", searchBoxModel);\r
+ add(searchBox);\r
+ WicketUtils.setHtmlTitle(searchBox, getString("gb.searchTooltip"));\r
+ WicketUtils.setInputPlaceholder(searchBox, getString("gb.search"));\r
}\r
\r
@Override\r
padding:4px 4px 3px 3px; \r
}\r
\r
-.repositories_message {\r
- border: solid #bbb;\r
- border-width: 0px 0px 1px;\r
- padding: 8px;\r
+div.search input {\r
+ background: url(/com/gitblit/wicket/resources/search-icon.png) no-repeat 4px center;\r
+ color: #ddd;\r
+ background-color: #000070;\r
+ border: 1px solid transparent;\r
+ padding: 0px 2px 2px 22px; \r
+}\r
+\r
+div.search input:hover, div.search input:focus {\r
+ color: white;\r
+ border-bottom: 1px solid orange; \r
+ outline: none;\r
}\r
\r
div.page_path {\r