sunpayus/templates/results.html

99 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>决策要点 - {{ workshop.name }}</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #f5f5f5;
}
.container {
max-width: 800px;
margin: 0 auto;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
color: #333;
text-align: center;
}
h2 {
color: #555;
margin-top: 30px;
}
.btn {
display: inline-block;
padding: 10px 20px;
background-color: #333;
color: white;
text-decoration: none;
border-radius: 4px;
margin: 10px 0;
}
.decision-points {
margin: 20px 0;
padding: 20px;
background-color: #f9f9f9;
border-radius: 4px;
white-space: pre-wrap;
}
.debate-summary {
margin: 20px 0;
padding: 10px;
background-color: #f9f9f9;
border-radius: 4px;
}
.debate-item {
padding: 10px;
border-bottom: 1px solid #eee;
}
.debate-item:last-child {
border-bottom: none;
}
.role-tag {
display: inline-block;
padding: 3px 10px;
background-color: #4CAF50;
color: white;
border-radius: 12px;
font-size: 12px;
margin-right: 10px;
}
</style>
</head>
<body>
<div class="container">
<h1>决策要点 - {{ workshop.name }}</h1>
<a href="{{ url_for('index') }}" class="btn">返回首页</a>
<a href="{{ url_for('start_debate', workshop_id=workshop_id) }}" class="btn">继续辩论</a>
<h2>工作坊目标</h2>
<p>{{ workshop.goal }}</p>
<h2>AI 生成的决策要点</h2>
<div class="decision-points">
{{ workshop.decision_points }}
</div>
<h2>辩论内容摘要</h2>
<div class="debate-summary">
{% if workshop.debate_content %}
{% for item in workshop.debate_content %}
<div class="debate-item">
<span class="role-tag">{{ item.role }}</span>
<p>{{ item.opinion }}</p>
</div>
{% endfor %}
{% else %}
<p>暂无辩论内容,请先添加辩论内容</p>
{% endif %}
</div>
</div>
</body>
</html>