Unify organizer navigation and add personal widget dashboard
This commit is contained in:
1 parent
a9249009f0
commit
6ba30bc9f4
44 files changed
+843
-54
No files matched your search
@@ -58,6 +58,9 @@ func (s *Server) handleTaskProductivity(w http.ResponseWriter, r *http.Request,
|
||||
return
|
||||
}
|
||||
switch kind {
|
||||
case "dashboard", "progress":
|
||||
s.handleDashboardData(w, r, actor, active, kind)
|
||||
return
|
||||
case "calendar-capture":
|
||||
if r.Method == "POST" {
|
||||
if !s.systemExtensionEnabled(domain, "organizer.calendar") {
|
||||
@@ -263,6 +266,9 @@ func (s *Server) handleTaskProductivity(w http.ResponseWriter, r *http.Request,
|
||||
}
|
||||
|
||||
func (s *Server) handleTaskProductivityPage(w http.ResponseWriter, r *http.Request, active bool) {
|
||||
view := strings.TrimPrefix(r.URL.Path, "/v/plan/tasks/")
|
||||
s.renderWithContext(w, r, "task_productivity.gohtml", map[string]any{"Title": "Tasks", "ProductivityView": view, "TaskWritable": active, "Path": r.URL.Path})
|
||||
if strings.HasSuffix(r.URL.Path, "/settings") {
|
||||
http.Redirect(w, r, "/-/sys/config?panel=organizer", http.StatusSeeOther)
|
||||
return
|
||||
}
|
||||
http.Redirect(w, r, "/v/plan/dashboard#activity", http.StatusSeeOther)
|
||||
}
|
||||
Reference in new issue
Block a user