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/repo/issue | |
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/repo/issue')
-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 |
4 files changed, 10 insertions, 10 deletions
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"> |