Skip to content

Commit 55c39e5

Browse files
committed
feat: Update templates
1 parent cd76a21 commit 55c39e5

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
{% if region %}
12
<h1>{{region.dong_name}}의 집값 추이는?</h1>
23

34
<ul>
4-
{% if realestates %}
55
<li>
66
<p>trading volume : {{trading_volume}}</p>
77
<p>average price : {{average_price}}</p>
@@ -11,7 +11,7 @@ <h1>{{region.dong_name}}의 집값 추이는?</h1>
1111
<p>{{t}}</p>
1212
{% endfor %}
1313
</li>
14-
{% else %}
15-
<p>no real estaes</p>
16-
{% endif %}
1714
</ul>
15+
{% else %}
16+
<p>no real estaes</p>
17+
{% endif %}

trades/templates/trades/main.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ <h5>
4444
<ul class="tabs">
4545
{% for region in regions %}
4646
<li class="tab" style="list-style-type: none">
47-
{%if sido%}
47+
{%if gugun%}
48+
<a
49+
href="{% url 'trades:detail' %}?dong_nm={{sido}}-{{gugun}}-{{region}}"
50+
>
51+
{{region}}
52+
</a>
53+
{%elif sido%}
4854
<a
4955
href="{% url 'trades:index' %}?sido_nm={{sido}}&gugun_nm={{region}}"
5056
>

0 commit comments

Comments
 (0)