Skip to content

Commit a8f994f

Browse files
Changes before error encountered
Co-authored-by: JacobKMcPherson <70453018+JacobKMcPherson@users.noreply.github.com>
1 parent de5a50a commit a8f994f

1 file changed

Lines changed: 18 additions & 4 deletions

File tree

research/callforpapers.qmd

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ def create_callforpapers_html(papers_data):
9999
.callforpapers-table tbody tr.past-deadline {
100100
opacity: 0.45;
101101
}
102+
.callforpapers-table tbody tr.no-project {
103+
background-color: #fce0c8;
104+
border-left: 4px solid #cc5500;
105+
}
106+
.callforpapers-table tbody tr.no-project:hover {
107+
background-color: #f8c9a8;
108+
}
102109
</style>
103110
<table class="callforpapers-table">
104111
<thead>
@@ -114,14 +121,21 @@ def create_callforpapers_html(papers_data):
114121
"""
115122
116123
for paper in sorted_papers:
117-
# Determine row class based on due date status
118-
row_class = ""
124+
# Determine row classes based on due date status and project presence
125+
classes = []
119126
if paper['due_date'] != 'Ongoing':
120127
days_until = (paper['sort_date'] - current_date).days
121128
if days_until < 0:
122-
row_class = ' class="past-deadline"'
129+
classes.append("past-deadline")
123130
elif 0 <= days_until <= 60:
124-
row_class = ' class="upcoming-deadline"'
131+
classes.append("upcoming-deadline")
132+
133+
projects = paper.get('projects', [])
134+
has_project = bool(projects and isinstance(projects, list) and any(p for p in projects))
135+
if not has_project:
136+
classes.append("no-project")
137+
138+
row_class = f' class="{" ".join(classes)}"' if classes else ""
125139
126140
website_html = f"<a href='{paper['website']}' target='_blank' style='color: #007bff;'>Link</a>"
127141
# Format Journal column with journal name and website link below

0 commit comments

Comments
 (0)