Skip to content

Commit

Permalink
Make translations table sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Oct 1, 2024
1 parent ea2a175 commit 90a9913
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 2 deletions.
9 changes: 8 additions & 1 deletion assets/scss/_variables_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,11 @@ html.smooth-scroll {
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}

.icon-subsonic:before { content: '\e800'; } /* '' */
.icon-subsonic:before { content: '\e800'; } /* '' */

.sortable th {
cursor: pointer;
}
.sortable th:hover {
background-color: #f0f0f0;
}
19 changes: 19 additions & 0 deletions layouts/docs/baseof.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="{{ .Site.Language.Lang }}" class="no-js {{ if .IsHome }}smooth-scroll{{ end }}">
<head>
{{ partial "head.html" . }}
<script src="{{ "js/sorttable.js" | relURL }}"></script>
</head>
<body class="td-{{ .Kind }}">
<header>
{{ partial "navbar.html" . }}
</header>
<div class="container-fluid td-default td-outer">
<main role="main" class="td-main">
{{ block "main" . }}{{ end }}
</main>
{{ partial "footer.html" . }}
</div>
{{ partialCached "scripts.html" . }}
</body>
</html>
2 changes: 1 addition & 1 deletion layouts/shortcodes/poeditorTranslations.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{ else }}
{{ $data := $response.Content | unmarshal }}
{{ if eq $data.response.status "success" }}
<table class="translation-table">
<table class="translation-table sortable">
<thead>
<tr>
<th>Language</th>
Expand Down
Loading

0 comments on commit 90a9913

Please sign in to comment.