11< div class ="module aligned ">
2+ {% if user and insight.user_weekly_stats %}
3+ < h2 style ="margin-top: 20px; "> 사용자 주간 통계</ h2 >
4+ < div style ="margin-left: 15px; ">
5+ < p > < strong > 전체 게시글 수:</ strong > {{ insight.user_weekly_stats.posts }}</ p >
6+ < p > < strong > 새 게시글 수:</ strong > {{ insight.user_weekly_stats.new_posts }}</ p >
7+ < p > < strong > 조회수 증가:</ strong > {{ insight.user_weekly_stats.views }}</ p >
8+ < p > < strong > 좋아요 증가:</ strong > {{ insight.user_weekly_stats.likes }}</ p >
9+ </ div >
10+ {% endif %}
11+
212 {% if insight.trend_analysis %}
313 < h2 style ="margin-top: 10px; "> 트렌드 분석</ h2 >
414 < div style ="margin-left: 15px; ">
@@ -28,16 +38,27 @@ <h3>인사이트</h3>
2838
2939 {% if insight.trending_summary %}
3040 < h2 style ="margin-top: 20px; "> {% if user %}작성 게시글 요약{% else %}트렌딩 요약{% endif %}</ h2 >
31- {% for summary in insight.trending_summary %}
41+ {% for item in insight.trending_summary %}
3242 < div style ="margin: 15px 0; padding-left: 15px; border-left: 3px solid #ddd; ">
33- < h3 style ="margin-bottom: 5px; "> {{ forloop.counter }}. {{ summary .title }}</ h3 >
34- < p style ="line-height: 1.5; margin-bottom: 8px; "> {{ summary .summary }}</ p >
35- {% if summary .key_points %}
36- < p > < strong > 핵심 포인트 :</ strong > {{ summary .key_points|join:", " }}</ p >
43+ < h3 style ="margin-bottom: 5px; "> {{ forloop.counter }}. {{ item .title }}</ h3 >
44+ < p style ="line-height: 1.5; margin-bottom: 8px; "> {{ item .summary }}</ p >
45+ {% if item .key_points %}
46+ < p > < strong > 핵심 키워드 :</ strong > {{ item .key_points|join:", " }}</ p >
3747 {% endif %}
48+ < p > < strong > 작성자:</ strong > {{ item.username }}</ p >
49+ < p > < strong > URL:</ strong > < a href ="https://velog.io/@{{item.username}}/{{item.slug}} " target ="_blank "> https://velog.io/@{{item.username}}/{{item.slug}}</ a > </ p >
50+ {% if item.thumbnail %}
51+ < p > < strong > 썸네일:</ strong > < img src ="{{item.thumbnail}} " alt ="썸네일 " style ="width: 150px; "> </ p >
52+ {% endif %}
3853 </ div >
3954 {% endfor %}
40- {% else %}
41- < p > 요약 데이터 없음</ p >
55+ {% endif %}
56+
57+ {% if user and insight.user_weekly_reminder %}
58+ < h2 style ="margin-top: 20px; "> 리마인더</ h2 >
59+ < div style ="margin-left: 15px; ">
60+ < p > < strong > 마지막 작성 글:</ strong > {{ insight.user_weekly_reminder.title }}</ p >
61+ < p > < strong > 마지막 작성일:</ strong > {{ insight.user_weekly_reminder.days_ago }}일 전</ p >
62+ </ div >
4263 {% endif %}
4364</ div >
0 commit comments