From 86fdba177ad82f3dcdfc237631fef4588042b9d6 Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Tue, 11 Feb 2020 11:02:41 -0600 Subject: Add Octicon SVG spritemap (#10107) * Add octicon SVG sprite Signed-off-by: jolheiser * Static prefix Signed-off-by: jolheiser * SVG for all repo icons Signed-off-by: jolheiser * make vendor Signed-off-by: jolheiser * Swap out octicons Signed-off-by: jolheiser * Move octicons to top of less imports Signed-off-by: jolheiser * Fix JS Signed-off-by: jolheiser * Definitely not a search/replace Signed-off-by: jolheiser * Missed regex Signed-off-by: jolheiser * Move to more generic calls and webpack Signed-off-by: jolheiser * make svg -> make webpack Signed-off-by: jolheiser * Remove svg-sprite Signed-off-by: jolheiser * Update tests Signed-off-by: jolheiser * Missed a test Signed-off-by: jolheiser * Remove svg from makefile Signed-off-by: jolheiser * Suggestions Signed-off-by: jolheiser * Attempt to fix test Signed-off-by: jolheiser * Update tests Signed-off-by: jolheiser * Revert timetracking test Signed-off-by: jolheiser * Swap .octicon for .svg in less Signed-off-by: jolheiser * Add aria-hidden Signed-off-by: jolheiser * Replace mega-octicon Signed-off-by: jolheiser * Fix webpack globbing on Windows Signed-off-by: jolheiser * Revert Co-Authored-By: silverwind * Fix octions from upstream Signed-off-by: jolheiser * Fix Vue and missed JS function Signed-off-by: jolheiser * Add JS helper and PWA Signed-off-by: jolheiser * Preload SVG Signed-off-by: jolheiser Co-authored-by: silverwind Co-authored-by: techknowlogick --- templates/user/settings/repos.tmpl | 106 ++++++++++++++++++------------------- 1 file changed, 53 insertions(+), 53 deletions(-) (limited to 'templates/user/settings/repos.tmpl') diff --git a/templates/user/settings/repos.tmpl b/templates/user/settings/repos.tmpl index efb2c41c5b..d28f067fdd 100644 --- a/templates/user/settings/repos.tmpl +++ b/templates/user/settings/repos.tmpl @@ -1,53 +1,53 @@ -{{template "base/head" .}} -
- {{template "user/settings/navbar" .}} -
- {{template "base/alert" .}} -

- {{.i18n.Tr "settings.repos"}} -

-
- {{if .Repos}} -
- {{range .Repos}} -
-
- {{if .IsPrivate}} - - {{else if .IsFork}} - - {{else if .IsMirror}} - - {{else}} - - {{end}} - {{$.Owner.Name}}/{{.Name}} - {{SizeFmt .Size}} - {{if .IsFork}} - {{$.i18n.Tr "repo.forked_from"}} - {{.BaseRepo.Owner.Name}}/{{.BaseRepo.Name}} - {{end}} -
-
- {{end}} -
- {{else}} -
- {{.i18n.Tr "settings.repos_none"}} -
- {{end}} -
-
-
- - -{{template "base/footer" .}} +{{template "base/head" .}} +
+ {{template "user/settings/navbar" .}} +
+ {{template "base/alert" .}} +

+ {{.i18n.Tr "settings.repos"}} +

+
+ {{if .Repos}} +
+ {{range .Repos}} +
+
+ {{if .IsPrivate}} + {{svg "octicon-lock" 16}} + {{else if .IsFork}} + {{svg "octicon-repo-forked" 16}} + {{else if .IsMirror}} + {{svg "octicon-repo-clone" 16}} + {{else}} + {{svg "octicon-repo" 16}} + {{end}} + {{$.Owner.Name}}/{{.Name}} + {{SizeFmt .Size}} + {{if .IsFork}} + {{$.i18n.Tr "repo.forked_from"}} + {{.BaseRepo.Owner.Name}}/{{.BaseRepo.Name}} + {{end}} +
+
+ {{end}} +
+ {{else}} +
+ {{.i18n.Tr "settings.repos_none"}} +
+ {{end}} +
+
+
+ + +{{template "base/footer" .}} -- cgit v1.2.3