diff --git a/jlog/views.py b/jlog/views.py index 6e319c808..729ececc7 100644 --- a/jlog/views.py +++ b/jlog/views.py @@ -39,10 +39,12 @@ def log_list(request, offset): if host_list: posts = posts.filter(host__in=host_list) + if cmd: log_id_list = set([log.log_id for log in TtyLog.objects.filter(cmd__contains=cmd)]) posts = posts.filter(id__in=log_id_list) - else: + + if not date_seven_day: date_now = datetime.datetime.now() date_now_str = date_now.strftime('%m/%d/%Y') date_seven_day = (date_now + datetime.timedelta(days=-7)).strftime('%m/%d/%Y') diff --git a/static/css/plugins/datapicker/datepicker3.css b/static/css/plugins/datepicker/datepicker3.css similarity index 100% rename from static/css/plugins/datapicker/datepicker3.css rename to static/css/plugins/datepicker/datepicker3.css diff --git a/templates/jlog/log_filter.html b/templates/jlog/log_filter.html index 5b321a367..3512e0568 100644 --- a/templates/jlog/log_filter.html +++ b/templates/jlog/log_filter.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block self_head_css_js %} - + {% endblock %} diff --git a/templates/jlog/log_offline.html b/templates/jlog/log_offline.html index 8d04d207c..abb9723a6 100644 --- a/templates/jlog/log_offline.html +++ b/templates/jlog/log_offline.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block self_head_css_js %} - + {% endblock %} @@ -54,18 +54,15 @@
-
-
+
to - +
@@ -89,7 +86,6 @@
-
@@ -116,7 +112,7 @@ {% for post in contacts.object_list %} - {{ post.id }} + {{ post.id }} {{ post.user }} {{ post.host }} {{ post.remote_ip }} @@ -201,8 +197,8 @@ {# }#} {# });#} - $('#data_5 .input-daterange').datepicker({ - dateFormat: 'yy-mm-dd', + $('#date_5 .input-daterange').datepicker({ + dateFormat: 'mm/dd/yy', keyboardNavigation: false, forceParse: false, autoclose: true diff --git a/templates/jperm/perm_role_add.html b/templates/jperm/perm_role_add.html index 75e07e35a..4fb774a41 100644 --- a/templates/jperm/perm_role_add.html +++ b/templates/jperm/perm_role_add.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block self_head_css_js %} - + {% endblock %} diff --git a/templates/jperm/perm_role_edit.html b/templates/jperm/perm_role_edit.html index ba3ec94a1..11311343a 100644 --- a/templates/jperm/perm_role_edit.html +++ b/templates/jperm/perm_role_edit.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block self_head_css_js %} - + {% endblock %} diff --git a/templates/jperm/perm_role_push.html b/templates/jperm/perm_role_push.html index 91a4c7a0d..fe35b7d86 100644 --- a/templates/jperm/perm_role_push.html +++ b/templates/jperm/perm_role_push.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block self_head_css_js %} - + {% endblock %} diff --git a/templates/jperm/perm_rule_add.html b/templates/jperm/perm_rule_add.html index fb408cfc7..7dcadbd3d 100644 --- a/templates/jperm/perm_rule_add.html +++ b/templates/jperm/perm_rule_add.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block self_head_css_js %} - + {% endblock %} diff --git a/templates/jperm/perm_rule_edit.html b/templates/jperm/perm_rule_edit.html index 474f90633..3d53cad25 100644 --- a/templates/jperm/perm_rule_edit.html +++ b/templates/jperm/perm_rule_edit.html @@ -1,6 +1,6 @@ {% extends 'base.html' %} {% block self_head_css_js %} - + {% endblock %} diff --git a/templates/juser/run_command.html b/templates/juser/run_command.html index f075f9c90..a86e92e9b 100644 --- a/templates/juser/run_command.html +++ b/templates/juser/run_command.html @@ -69,7 +69,7 @@ {% block self_head_css_js %} {% load staticfiles %} - + {% endblock %}