forked from tangled.org/core
Monorepo for Tangled

appview/pages: rename languageBall to colorBall

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li d252ce0b 87bd77a4

verified
Changed files
+9 -9
appview
pages
templates
+6
appview/pages/templates/repo/fragments/colorBall.html
··· 1 + {{ define "repo/fragments/colorBall" }} 2 + <div 3 + class="size-2 rounded-full {{ .classes }}" 4 + style="background: radial-gradient(circle at 35% 35%, color-mix(in srgb, {{ .color }} 70%, white), {{ .color }} 30%, color-mix(in srgb, {{ .color }} 85%, black));" 5 + ></div> 6 + {{ end }}
-6
appview/pages/templates/repo/fragments/languageBall.html
··· 1 - {{ define "repo/fragments/languageBall" }} 2 - <div 3 - class="size-2 rounded-full" 4 - style="background: radial-gradient(circle at 35% 35%, color-mix(in srgb, {{ langColor . }} 70%, white), {{ langColor . }} 30%, color-mix(in srgb, {{ langColor . }} 85%, black));" 5 - ></div> 6 - {{ end }}
+1 -1
appview/pages/templates/repo/index.html
··· 49 49 <div 50 50 class="flex flex-grow items-center gap-2 text-xs align-items-center justify-center" 51 51 > 52 - {{ template "repo/fragments/languageBall" $value.Name }} 52 + {{ template "repo/fragments/colorBall" (dict "color" (langColor $value.Name)) }} 53 53 <div>{{ or $value.Name "Other" }} 54 54 <span class="text-gray-500 dark:text-gray-400"> 55 55 {{ if lt $value.Percentage 0.05 }}
+1 -1
appview/pages/templates/user/fragments/repoCard.html
··· 50 50 <div class="text-gray-400 text-sm font-mono inline-flex gap-4 mt-auto"> 51 51 {{ with .Language }} 52 52 <div class="flex gap-2 items-center text-sm"> 53 - {{ template "repo/fragments/languageBall" . }} 53 + {{ template "repo/fragments/colorBall" (dict "color" (langColor .)) }} 54 54 <span>{{ . }}</span> 55 55 </div> 56 56 {{ end }}
+1 -1
appview/pages/templates/user/overview.html
··· 73 73 {{ with .Repo.RepoStats }} 74 74 {{ with .Language }} 75 75 <div class="flex gap-2 items-center text-xs font-mono text-gray-400 "> 76 - {{ template "repo/fragments/languageBall" . }} 76 + {{ template "repo/fragments/colorBall" (dict "color" (langColor .)) }} 77 77 <span>{{ . }}</span> 78 78 </div> 79 79 {{end }}