diff --git a/apps/templates/_header_bar.html b/apps/templates/_header_bar.html index a231bbcd4..e9855d234 100644 --- a/apps/templates/_header_bar.html +++ b/apps/templates/_header_bar.html @@ -28,19 +28,19 @@
-

{{ title }}

+

diff --git a/apps/templates/_list_base.html b/apps/templates/_list_base.html index a7463b242..11be26259 100644 --- a/apps/templates/_list_base.html +++ b/apps/templates/_list_base.html @@ -6,7 +6,7 @@
-
{{ path2 }}
+
{{ action }}
diff --git a/apps/templates/_nav.html b/apps/templates/_nav.html index 8648586f3..e8d7a7d64 100644 --- a/apps/templates/_nav.html +++ b/apps/templates/_nav.html @@ -8,8 +8,8 @@ 用户管理
  • diff --git a/apps/users/api_urls.py b/apps/users/api_urls.py deleted file mode 100644 index ec2a715fb..000000000 --- a/apps/users/api_urls.py +++ /dev/null @@ -1,14 +0,0 @@ -# -*- coding: utf-8 -*- -# - -from django.conf.urls import url, include -import api - -app_name = 'users' - -urlpatterns = [ - url(r'^v1/users/$', api.UserListAddApi.as_view(), name='user-list-api'), - url(r'^v1/users/(?P[0-9]+)/$', api.UserDetailDeleteUpdateApi.as_view(), name='user-detail-api'), - url(r'^v1/usergroups/$', api.UserGroupListAddApi.as_view(), name='usergroup-list-api'), - url(r'^v1/usergroups/(?P[0-9]+)/$', api.UserGroupDetailDeleteUpdateApi.as_view(), name='usergroup-detail-api'), -] diff --git a/apps/users/templates/users/user_detail.html b/apps/users/templates/users/user_detail.html index f8ea18708..eccbbf06c 100644 --- a/apps/users/templates/users/user_detail.html +++ b/apps/users/templates/users/user_detail.html @@ -134,8 +134,11 @@
    - + {% if user.is_active %} + + {% else %} + + {% endif %}