From 7adbf52aeba5e15025e73597189dc00dead4e1c6 Mon Sep 17 00:00:00 2001 From: guanghongwei Date: Sat, 31 Jan 2015 13:45:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9js=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jumpserver/views.py | 6 ++--- templates/base.html | 4 +-- templates/foot_script.html | 27 +++++++++++++++++++++ templates/{script.html => head_script.html} | 27 --------------------- 4 files changed, 31 insertions(+), 33 deletions(-) create mode 100644 templates/foot_script.html rename templates/{script.html => head_script.html} (59%) diff --git a/jumpserver/views.py b/jumpserver/views.py index d2446aaf8..b19e73644 100644 --- a/jumpserver/views.py +++ b/jumpserver/views.py @@ -23,7 +23,6 @@ def skin_config(request): return render_to_response('skin_config.html') -<<<<<<< HEAD def jasset_group_add(name, comment, type): if BisGroup.objects.filter(name=name): emg = u'该业务组已存在!' @@ -64,7 +63,8 @@ def jasset_host_edit(j_ip, j_idc, j_port, j_type, j_group, j_active, j_comment): a.save() a.bis_group = groups a.save() -======= + + def login(request): """登录界面""" if request.session.get('username'): @@ -97,5 +97,3 @@ def logout(request): request.session.delete() return HttpResponseRedirect('/login/') - ->>>>>>> guanghongwei diff --git a/templates/base.html b/templates/base.html index 95cc04d06..729ec6fb7 100644 --- a/templates/base.html +++ b/templates/base.html @@ -10,6 +10,7 @@ {% include 'link_css.html' %} + {% include 'head_script.html' %} @@ -27,7 +28,6 @@ -{# #} - {% include 'script.html' %} + {% include 'foot_script.html' %} diff --git a/templates/foot_script.html b/templates/foot_script.html new file mode 100644 index 000000000..fcc41f092 --- /dev/null +++ b/templates/foot_script.html @@ -0,0 +1,27 @@ + + + + + + + + + + + + +{##} + + + + + + + + + \ No newline at end of file diff --git a/templates/script.html b/templates/head_script.html similarity index 59% rename from templates/script.html rename to templates/head_script.html index 70edc0934..e664ddd4d 100644 --- a/templates/script.html +++ b/templates/head_script.html @@ -1,25 +1,6 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file