diff options
Diffstat (limited to 'pkg/app/handler/user/preferences.templ')
-rw-r--r-- | pkg/app/handler/user/preferences.templ | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/pkg/app/handler/user/preferences.templ b/pkg/app/handler/user/preferences.templ index 01805e2..0eb7e4a 100644 --- a/pkg/app/handler/user/preferences.templ +++ b/pkg/app/handler/user/preferences.templ @@ -11,16 +11,6 @@ import ( var viewTabs = []layout.SubTab{ { - Name: "General", - Link: "/user/preferences/general", - Icon: "fa fa-globe mr-1", - }, - { - Name: "Packages", - Link: "/user/preferences/packages", - Icon: "fa fa-cube mr-1", - }, - { Name: "Maintainers", Link: "/user/preferences/maintainers", Icon: "fa fa-users mr-1", @@ -30,8 +20,6 @@ var viewTabs = []layout.SubTab{ templ show(currentSubTab string, preferences models.UserPreferences) { <div class="container mb-5"> switch currentSubTab { - case "General": - @general(preferences.General) case "Maintainers": @maintainers(preferences.Maintainers) } @@ -39,24 +27,6 @@ templ show(currentSubTab string, preferences models.UserPreferences) { <script src="/assets/userpref.js"></script> } -templ sortableScript() { - <script src="https://cdn.jsdelivr.net/npm/sortablejs@latest/Sortable.min.js"></script> - <script> - if(document.getElementById("example1") != null && document.getElementById("example2") != null) { - new Sortable(example1, { - group: 'shared', - animation: 150, - ghostClass: 'bg-info' - }); - new Sortable(example2, { - group: 'shared', - animation: 150, - ghostClass: 'bg-info' - }); - } - </script> -} - func Preferences(currentSubTab string) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { layout.TabbedLayout("User", layout.About, "Preferences", "fa fa-fw fa-cog", "You can customize the page contents to your needs here", viewTabs, |