From f335e35ba4a44d783830c629c20e1ccbf1a3c8ff Mon Sep 17 00:00:00 2001
From: halcyon <864072399@qq.com>
Date: Thu, 22 Jan 2015 23:02:44 +0800
Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B5=84=E4=BA=A7?=
=?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=A1=B5=E9=9D=A2=E6=97=A0=E6=B3=95=E6=8F=90?=
=?UTF-8?q?=E4=BA=A4bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
templates/jasset/host_edit.html | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/templates/jasset/host_edit.html b/templates/jasset/host_edit.html
index d3a3f2f00..f197efa53 100644
--- a/templates/jasset/host_edit.html
+++ b/templates/jasset/host_edit.html
@@ -49,7 +49,7 @@
{% for t, type in login_types.items %}
{% ifequal t post.login_type %}
-
{{ type }}
+
{{ type }}
{% else %}
{{ type }}
{% endifequal %}
@@ -58,22 +58,22 @@
@@ -212,4 +212,5 @@ $('#assetForm').validator({
+
{% endblock %}
\ No newline at end of file
From 1a266f0b19403e75846ba578e496d1126708acf7 Mon Sep 17 00:00:00 2001
From: halcyon <864072399@qq.com>
Date: Sat, 24 Jan 2015 13:54:08 +0800
Subject: [PATCH 2/2] =?UTF-8?q?=E8=8F=9C=E5=8D=95active=20bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jasset/views.py | 3 ++
.../halcyon_192.168.196.73_133619.log | 8 ++++
templates/jasset/host_add.html | 16 ++++++++
templates/jasset/host_list.html | 41 ++++++++++++-------
templates/nav.html | 26 ++++++------
templates/script.html | 2 +
6 files changed, 68 insertions(+), 28 deletions(-)
create mode 100644 logs/connect/20150124/halcyon_192.168.196.73_133619.log
diff --git a/jasset/views.py b/jasset/views.py
index 02f887b69..482ed8fad 100644
--- a/jasset/views.py
+++ b/jasset/views.py
@@ -5,7 +5,9 @@ from django.shortcuts import render_to_response
from django.core.paginator import Paginator, EmptyPage
from models import IDC, Asset, BisGroup
+from juser.models import UserGroup
from connect import PyCrypt, KEY
+from jpermission.models import Permission
cryptor = PyCrypt(KEY)
@@ -20,6 +22,7 @@ def jadd_host(request):
groups = []
eidc = IDC.objects.all()
egroup = BisGroup.objects.all()
+ eusergroup = UserGroup.objects.all()
if request.method == 'POST':
j_ip = request.POST.get('j_ip')
diff --git a/logs/connect/20150124/halcyon_192.168.196.73_133619.log b/logs/connect/20150124/halcyon_192.168.196.73_133619.log
new file mode 100644
index 000000000..df5a91b5e
--- /dev/null
+++ b/logs/connect/20150124/halcyon_192.168.196.73_133619.log
@@ -0,0 +1,8 @@
+PS1='[\u@192.168.196.73 \W]\$ '
+Last login: Sun Jan 4 13:30:11 2015 from 192.168.199.162
+clear;echo -e '\033[32mLogin 192.168.196.73 done. Enjoy it.\033[0m'
+[halcyon@localhost ~]$ PS1='[\u@192.168.196.73 \W]\$ '
+[halcyon@192.168.196.73 ~]$ clear;echo -e '\033[32mLogin 192.168.196.73 done. Enjoy it.\033[0m'
+[H[J[32mLogin 192.168.196.73 done. Enjoy it.[0m
+[halcyon@192.168.196.73 ~]$ ls
+[halcyon@192.168.196.73 ~]$
\ No newline at end of file
diff --git a/templates/jasset/host_add.html b/templates/jasset/host_add.html
index dc862a315..224e0dc1f 100644
--- a/templates/jasset/host_add.html
+++ b/templates/jasset/host_add.html
@@ -103,6 +103,16 @@
+