Skip to content

Commit 3f36278

Browse files
authored
Merge pull request #43 from Check-Data-Out/refactor/fix-newsletter-issue
2 parents dba2719 + 9bcf9fc commit 3f36278

File tree

3 files changed

+506
-181
lines changed

3 files changed

+506
-181
lines changed

templates/insights/index.html

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,15 @@
130130
box-sizing: border-box;
131131
"
132132
>
133-
{% if weekly_trend_html %} {{weekly_trend_html}} {% endif %}
133+
{% if weekly_trend_html %}
134+
{{weekly_trend_html}}
135+
{% endif %}
136+
134137
{% if not is_expired_token_user and user_weekly_trend_html %}
135-
{{user_weekly_trend_html}} {% endif %} {% if
136-
is_expired_token_user %}
138+
{{user_weekly_trend_html}}
139+
{% endif %}
140+
141+
{% if is_expired_token_user %}
137142
<!-- Token Expired Warning -->
138143
<div style="margin-bottom: 40px; box-sizing: border-box">
139144
<h2
@@ -146,8 +151,11 @@
146151
box-sizing: border-box;
147152
"
148153
>
149-
{% if user.username %} {{user.username}}님의 활동 리포트
150-
{% else %} 활동 리포트 {% endif %}
154+
{% if user.username %}
155+
{{user.username}}님의 활동 리포트
156+
{% else %}
157+
활동 리포트
158+
{% endif %}
151159
</h2>
152160
<div
153161
style="
@@ -192,6 +200,7 @@
192200
font-weight: bold;
193201
text-decoration: underline;
194202
box-sizing: border-box;
203+
display: inline-block;
195204
"
196205
>
197206
여기
@@ -269,6 +278,7 @@
269278
color: #4d4d4d;
270279
text-decoration: underline;
271280
box-sizing: border-box;
281+
display: inline-block;
272282
"
273283
>
274284
대시보드 보러가기
@@ -282,6 +292,7 @@
282292
color: #4d4d4d;
283293
text-decoration: underline;
284294
box-sizing: border-box;
295+
display: inline-block;
285296
"
286297
>
287298
서비스 이용약관
@@ -295,6 +306,7 @@
295306
color: #4d4d4d;
296307
text-decoration: underline;
297308
box-sizing: border-box;
309+
display: inline-block;
298310
"
299311
>
300312
개인정보처리방침

templates/insights/insight_preview.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ <h3>인사이트</h3>
3737
{% endif %}
3838

3939
{% if insight.trending_summary %}
40-
<h2 style="box-sizing: border-box; margin-top: 20px;">{% if user %}작성 게시글 요약{% else %}트렌딩 요약{% endif %}</h2>
40+
<h2 style="box-sizing: border-box; margin-top: 20px;">
41+
{% if user %}
42+
작성 게시글 요약
43+
{% else %}
44+
트렌딩 요약
45+
{% endif %}
46+
</h2>
4147
{% for item in insight.trending_summary %}
4248
<div style="box-sizing: border-box; margin: 15px 0; padding-left: 15px; border-left: 3px solid #ddd;">
4349
<h3 style="box-sizing: border-box; margin-bottom: 5px;">{{ forloop.counter }}. {{ item.title }}</h3>

0 commit comments

Comments
 (0)