diff options
author | silverwind <me@silverwind.io> | 2020-11-09 19:21:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 18:21:47 +0000 |
commit | 8bae34c4b24b6af4ce9144028298884710ebf7a5 (patch) | |
tree | 879e32216b04f2e2dab0bc959ada756582144603 /templates | |
parent | ef2ffc6aeddb872e438627b9fcb67bdd889fc726 (diff) | |
download | gitea-8bae34c4b24b6af4ce9144028298884710ebf7a5.tar.gz gitea-8bae34c4b24b6af4ce9144028298884710ebf7a5.zip |
Change search and filter icons to SVG (#13473)
Unfortunately, the Fomantic CSS relies on i.icon instead of .icon so a
wrapper is necessary for these with an accompanying class to center the
icon.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/base/head_navbar.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/branch_dropdown.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/diff/compare.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/issue/branch_selector_field.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/new_form.tmpl | 8 | ||||
-rw-r--r-- | templates/repo/issue/view_content/sidebar.tmpl | 8 | ||||
-rw-r--r-- | templates/repo/issue/view_title.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/search.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/wiki/view.tmpl | 2 | ||||
-rw-r--r-- | templates/user/dashboard/repolist.tmpl | 6 |
10 files changed, 19 insertions, 19 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl index e960f7fe17..1b102b11d8 100644 --- a/templates/base/head_navbar.tmpl +++ b/templates/base/head_navbar.tmpl @@ -37,7 +37,7 @@ <div class="item"> <div class="ui icon input"> <input class="searchbox" type="text" placeholder="{{.i18n.Tr "search_project"}}"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> </div> </div> */}} diff --git a/templates/repo/branch_dropdown.tmpl b/templates/repo/branch_dropdown.tmpl index 9ef32d9e90..a7eafa3874 100644 --- a/templates/repo/branch_dropdown.tmpl +++ b/templates/repo/branch_dropdown.tmpl @@ -18,7 +18,7 @@ </div> <div class="menu transition" :class="{visible: menuVisible}" v-if="menuVisible" v-cloak> <div class="ui icon search input"> - <i class="filter icon"></i> + <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> <input name="search" ref="searchField" v-model="searchTerm" @keydown="keydown($event)" placeholder="{{.i18n.Tr "repo.filter_branch_and_tag"}}..."> </div> <div class="header branch-tag-choice"> diff --git a/templates/repo/diff/compare.tmpl b/templates/repo/diff/compare.tmpl index 920ff120f7..7daafa3e2a 100644 --- a/templates/repo/diff/compare.tmpl +++ b/templates/repo/diff/compare.tmpl @@ -21,7 +21,7 @@ </div> <div class="menu"> <div class="ui icon search input"> - <i class="filter icon"></i> + <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> <input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}..."> </div> <div class="scrolling menu"> @@ -54,7 +54,7 @@ </div> <div class="menu"> <div class="ui icon search input"> - <i class="filter icon"></i> + <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> <input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}..."> </div> <div class="scrolling menu"> diff --git a/templates/repo/issue/branch_selector_field.tmpl b/templates/repo/issue/branch_selector_field.tmpl index 0facc96bcb..469e72d213 100644 --- a/templates/repo/issue/branch_selector_field.tmpl +++ b/templates/repo/issue/branch_selector_field.tmpl @@ -12,7 +12,7 @@ </div> <div class="menu"> <div class="ui icon search input"> - <i class="filter icon"></i> + <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> <input name="search" placeholder="{{.i18n.Tr "repo.filter_branch_and_tag"}}..."> </div> <div class="header"> diff --git a/templates/repo/issue/new_form.tmpl b/templates/repo/issue/new_form.tmpl index 6c354f1760..9540716e54 100644 --- a/templates/repo/issue/new_form.tmpl +++ b/templates/repo/issue/new_form.tmpl @@ -49,7 +49,7 @@ <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_labels_title"}}</div> {{if or .Labels .OrgLabels}} <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_labels"}}"> </div> {{end}} @@ -94,7 +94,7 @@ <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_milestone_title"}}</div> {{if or .OpenMilestones .ClosedMilestones}} <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_milestones"}}"> </div> {{end}} @@ -151,7 +151,7 @@ <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_project_title"}}</div> {{if or .OpenProjects .ClosedProjects}} <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_projects"}}"> </div> {{end}} @@ -207,7 +207,7 @@ <div class="filter menu" data-id="#assignee_ids"> <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_assignees_title"}}</div> <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_assignees"}}"> </div> <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_assignees"}}</div> diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index ed897fa14e..dad4f7e125 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -16,7 +16,7 @@ <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_reviewer_title"}}</div> {{if .Reviewers}} <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_reviewers"}}"> </div> {{end}} @@ -101,7 +101,7 @@ <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_labels_title"}}</div> {{if or .Labels .OrgLabels}} <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_labels"}}"> </div> {{end}} @@ -149,7 +149,7 @@ <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_milestone_title"}}</div> {{if or .OpenMilestones .ClosedMilestones}} <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_milestones"}}"> </div> {{end}} @@ -246,7 +246,7 @@ <div class="filter menu" data-action="update" data-issue-id="{{$.Issue.ID}}" data-update-url="{{$.RepoLink}}/issues/assignee"> <div class="header" style="text-transform: none;font-size:16px;">{{.i18n.Tr "repo.issues.new.add_assignees_title"}}</div> <div class="ui icon search input"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_assignees"}}"> </div> <div class="no-select item">{{.i18n.Tr "repo.issues.new.clear_assignees"}}</div> diff --git a/templates/repo/issue/view_title.tmpl b/templates/repo/issue/view_title.tmpl index f714f329d3..db55142170 100644 --- a/templates/repo/issue/view_title.tmpl +++ b/templates/repo/issue/view_title.tmpl @@ -61,7 +61,7 @@ </div> <div class="menu"> <div class="ui icon search input"> - <i class="filter icon"></i> + <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> <input name="search" placeholder="{{.i18n.Tr "repo.pulls.filter_branch"}}..."> </div> <div class="scrolling menu" id="branch-select"> diff --git a/templates/repo/search.tmpl b/templates/repo/search.tmpl index 56281e80dd..6aa5567739 100644 --- a/templates/repo/search.tmpl +++ b/templates/repo/search.tmpl @@ -7,7 +7,7 @@ <div class="ui fluid action input"> <input name="q" value="{{.Keyword}}" placeholder="{{.i18n.Tr "repo.search.search_repo"}}"> <button class="ui button" type="submit"> - <i class="search icon"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> </button> </div> </form> diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 49730dc4bb..05a85a5168 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -16,7 +16,7 @@ </div> <div class="menu"> <div class="ui icon search input"> - <i class="filter icon"></i> + <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> <input name="search" placeholder="{{.i18n.Tr "repo.wiki.filter_page"}}..."> </div> <div class="scrolling menu"> diff --git a/templates/user/dashboard/repolist.tmpl b/templates/user/dashboard/repolist.tmpl index 717318634e..e1b97c8b9c 100644 --- a/templates/user/dashboard/repolist.tmpl +++ b/templates/user/dashboard/repolist.tmpl @@ -29,9 +29,9 @@ <div class="ui attached secondary segment repos-search"> <div class="ui fluid right action left icon input" :class="{loading: isLoading}"> <input @input="searchRepos(reposFilter)" v-model="searchQuery" ref="search" placeholder="{{.i18n.Tr "home.search_repos"}}"> - <i class="search icon"></i> - <div class="ui dropdown button" title="{{.i18n.Tr "home.filter"}}"> - <i class="icon filter"></i> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> + <div class="ui dropdown icon button" title="{{.i18n.Tr "home.filter"}}"> + <i class="icon df ac jc m-0">{{svg "octicon-filter" 16}}</i> <div class="menu"> <div class="item"> <a @click="toggleArchivedFilter()"> |