Skip to content

Octicons are missing for dashboard repolist #12226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 of 7 tasks
CirnoT opened this issue Jul 12, 2020 · 2 comments · Fixed by #12228
Closed
2 of 7 tasks

Octicons are missing for dashboard repolist #12226

CirnoT opened this issue Jul 12, 2020 · 2 comments · Fixed by #12228
Labels

Comments

@CirnoT
Copy link
Contributor

CirnoT commented Jul 12, 2020

  • Gitea version (or commit ref): bac57ab
  • Git version: gitea:latest
  • Operating system: gitea:latest
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

#12157 introduced direct SVG rendering however no appropriate changes were made to dashboard repolist

<label><svg class="svg octicon-lock" width="16" height="16" aria-hidden="true"><use xlink:href="#octicon-lock" /></svg>{{.i18n.Tr "home.show_private"}}</label>

@silverwind
Copy link
Member

There's more:

<svg :class="'svg ' + repoClass(repo)" width="16" height="16" aria-hidden="true"><use :xlink:href="'#' + repoClass(repo)" /></svg>

A template language inside another template language. I don't think it's such a great idea.

@silverwind
Copy link
Member

I really wonder why there is even vue templates mixed in the go templates using pseudo-global JS functions. Those should be standalone .vue files.

silverwind added a commit to silverwind/gitea that referenced this issue Jul 12, 2020
lafriks pushed a commit that referenced this issue Jul 12, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants