diff --git a/templates/dealroom.templ b/templates/dealroom.templ
index 659f0ce..a36c317 100644
--- a/templates/dealroom.templ
+++ b/templates/dealroom.templ
@@ -2,6 +2,7 @@ package templates
import "dealroom/internal/model"
import "fmt"
+import "strings"
import "time"
templ DealRoomDetail(profile *model.Profile, deal *model.Deal, folders []*model.Folder, files []*model.File, requests []*model.DiligenceRequest, activeFolder string) {
@@ -189,6 +190,7 @@ templ DealRoomDetail(profile *model.Profile, deal *model.Deal, folders []*model.
Conf. |
Buyer |
Seller |
+ Files |
@@ -213,6 +215,17 @@ templ DealRoomDetail(profile *model.Profile, deal *model.Deal, folders []*model.
{ req.BuyerComment } |
{ req.SellerComment } |
+
+ if req.LinkedFileIDs != "" {
+
+ }
+ |
}
@@ -382,6 +395,30 @@ templ fileIcon(name string) {
}
+func splitLinkedFiles(ids string) []string {
+ if ids == "" {
+ return nil
+ }
+ parts := strings.Split(ids, ",")
+ var result []string
+ for _, p := range parts {
+ p = strings.TrimSpace(p)
+ if p != "" {
+ result = append(result, p)
+ }
+ }
+ return result
+}
+
+func getLinkedFileName(files []*model.File, fileID string) string {
+ for _, f := range files {
+ if f.ID == fileID {
+ return f.Name
+ }
+ }
+ return fileID
+}
+
func hasSuffix(s, suffix string) bool {
return len(s) >= len(suffix) && s[len(s)-len(suffix):] == suffix
}