Coffee journaling on ATProto (alpha) alpha.arabica.social
coffee
17
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: fix missing text on view pages

authored by

Patrick Dewey and committed by tangled.org 3271cbad 65d05df5

+42 -9
+18 -3
internal/web/pages/bean_view.templ
··· 44 44 <div class="space-y-6"> 45 45 if props.Bean.Roaster != nil && props.Bean.Roaster.Name != "" { 46 46 <div class="section-box"> 47 - <h3 class="text-sm font-medium text-brown-600 uppercase tracking-wider mb-2"><span class="inline-flex items-center gap-1">@components.IconStore() Roaster</span></h3> 47 + <h3 class="text-sm font-medium text-brown-600 uppercase tracking-wider mb-2"> 48 + <span class="inline-flex items-center gap-1"> 49 + @components.IconStore() 50 + Roaster 51 + </span> 52 + </h3> 48 53 <div class="font-semibold text-brown-900"> 49 54 <a 50 55 href={ templ.SafeURL(fmt.Sprintf("/roasters/%s?owner=%s", props.Bean.Roaster.RKey, getOwnerFromShareURL(props.ShareURL))) } ··· 54 59 </a> 55 60 </div> 56 61 if props.Bean.Roaster.Location != "" { 57 - <div class="text-sm text-brown-600 mt-1"><span class="inline-flex items-center gap-1">@components.IconMapPin() { props.Bean.Roaster.Location }</span></div> 62 + <div class="text-sm text-brown-600 mt-1"> 63 + <span class="inline-flex items-center gap-1"> 64 + @components.IconMapPin() 65 + { props.Bean.Roaster.Location } 66 + </span> 67 + </div> 58 68 } 59 69 </div> 60 70 } ··· 75 85 </div> 76 86 if props.Bean.Description != "" { 77 87 <div class="section-box"> 78 - <h3 class="text-sm font-medium text-brown-600 uppercase tracking-wider mb-2"><span class="inline-flex items-center gap-1">@components.IconFileText() Description</span></h3> 88 + <h3 class="text-sm font-medium text-brown-600 uppercase tracking-wider mb-2"> 89 + <span class="inline-flex items-center gap-1"> 90 + @components.IconFileText() 91 + Description 92 + </span> 93 + </h3> 79 94 <div class="text-brown-900 whitespace-pre-wrap">{ props.Bean.Description }</div> 80 95 </div> 81 96 }
+24 -6
internal/web/pages/brew_view.templ
··· 151 151 } 152 152 <div class="flex flex-wrap gap-3 mt-2 text-sm text-brown-600"> 153 153 if brew.Bean.Origin != "" { 154 - <span class="inline-flex items-center gap-1">@components.IconMapPin() { brew.Bean.Origin }</span> 154 + <span class="inline-flex items-center gap-1"> 155 + @components.IconMapPin() 156 + { brew.Bean.Origin } 157 + </span> 155 158 } 156 159 if brew.Bean.RoastLevel != "" { 157 - <span class="inline-flex items-center gap-1">@components.IconFlame() { brew.Bean.RoastLevel }</span> 160 + <span class="inline-flex items-center gap-1"> 161 + @components.IconFlame() 162 + { brew.Bean.RoastLevel } 163 + </span> 158 164 } 159 165 </div> 160 166 } else { ··· 366 372 <a href={ templ.SafeURL(fmt.Sprintf("/recipes/%s?owner=%s", recipe.RKey, owner)) } class="font-bold text-lg text-brown-900 hover:text-brown-700 underline decoration-brown-300 hover:decoration-brown-500 transition-colors">{ recipe.Name }</a> 367 373 <div class="flex flex-wrap gap-3 mt-2 text-sm text-brown-600"> 368 374 if recipe.CoffeeAmount > 0 { 369 - <span class="inline-flex items-center gap-1">@components.IconCoffee() { fmt.Sprintf("%.1fg coffee", recipe.CoffeeAmount) }</span> 375 + <span class="inline-flex items-center gap-1"> 376 + @components.IconCoffee() 377 + { fmt.Sprintf("%.1fg coffee", recipe.CoffeeAmount) } 378 + </span> 370 379 } 371 380 if recipe.WaterAmount > 0 { 372 - <span class="inline-flex items-center gap-1">@components.IconDroplet() { fmt.Sprintf("%.1fg water", recipe.WaterAmount) }</span> 381 + <span class="inline-flex items-center gap-1"> 382 + @components.IconDroplet() 383 + { fmt.Sprintf("%.1fg water", recipe.WaterAmount) } 384 + </span> 373 385 } 374 386 if recipe.BrewerObj != nil { 375 - <span class="inline-flex items-center gap-1">@components.IconBrewer() { recipe.BrewerObj.Name }</span> 387 + <span class="inline-flex items-center gap-1"> 388 + @components.IconBrewer() 389 + { recipe.BrewerObj.Name } 390 + </span> 376 391 } else if recipe.BrewerType != "" { 377 - <span class="inline-flex items-center gap-1">@components.IconBrewer() { recipe.BrewerType }</span> 392 + <span class="inline-flex items-center gap-1"> 393 + @components.IconBrewer() 394 + { recipe.BrewerType } 395 + </span> 378 396 } 379 397 </div> 380 398 if recipe.Notes != "" {