Skip to content

Commit 308b562

Browse files
authored
Remove remaining fontawesome usage in templates (#15952)
Can not remove the dependency yet because easymde depends on it.
1 parent 5c7e2f4 commit 308b562

File tree

11 files changed

+17
-16
lines changed

11 files changed

+17
-16
lines changed

public/img/svg/fontawesome-openid.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

templates/repo/issue/view_content/pull.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<div class="review-item-right">
3636
{{if .Review.Stale}}
3737
<span class="ui poping up type-icon text grey" data-content="{{$.i18n.Tr "repo.issues.is_stale"}}">
38-
<i class="octicon icon fa-hourglass-end"></i>
38+
{{svg "octicon-hourglass" 16 "icon"}}
3939
</span>
4040
{{end}}
4141
{{if (and $.Permission.IsAdmin (or (eq .Review.Type 1) (eq .Review.Type 3)) (not $.Issue.IsClosed))}}

templates/user/auth/signin_navbar.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
</a>
77
{{if .EnableOpenIDSignIn}}
88
<a class="{{if .PageIsLoginOpenID}}active{{end}} item" rel="nofollow" href="{{AppSubUrl}}/user/login/openid">
9-
<i class="fa fa-openid"></i>
9+
{{svg "fontawesome-openid"}}
1010
&nbsp;OpenID
1111
</a>
1212
{{end}}
1313
{{if .EnableSSPI}}
1414
<a class="item" rel="nofollow" href="{{AppSubUrl}}/user/login?auth_with_sspi=1">
15-
<i class="fa fa-windows"></i>
15+
{{svg "fontawesome-windows"}}
1616
&nbsp;SSPI
1717
</a>
1818
{{end}}

templates/user/auth/signin_openid.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="ui container">
55
{{template "base/alert" .}}
66
<h4 class="ui top attached header center">
7-
<i class="fa fa-openid"></i>
7+
{{svg "fontawesome-openid"}}
88
OpenID
99
</h4>
1010
<div class="ui attached segment">
@@ -15,7 +15,7 @@
1515
</div>
1616
<div class="required inline field {{if .Err_OpenID}}error{{end}}">
1717
<label for="openid">
18-
<i class="fa fa-openid"></i>
18+
{{svg "fontawesome-openid"}}
1919
OpenID URI
2020
</label>
2121
<input id="openid" name="openid" value="{{.openid}}" autofocus required>

templates/user/profile.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{{range .OpenIDs}}
4343
{{if .Show}}
4444
<li>
45-
<i class="fa fa-openid"></i>
45+
{{svg "fontawesome-openid"}}
4646
<a target="_blank" rel="noopener noreferrer" href="{{.URI}}">{{.URI}}</a>
4747
</li>
4848
{{end}}

templates/user/settings/security_openid.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
<input name="id" type="hidden" value="{{.ID}}">
2020
{{if .Show}}
2121
<button class="ui tiny button">
22-
<i class="icon fa-eye"></i>
22+
{{svg "octicon-eye" 16 "icon"}}
2323
{{$.i18n.Tr "settings.hide_openid"}}
2424
</button>
2525
{{else}}
2626
<button class="ui tiny button">
27-
<i class="icon fa-eye-slash"></i>
27+
{{svg "octicon-eye-closed" 16 "icon"}}
2828
{{$.i18n.Tr "settings.show_openid"}}
2929
</button>
3030
{{end}}

web_src/less/_base.less

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,12 +1162,6 @@ footer {
11621162
padding: 0 .5rem;
11631163
max-width: calc(100vw - 1rem) !important;
11641164

1165-
.fa {
1166-
width: 16px;
1167-
text-align: center;
1168-
color: var(--color-primary);
1169-
}
1170-
11711165
.links > * {
11721166
border-left: 1px solid var(--color-secondary);
11731167
padding-left: 8px;

web_src/less/_user.less

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
border-bottom: 1px solid var(--color-secondary);
3535
}
3636

37-
.svg,
38-
.fa {
37+
.svg {
3938
margin-left: 1px;
4039
margin-right: 5px;
4140
}

web_src/svg/fontawesome-openid.svg

Lines changed: 3 additions & 0 deletions
Loading

web_src/svg/fontawesome-windows.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)