From d11371e526763ff41c7a71c9009ffeb427474277 Mon Sep 17 00:00:00 2001
From: guange <8863824@gmail.com>
Date: Mon, 21 Jan 2019 10:47:46 +0800
Subject: [PATCH] .
---
chapter2/mysite/myapp/static/styles/common.css | 2 +-
.../mysite/myapp/templates/myapp/crawl.html | 17 +++++++++--------
chapter2/mysite/myapp/templatetags/__init__.py | 0
chapter2/mysite/myapp/templatetags/myapp.py | 9 +++++++++
chapter2/mysite/myapp/views.py | 3 ++-
5 files changed, 21 insertions(+), 10 deletions(-)
create mode 100644 chapter2/mysite/myapp/templatetags/__init__.py
create mode 100644 chapter2/mysite/myapp/templatetags/myapp.py
diff --git a/chapter2/mysite/myapp/static/styles/common.css b/chapter2/mysite/myapp/static/styles/common.css
index 6aafd2a..351449f 100755
--- a/chapter2/mysite/myapp/static/styles/common.css
+++ b/chapter2/mysite/myapp/static/styles/common.css
@@ -1057,7 +1057,7 @@ border-radius: 3px;
text-align: right;
display: block;
color: #ffffff;
- width: 130px;
+ width: 100px;
}
.percentChart li .rightPercent{
flex:1;
diff --git a/chapter2/mysite/myapp/templates/myapp/crawl.html b/chapter2/mysite/myapp/templates/myapp/crawl.html
index f18bc72..c6d44f4 100644
--- a/chapter2/mysite/myapp/templates/myapp/crawl.html
+++ b/chapter2/mysite/myapp/templates/myapp/crawl.html
@@ -1,4 +1,5 @@
{% load static %}
+{% load myapp %}
@@ -8,7 +9,7 @@