+ @if (showForm)
+ {
+
+ }
+
+ @if (!tasks.Any() && !showForm)
+ {
+
+
⏰
+
No scheduled tasks yet
+
Create a recurring task to automatically send prompts on a schedule.
+
+
+ }
+ else if (tasks.Any())
+ {
+
+ @foreach (var task in tasks)
+ {
+ var nextRunTime = task.IsEnabled ? task.GetNextRunTimeUtc(DateTime.UtcNow) : null;
+
+
+
+
@TruncatePrompt(task.Prompt, 120)
+ @if (!string.IsNullOrEmpty(task.SessionName))
+ {
+
Session: @task.SessionName
+ }
+ else
+ {
+
New session each run
+ }
+
+ @if (task.RecentRuns.Any())
+ {
+
+ }
+ else if (nextRunTime != null)
+ {
+
+ }
+
+ }
+
+ }
+