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