Skip to content
This repository was archived by the owner on May 23, 2020. It is now read-only.

Commit 11f25c6

Browse files
committed
Updating post.html to Tracking Hit Counter of post
1 parent 170c5e4 commit 11f25c6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

update-1.1/blog/templates/post.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ <h2><a href="{% url "entry_detail" slug=object.slug %}">{{ object.title }}</a></
3131
<a href="/tag/{{ my_tags }}">{{ my_tags }}</a>,
3232
{% endfor %}
3333
</p>
34-
<p align="right" class='ip-client'>Your IP: {{ get_client_ip }}</p>
34+
35+
<p align="right" class='ip-client'>
36+
<i>Your IP:</i> <span class="label label-danger">{{ get_client_ip }}</span>
37+
<i>Views:</i> <span class="label label-primary">{{ tracking_hit_post }}</span>
38+
</p>
39+
3540
<p>
3641
{% if entry.cover %}
3742
<caption align="bottom">

0 commit comments

Comments
 (0)