nandi/gleanpublic Fork 0
82d1c8b
Commits
Clone
git clone https://git.rickub.com/nandi/glean.git
git clone ssh://git@rickub.com/nandi/glean.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Remove redundant empty-state blocks from dashboardUnverified

Julien Robert committed 2026-05-28T10:11:15+02:00 Browse files
82d1c8b parent: aaebc26
modified internal/tmpl/dashboard.html +0 -18
@@ -36,11 +36,6 @@
3636 {{end}}
3737 </div>
3838 </div>
39-{{else}}
40-<div class="mb-8">
41- <h2 class="text-lg font-semibold text-spot-text mb-4">Recommended for you</h2>
42- {{template "empty-state.html" (dict "icon" "icon-sparkles" "title" "No recommendations yet" "subtitle" "Read and like more articles to get personalized picks.")}}
43-</div>
4439 {{end}}
4540
4641 {{if and .DigestEnabled .HasLLM}}
@@ -85,11 +80,6 @@
8580 {{end}}
8681 </div>
8782 </div>
88-{{else}}
89-<div class="mb-8">
90- <h2 class="text-lg font-semibold text-spot-text mb-4">Recommended for you</h2>
91- {{template "empty-state.html" (dict "icon" "icon-sparkles" "title" "No recommendations yet" "subtitle" "Read and like more articles to get personalized picks.")}}
92-</div>
9383 {{end}}
9484
9585 <div class="mb-8">
@@ -115,14 +105,6 @@
115105 {{range .PersonalTrending}}{{template "trending-card.html" .}}{{end}}
116106 </div>
117107 </div>
118-{{else}}
119-<div class="mb-8">
120- <div class="flex items-center justify-between mb-4">
121- <h2 class="text-lg font-semibold text-spot-text">Trending</h2>
122- <a href="/trending" class="text-xs text-spot-secondary hover:text-spot-green uppercase tracking-button transition">See all</a>
123- </div>
124- {{template "empty-state.html" (dict "icon" "icon-trending" "title" "No trending articles yet" "subtitle" "Articles will appear here as the community grows.")}}
125-</div>
126108 {{end}}
127109
128110 {{if or .FollowedPeople .DiscoverPeople}}
@@ -36,11 +36,6 @@
36 {{end}}36 {{end}}
37 </div>37 </div>
38 </div>38 </div>
39-{{else}}
40-<div class="mb-8">
41- <h2 class="text-lg font-semibold text-spot-text mb-4">Recommended for you</h2>
42- {{template "empty-state.html" (dict "icon" "icon-sparkles" "title" "No recommendations yet" "subtitle" "Read and like more articles to get personalized picks.")}}
43-</div>
44 {{end}}39 {{end}}
45 40
46 {{if and .DigestEnabled .HasLLM}}41 {{if and .DigestEnabled .HasLLM}}
@@ -85,11 +80,6 @@
85 {{end}}80 {{end}}
86 </div>81 </div>
87 </div>82 </div>
88-{{else}}
89-<div class="mb-8">
90- <h2 class="text-lg font-semibold text-spot-text mb-4">Recommended for you</h2>
91- {{template "empty-state.html" (dict "icon" "icon-sparkles" "title" "No recommendations yet" "subtitle" "Read and like more articles to get personalized picks.")}}
92-</div>
93 {{end}}83 {{end}}
94 84
95 <div class="mb-8">85 <div class="mb-8">
@@ -115,14 +105,6 @@
115 {{range .PersonalTrending}}{{template "trending-card.html" .}}{{end}}105 {{range .PersonalTrending}}{{template "trending-card.html" .}}{{end}}
116 </div>106 </div>
117 </div>107 </div>
118-{{else}}
119-<div class="mb-8">
120- <div class="flex items-center justify-between mb-4">
121- <h2 class="text-lg font-semibold text-spot-text">Trending</h2>
122- <a href="/trending" class="text-xs text-spot-secondary hover:text-spot-green uppercase tracking-button transition">See all</a>
123- </div>
124- {{template "empty-state.html" (dict "icon" "icon-trending" "title" "No trending articles yet" "subtitle" "Articles will appear here as the community grows.")}}
125-</div>
126 {{end}}108 {{end}}
127 109
128 {{if or .FollowedPeople .DiscoverPeople}}110 {{if or .FollowedPeople .DiscoverPeople}}