Skip to content

Commit 32ced1c

Browse files
author
yook-gijun
committed
fix: 린팅 이슈 해결
1 parent 7ee3441 commit 32ced1c

File tree

2 files changed

+36
-16
lines changed

2 files changed

+36
-16
lines changed

templates/insights/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,11 @@
133133
{% if weekly_trend_html %}
134134
{{weekly_trend_html}}
135135
{% endif %}
136+
136137
{% if not is_expired_token_user and user_weekly_trend_html %}
137138
{{user_weekly_trend_html}}
138139
{% endif %}
140+
139141
{% if is_expired_token_user %}
140142
<!-- Token Expired Warning -->
141143
<div style="margin-bottom: 40px; box-sizing: border-box">

templates/insights/user_weekly_trend.html

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@
1313
letter-spacing: 0;
1414
"
1515
>
16-
{% if user.username %} {{user.username}}님의 활동 리포트 {% else %} 활동
17-
리포트 {% endif %}
16+
{% if user.username %}
17+
{{user.username}}님의 활동 리포트
18+
{% else %}
19+
활동 리포트
20+
{% endif %}
1821
</h2>
19-
{% endif %} {% if insight.user_weekly_stats %}
22+
{% endif %}
23+
{% if insight.user_weekly_stats %}
2024
<div
2125
style="
2226
box-sizing: border-box;
@@ -38,7 +42,8 @@
3842
"
3943
>
4044
<!-- 새 글이 없을 경우 해당 내용만 제거하고 표시 -->
41-
{% if insight.user_weekly_stats.new_posts > 0 %} 저번 주에는
45+
{% if insight.user_weekly_stats.new_posts > 0 %}
46+
저번 주에는
4247
<span
4348
style="
4449
box-sizing: border-box;
@@ -50,7 +55,8 @@
5055
{{insight.user_weekly_stats.new_posts}}개의 글
5156
</span>
5257
을 작성하셨네요!<br />
53-
{% endif %} 👏 지난 한 주간
58+
{% endif %}
59+
👏 지난 한 주간
5460
<span
5561
style="
5662
box-sizing: border-box;
@@ -61,7 +67,10 @@
6167
>
6268
{{insight.user_weekly_stats.views}}명
6369
</span>
64-
이 {% if user.username %} {{user.username}}님의 {% endif %} 포스트를
70+
71+
{% if user.username %}
72+
{{user.username}}님의
73+
{% endif %} 포스트를
6574
읽었어요.<br />
6675
그리고
6776
<span
@@ -87,7 +96,8 @@
8796
</span>
8897
</p>
8998
</div>
90-
{% endif %} {% if insight.user_weekly_reminder %}
99+
{% endif %}
100+
{% if insight.user_weekly_reminder %}
91101
<div
92102
style="
93103
box-sizing: border-box;
@@ -124,10 +134,12 @@
124134
letter-spacing: 0;
125135
"
126136
>
127-
{% if insight.user_weekly_reminder.title %} 지난번엔
128-
"{{insight.user_weekly_reminder.title}}" (이)라는 제목의 글을
129-
작성하셨네요!<br />
130-
{% endif %} 다음 주에 새로운 글을 발행하시면 저희가 분석해드려요.<br />
137+
{% if insight.user_weekly_reminder.title %}
138+
지난번엔
139+
"{{insight.user_weekly_reminder.title}}" (이)라는 제목의 글을
140+
작성하셨네요!<br />
141+
{% endif %}
142+
다음 주에 새로운 글을 발행하시면 저희가 분석해드려요.<br />
131143
다음주엔 꼭 분석해드리고 싶네요! 화이팅! 💪<br />
132144
<br />
133145
TIP:
@@ -192,7 +204,8 @@
192204
</p>
193205
{% endif %}
194206
</div>
195-
{% endif %} {% if insight.trending_summary %}
207+
{% endif %}
208+
{% if insight.trending_summary %}
196209
<h3
197210
style="
198211
box-sizing: border-box;
@@ -346,7 +359,9 @@
346359
</tr>
347360
</table>
348361
</div>
349-
{% endfor %} {% endif %} {% if insight.trend_analysis %}
362+
{% endfor %}
363+
{% endif %}
364+
{% if insight.trend_analysis %}
350365
<div style="box-sizing: border-box; margin-top: 40px">
351366
<h3
352367
style="
@@ -387,7 +402,8 @@
387402
>
388403
{{ insight.trend_analysis.hot_keywords|join:", " }}
389404
</p>
390-
{% endif %} {% if insight.trend_analysis.title_trends %}
405+
{% endif %}
406+
{% if insight.trend_analysis.title_trends %}
391407
<h4
392408
style="
393409
box-sizing: border-box;
@@ -414,7 +430,8 @@
414430
>
415431
{{ insight.trend_analysis.title_trends }}
416432
</p>
417-
{% endif %} {% if insight.trend_analysis.content_trends %}
433+
{% endif %}
434+
{% if insight.trend_analysis.content_trends %}
418435
<h4
419436
style="
420437
box-sizing: border-box;
@@ -441,7 +458,8 @@
441458
>
442459
{{ insight.trend_analysis.content_trends }}
443460
</p>
444-
{% endif %} {% if insight.trend_analysis.insights %}
461+
{% endif %}
462+
{% if insight.trend_analysis.insights %}
445463
<h4
446464
style="
447465
box-sizing: border-box;

0 commit comments

Comments
 (0)