mirror of https://github.com/jumpserver/jumpserver
commit
7350e150c8
@ -1 +1 @@
|
||||
[{"model": "users.role", "pk": 1, "fields": {"name": "Administrator", "date_added": "2016-08-20T17:03:42.631Z", "created_by": "System", "comment": "\u7ba1\u7406\u5458", "permissions": [16, 17, 18, 19, 20, 21, 10, 11, 12, 13, 14, 15, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 1, 2, 3, 4, 5, 6, 7, 8, 9]}}, {"model": "users.role", "pk": 2, "fields": {"name": "User", "date_added": "2016-08-20T17:03:42.671Z", "created_by": "System", "comment": "\u7528\u6237", "permissions": []}}, {"model": "users.role", "pk": 3, "fields": {"name": "Auditor", "date_added": "2016-08-20T17:03:42.683Z", "created_by": "System", "comment": "\u5ba1\u8ba1\u5458", "permissions": []}}, {"model": "users.usergroup", "pk": 1, "fields": {"name": "ALL", "comment": "Default usergroup for all user", "date_added": "2016-08-20T17:03:42.693Z", "created_by": "System"}}, {"model": "users.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$30000$xZUhPadgI8rs$n2rm5futcOv7Ww4b4BflN8K90Vk3u7ozfnOS7GQq0ns=", "last_login": null, "is_superuser": false, "first_name": "", "last_name": "", "is_staff": false, "is_active": true, "date_joined": "2016-08-20T17:03:42.752Z", "username": "admin", "name": "Administrator", "email": "admin@jumpserver.org", "avatar": "", "wechat": "", "phone": "", "enable_otp": false, "secret_key_otp": "", "role": 1, "private_key": "", "public_key": "", "comment": "Administrator is the super user of system", "date_expired": "2086-08-03T17:03:42.753Z", "created_by": "System", "user_permissions": [], "groups": [1]}}][{"model": "users.usergroup", "pk": 1, "fields": {"name": "Default", "comment": "Default user group for all user", "date_added": "2016-08-24T08:24:34.436Z", "created_by": "System"}}, {"model": "users.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$30000$MC3vobX7pa0C$l9qIj4UwHqODnj1hMvVy9DjLxbBumZaioQWIFrWQR7c=", "last_login": null, "first_name": "", "last_name": "", "is_active": true, "date_joined": "2016-08-24T08:24:34.438Z", "username": "admin", "name": "Administrator", "email": "admin@jumpserver.org", "role": "Admin", "avatar": "", "wechat": "", "phone": "", "enable_otp": false, "secret_key_otp": "", "private_key": "", "public_key": "", "comment": "Administrator is the super user of system", "date_expired": "2086-08-07T08:24:34.438Z", "created_by": "System", "user_permissions": [], "groups": [1]}}]
|
||||
[{"model": "users.usergroup", "pk": 1, "fields": {"name": "Default", "comment": "Default user group for all user", "date_added": "2016-09-02T14:32:32Z", "created_by": "System"}}, {"model": "users.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$30000$QU8p6Y6ep8VP$Zhrgn0Issfc8ozrNSdSGmyb3X7lRAbc3EEWdc2RTj/M=", "last_login": null, "first_name": "", "last_name": "", "is_active": true, "date_joined": "2016-09-02T14:32:32Z", "username": "admin", "name": "Administrator", "email": "admin@jumpserver.org", "role": "Admin", "avatar": "", "wechat": "", "phone": "", "enable_otp": false, "secret_key_otp": "", "private_key": "", "public_key": "", "comment": "Administrator is the super user of system", "is_first_login": false, "date_expired": "2086-08-16T14:32:32Z", "created_by": "System", "user_permissions": [], "groups": [1]}}]
|
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -0,0 +1,409 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-09-04 12:20+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: templates/_header_bar.html:8
|
||||
msgid "Search"
|
||||
msgstr "搜索"
|
||||
|
||||
#: templates/_header_bar.html:14
|
||||
msgid "Welcome use Jumpserver system"
|
||||
msgstr "欢迎使用Jumpserver开源跳板机系统"
|
||||
|
||||
#: templates/_header_bar.html:18
|
||||
msgid "Help"
|
||||
msgstr "帮助"
|
||||
|
||||
#: templates/_header_bar.html:35 templates/_nav.html:4
|
||||
msgid "Home"
|
||||
msgstr "仪表盘"
|
||||
|
||||
#: templates/_nav.html:9
|
||||
msgid "Users"
|
||||
msgstr "用户管理"
|
||||
|
||||
#: templates/_nav.html:12
|
||||
msgid "User"
|
||||
msgstr "用户"
|
||||
|
||||
#: templates/_nav.html:13
|
||||
msgid "Usergroup"
|
||||
msgstr "用户组"
|
||||
|
||||
#: templates/_nav.html:18
|
||||
msgid "Assets"
|
||||
msgstr "资产管理"
|
||||
|
||||
#: templates/_nav.html:21
|
||||
msgid "Asset"
|
||||
msgstr "资产"
|
||||
|
||||
#: templates/_nav.html:22
|
||||
msgid "Assetgroup"
|
||||
msgstr "用户组"
|
||||
|
||||
#: templates/_nav.html:23
|
||||
msgid "IDC"
|
||||
msgstr "机房"
|
||||
|
||||
#: templates/_nav.html:24
|
||||
msgid "Asset admin"
|
||||
msgstr "管理用户"
|
||||
|
||||
#: templates/_nav.html:25
|
||||
msgid "Asset user"
|
||||
msgstr "系统用户"
|
||||
|
||||
#: templates/_nav.html:26
|
||||
msgid "Label"
|
||||
msgstr "标签"
|
||||
|
||||
#: templates/_nav.html:30
|
||||
msgid "Perms"
|
||||
msgstr "权限管理"
|
||||
|
||||
#: templates/_nav.html:33
|
||||
msgid "Perm"
|
||||
msgstr "权限"
|
||||
|
||||
#: templates/_nav.html:36
|
||||
msgid "Create perm"
|
||||
msgstr "创建权限"
|
||||
|
||||
#: templates/_nav.html:42
|
||||
msgid "Audits"
|
||||
msgstr "审计"
|
||||
|
||||
#: templates/_nav.html:47
|
||||
msgid "File"
|
||||
msgstr "文件"
|
||||
|
||||
#: templates/_nav.html:50
|
||||
msgid "File upload"
|
||||
msgstr "文件上传"
|
||||
|
||||
#: templates/_nav.html:51
|
||||
msgid "File download"
|
||||
msgstr "文件下载"
|
||||
|
||||
#: templates/_nav.html:56
|
||||
msgid "Settings"
|
||||
msgstr "设置"
|
||||
|
||||
#: templates/_nav.html:61
|
||||
msgid "Visit us"
|
||||
msgstr "访问官网"
|
||||
|
||||
#: templates/_user_profile.html:19
|
||||
msgid "Profile"
|
||||
msgstr "个人信息"
|
||||
|
||||
#: templates/_user_profile.html:21
|
||||
msgid "Logout"
|
||||
msgstr "注销登录"
|
||||
|
||||
#: templates/captcha/image.html:3
|
||||
msgid "Play CAPTCHA as audio file"
|
||||
msgstr ""
|
||||
|
||||
#~ msgid "Username"
|
||||
#~ msgstr "用户名"
|
||||
|
||||
#~ msgid "Password"
|
||||
#~ msgstr "密码"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "Join usergroups"
|
||||
#~ msgstr "添加到用户组"
|
||||
|
||||
#~ msgid "Name"
|
||||
#~ msgstr "名称"
|
||||
|
||||
#~ msgid "Comment"
|
||||
#~ msgstr "备注"
|
||||
|
||||
#~ msgid "Administrator"
|
||||
#~ msgstr "管理员"
|
||||
|
||||
#~ msgid "Email"
|
||||
#~ msgstr "邮件"
|
||||
|
||||
#~ msgid "Role"
|
||||
#~ msgstr "角色"
|
||||
|
||||
#~ msgid "Avatar"
|
||||
#~ msgstr "头像"
|
||||
|
||||
#~ msgid "Wechat"
|
||||
#~ msgstr "微信"
|
||||
|
||||
#~ msgid "Phone"
|
||||
#~ msgstr "手机"
|
||||
|
||||
#~ msgid "Enable OTP"
|
||||
#~ msgstr "二次验证"
|
||||
|
||||
#~ msgid "ssh private key"
|
||||
#~ msgstr "ssh密钥"
|
||||
|
||||
#~ msgid "ssh public key"
|
||||
#~ msgstr "ssh公钥"
|
||||
|
||||
#~ msgid "Date expired"
|
||||
#~ msgstr "失效日期"
|
||||
|
||||
#~ msgid "Administrator is the super user of system"
|
||||
#~ msgstr "Administrator是初始的超级管理员"
|
||||
|
||||
#~ msgid "System"
|
||||
#~ msgstr "系统"
|
||||
|
||||
#~ msgid "Create user"
|
||||
#~ msgstr "创建用户"
|
||||
|
||||
#~ msgid "Account"
|
||||
#~ msgstr "账户"
|
||||
|
||||
#~ msgid "Security and Role"
|
||||
#~ msgstr "角色安全"
|
||||
|
||||
#~ msgid "Reset"
|
||||
#~ msgstr "重置"
|
||||
|
||||
#~ msgid "Commit"
|
||||
#~ msgstr "提交"
|
||||
|
||||
#~ msgid "Forget password"
|
||||
#~ msgstr "忘记密码"
|
||||
|
||||
#~ msgid "Input your email, that will send a mail to your"
|
||||
#~ msgstr "输入您的邮箱, 将会发一封重置短信邮件到您的邮箱中"
|
||||
|
||||
#~ msgid "Login"
|
||||
#~ msgstr "登录"
|
||||
|
||||
#~ msgid "Captcha invalid"
|
||||
#~ msgstr "验证码错误"
|
||||
|
||||
#~ msgid "Reset password"
|
||||
#~ msgstr "重置密码"
|
||||
|
||||
#~ msgid "Password again"
|
||||
#~ msgstr "再次输入密码"
|
||||
|
||||
#~ msgid "Setting"
|
||||
#~ msgstr "设置"
|
||||
|
||||
#~ msgid "Reset link will be generated and sent to the user. "
|
||||
#~ msgstr "生成重置密码连接,通过邮件发送给用户"
|
||||
|
||||
#~ msgid "Confirm delete"
|
||||
#~ msgstr "确认删除"
|
||||
|
||||
#~ msgid "User detail"
|
||||
#~ msgstr "用户详情"
|
||||
|
||||
#~ msgid "User assets"
|
||||
#~ msgstr "用户资产"
|
||||
|
||||
#~ msgid "User log"
|
||||
#~ msgstr "登录日志"
|
||||
|
||||
#~ msgid "Created by"
|
||||
#~ msgstr "创建者"
|
||||
|
||||
#~ msgid "Date joined"
|
||||
#~ msgstr "加入日期"
|
||||
|
||||
#~ msgid "Last login"
|
||||
#~ msgstr "最后登录"
|
||||
|
||||
#~ msgid "Quick modify"
|
||||
#~ msgstr "快速修改"
|
||||
|
||||
#~ msgid "Reset ssh key"
|
||||
#~ msgstr "重置密钥"
|
||||
|
||||
#~ msgid "Select usergroups"
|
||||
#~ msgstr "选择用户组"
|
||||
|
||||
#~ msgid "Add"
|
||||
#~ msgstr "添加"
|
||||
|
||||
#~ msgid "Asset num"
|
||||
#~ msgstr "资产数量"
|
||||
|
||||
#~ msgid "Active"
|
||||
#~ msgstr "有效"
|
||||
|
||||
#~ msgid "Edit"
|
||||
#~ msgstr "编辑"
|
||||
|
||||
#~ msgid "Delete"
|
||||
#~ msgstr "删除"
|
||||
|
||||
#~ msgid "Delete selected"
|
||||
#~ msgstr "批量删除"
|
||||
|
||||
#~ msgid "Update selected"
|
||||
#~ msgstr "批量更新"
|
||||
|
||||
#~ msgid "Deactive selected"
|
||||
#~ msgstr "禁用所选"
|
||||
|
||||
#~ msgid "Export selected"
|
||||
#~ msgstr "批量导出"
|
||||
|
||||
#~ msgid "Begin to generate ssh private key ..."
|
||||
#~ msgstr "开始生成ssh密钥"
|
||||
|
||||
#~ msgid "Finish to generate ssh private key ..."
|
||||
#~ msgstr "生成ssh密钥成功"
|
||||
|
||||
#~ msgid "These is error when generate ssh key."
|
||||
#~ msgstr "创建密钥失败"
|
||||
|
||||
#~ msgid "Create account successfully"
|
||||
#~ msgstr "创建账户成功"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ " Hello %(name)s:\n"
|
||||
#~ " </br>\n"
|
||||
#~ " Your account has been created successfully\n"
|
||||
#~ " </br>\n"
|
||||
#~ " <a href=\"%(rest_password_url)s?token=%(rest_password_token)s\">click "
|
||||
#~ "here to set your password</a>\n"
|
||||
#~ " </br>\n"
|
||||
#~ " This link is valid for 1 hour. After it expires, <a href="
|
||||
#~ "\"%(forget_password_url)s?email=%(email)s\">request new one</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " ---\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " <a href=\"%(login_url)s\">Login direct</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " "
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
#~ " 你好 %(name)s:\n"
|
||||
#~ " </br>\n"
|
||||
#~ " 恭喜您,您的账号已经创建成功 </br>\n"
|
||||
#~ " <a href=\"%(rest_password_url)s?token=%(rest_password_token)s\">请点"
|
||||
#~ "击这里设置密码</a> </br>\n"
|
||||
#~ " 这个链接有效期1小时, 超过时间您可以 <a href=\"%(forget_password_url)s?"
|
||||
#~ "email=%(email)s\">重新申请</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " ---\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " <a href=\"%(login_url)s\">Login direct</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " "
|
||||
|
||||
#~ msgid ""
|
||||
#~ "\n"
|
||||
#~ " Hello %(name)s:\n"
|
||||
#~ " </br>\n"
|
||||
#~ " Please click the link below to reset your password, if not your "
|
||||
#~ "request, concern your account security\n"
|
||||
#~ " </br>\n"
|
||||
#~ " <a href=\"%(rest_password_url)s?token=%(rest_password_token)s\">Click "
|
||||
#~ "here reset password</a>\n"
|
||||
#~ " </br>\n"
|
||||
#~ " This link is valid for 1 hour. After it expires, <a href="
|
||||
#~ "\"%(forget_password_url)s?email=%(email)s\">request new one<</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " ---\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " <a href=\"%(login_url)s\">Login direct</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " "
|
||||
#~ msgstr ""
|
||||
#~ "\n"
|
||||
#~ " 您好 %(name)s:\n"
|
||||
#~ " </br>\n"
|
||||
#~ " 请点击下面链接重置密码, 如果不是您申请的,请关注账号安全\n"
|
||||
#~ " </br>\n"
|
||||
#~ " <a href=\"%(rest_password_url)s?token=%(rest_password_token)s\">请点击"
|
||||
#~ "这里设置密码 /a>\n"
|
||||
#~ " </br>\n"
|
||||
#~ " 这个链接有效期1小时, 超过时间您可以<a href=\"%(forget_password_url)s?"
|
||||
#~ "email=%(email)s\">重新申请</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " ---\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " <a href=\"%(login_url)s\">直接登录</a>\n"
|
||||
#~ "\n"
|
||||
#~ " </br>\n"
|
||||
#~ " "
|
||||
|
||||
#~ msgid "Username or password invalid"
|
||||
#~ msgstr "用户名或密码错误"
|
||||
|
||||
#~ msgid "Logout success"
|
||||
#~ msgstr "退出登录成功"
|
||||
|
||||
#~ msgid "Logout success, return login page"
|
||||
#~ msgstr "退出登录成功,返回到登录页面"
|
||||
|
||||
#~ msgid "User list"
|
||||
#~ msgstr "用户列表"
|
||||
|
||||
#~ msgid "Create user<a href=\"%s\">%s</a> success."
|
||||
#~ msgstr "创建用户<a href=\"%s\">%s</a> 成功"
|
||||
|
||||
#~ msgid "Edit user"
|
||||
#~ msgstr "编辑用户"
|
||||
|
||||
#~ msgid "Usergroup list"
|
||||
#~ msgstr "用户组列表"
|
||||
|
||||
#~ msgid "Create usergroup"
|
||||
#~ msgstr "创建用户组"
|
||||
|
||||
#~ msgid "Email address invalid, input again"
|
||||
#~ msgstr "邮箱地址错误,重新输入"
|
||||
|
||||
#~ msgid "Send reset password message"
|
||||
#~ msgstr "发送重置密码邮件"
|
||||
|
||||
#~ msgid "Send reset password mail success, login your mail box and follow it "
|
||||
#~ msgstr ""
|
||||
#~ "发送重置邮件成功, 请登录邮箱查看, 按照提示操作 (如果没收到,请等待3-5分钟)"
|
||||
|
||||
#~ msgid "Reset password success"
|
||||
#~ msgstr "重置密码成功"
|
||||
|
||||
#~ msgid "Reset password success, return to login page"
|
||||
#~ msgstr "重置密码成功,返回到登录页面"
|
||||
|
||||
#~ msgid "Token invalid or expired"
|
||||
#~ msgstr "Token错误或失效"
|
||||
|
||||
#~ msgid "Password not same"
|
||||
#~ msgstr "密码不一致"
|
@ -1,62 +1,63 @@
|
||||
{% load i18n %}
|
||||
<li id="index">
|
||||
<a href="">
|
||||
<i class="fa fa-dashboard"></i> <span class="nav-label">仪表盘</span><span class="label label-info pull-right"></span>
|
||||
<i class="fa fa-dashboard"></i> <span class="nav-label">{% trans 'Home' %}</span><span class="label label-info pull-right"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="users">
|
||||
<a href="#">
|
||||
<i class="fa fa-group"></i> <span class="nav-label">用户管理</span><span class="fa arrow"></span>
|
||||
<i class="fa fa-group"></i> <span class="nav-label">{% trans 'Users' %}</span><span class="fa arrow"></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level active">
|
||||
<li class="users"><a href="{% url 'users:user-list' %}">用户列表</a></li>
|
||||
<li class="usergroups"><a href="{% url 'users:usergroup-list' %}">用户组列表</a></li>
|
||||
<li class="users"><a href="{% url 'users:user-list' %}">{% trans 'User' %}</a></li>
|
||||
<li class="usergroups"><a href="{% url 'users:usergroup-list' %}">{% trans 'Usergroup' %}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="">
|
||||
<a>
|
||||
<i class="fa fa-inbox"></i> <span class="nav-label">资产管理</span><span class="fa arrow"></span>
|
||||
<i class="fa fa-inbox"></i> <span class="nav-label">{% trans 'Assets' %}</span><span class="fa arrow"></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li class=""><a href="">资产列表</a></li>
|
||||
<li class=""><a href="">资产组列表</a></li>
|
||||
<li class=""><a href="">机房列表</a></li>
|
||||
<li class=""><a href="">管理用户</a></li>
|
||||
<li class=""><a href="">系统用户</a></li>
|
||||
<li class=""><a href="">标签列表</a></li>
|
||||
<li class=""><a href="">{% trans 'Asset' %}</a></li>
|
||||
<li class=""><a href="">{% trans 'Assetgroup' %}</a></li>
|
||||
<li class=""><a href="">{% trans 'IDC' %}</a></li>
|
||||
<li class=""><a href="">{% trans 'Assetadmin' %}</a></li>
|
||||
<li class=""><a href="">{% trans 'Assetuser' %}</a></li>
|
||||
<li class=""><a href="">{% trans 'Label' %}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="">
|
||||
<a href="#"><i class="fa fa-edit"></i> <span class="nav-label">授权管理</span><span class="fa arrow"></span></a>
|
||||
<a href="#"><i class="fa fa-edit"></i> <span class="nav-label">{% trans 'Perms' %}</span><span class="fa arrow"></span></a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li class="sudo">
|
||||
<a class="sudo" href="">授权列表</a>
|
||||
<a class="sudo" href="">{% trans 'Perm' %}</a>
|
||||
</li>
|
||||
<li class="role">
|
||||
<a href="">添加授权</a>
|
||||
<a href="">{% trans 'Create perm' %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="">
|
||||
<a href="">
|
||||
<i class="fa fa-files-o"></i><span class="nav-label">审计管理</span><span class="label label-info pull-right"></span>
|
||||
<i class="fa fa-files-o"></i><span class="nav-label">{% trans 'Audits' %}</span><span class="label label-info pull-right"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li id="">
|
||||
<a href="#">
|
||||
<i class="fa fa-download"></i> <span class="nav-label">上传下载</span><span class="fa arrow"></span>
|
||||
<i class="fa fa-download"></i> <span class="nav-label">{% trans 'File' %}</span><span class="fa arrow"></span>
|
||||
</a>
|
||||
<ul class="nav nav-second-level">
|
||||
<li class="upload"><a href="">文件上传</a></li>
|
||||
<li class="download"><a href="">文件下载</a></li>
|
||||
<li class="upload"><a href="">{% trans 'File upload' %}</a></li>
|
||||
<li class="download"><a href="">{% trans 'File download' %}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li id="">
|
||||
<a href="">
|
||||
<i class="fa fa-gears"></i> <span class="nav-label">设置</span><span class="label label-info pull-right"></span>
|
||||
<i class="fa fa-gears"></i> <span class="nav-label">{% trans 'Settings' %}</span><span class="label label-info pull-right"></span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="special_link">
|
||||
<a href="http://www.jumpserver.org" target="_blank"><i class="fa fa-database"></i>
|
||||
<span class="nav-label">访问官网</span>
|
||||
<span class="nav-label">{% trans 'Visit us' %}</span>
|
||||
</a>
|
||||
</li>
|
@ -0,0 +1,12 @@
|
||||
{{image}}{{hidden_field}}{{text_field}}
|
||||
|
||||
<script>
|
||||
function refresh_captcha() {
|
||||
$.getJSON("{% url "captcha-refresh" %}",
|
||||
function (result) {
|
||||
$('.captcha').attr('src', result['image_url']);
|
||||
$('#id_captcha_0').val(result['key'])
|
||||
})
|
||||
}
|
||||
$('.captcha').click(refresh_captcha)
|
||||
</script>
|
@ -0,0 +1 @@
|
||||
<input id="{{id}}_0" name="{{name}}_0" type="hidden" value="{{key}}" />
|
@ -0,0 +1,4 @@
|
||||
{% load i18n %}
|
||||
{% spaceless %}
|
||||
{% if audio %}<a title="{% trans "Play CAPTCHA as audio file" %}" href="{{audio}}">{% endif %}<img src="{{image}}" alt="captcha" class="captcha" />{% if audio %}</a>{% endif %}
|
||||
{% endspaceless %}
|
@ -0,0 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<input autocomplete="off" id="{{id}}_1" class="form-control" name="{{name}}_1" type="text" />
|
||||
<span class="red-fonts" id="captcha-error" style="display: none">验证码错误</span>
|
||||
</div>
|
||||
</div>
|
||||
</br>
|
Binary file not shown.
@ -0,0 +1,379 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2016-09-04 12:20+0800\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: users/forms.py:12 users/models.py:106 users/templates/users/login.html:57
|
||||
#: users/templates/users/user_detail.html:73
|
||||
#: users/templates/users/user_edit.html:5
|
||||
#: users/templates/users/user_list.html:13
|
||||
msgid "Username"
|
||||
msgstr ""
|
||||
|
||||
#: users/forms.py:13 users/templates/users/login.html:60
|
||||
#: users/templates/users/reset_password.html:52
|
||||
#: users/templates/users/user_add.html:8 users/templates/users/user_add.html:10
|
||||
#: users/templates/users/user_edit.html:12
|
||||
#: users/templates/users/user_edit.html:14
|
||||
msgid "Password"
|
||||
msgstr ""
|
||||
|
||||
#: users/forms.py:31 users/forms.py:50
|
||||
msgid "Join usergroups"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:60 users/models.py:107
|
||||
#: users/templates/users/user_detail.html:69
|
||||
#: users/templates/users/user_list.html:12
|
||||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:61 users/models.py:118
|
||||
#: users/templates/users/user_detail.html:113
|
||||
msgid "Comment"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:102 users/models.py:225
|
||||
msgid "Administrator"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:103
|
||||
msgid "User"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:108 users/templates/users/user_detail.html:77
|
||||
msgid "Email"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:109 users/templates/users/user_detail.html:181
|
||||
#: users/templates/users/user_list.html:15
|
||||
msgid "Usergroup"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:110 users/templates/users/user_detail.html:93
|
||||
#: users/templates/users/user_list.html:14
|
||||
msgid "Role"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:111
|
||||
msgid "Avatar"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:112 users/templates/users/user_detail.html:88
|
||||
msgid "Wechat"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:113 users/templates/users/user_detail.html:82
|
||||
msgid "Phone"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:114 users/templates/users/_user.html:56
|
||||
msgid "Enable OTP"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:116
|
||||
msgid "ssh private key"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:117
|
||||
msgid "ssh public key"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:121 users/templates/users/user_detail.html:97
|
||||
msgid "Date expired"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:228
|
||||
msgid "Administrator is the super user of system"
|
||||
msgstr ""
|
||||
|
||||
#: users/models.py:229
|
||||
msgid "System"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/_user.html:17 users/templates/users/user_list.html:5
|
||||
#: users/views.py:113
|
||||
msgid "Create user"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/_user.html:33
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/_user.html:43
|
||||
msgid "Security and Role"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/_user.html:62
|
||||
msgid "Profile"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/_user.html:69
|
||||
#: users/templates/users/user_detail.html:162
|
||||
#: users/templates/users/user_detail.html:170
|
||||
msgid "Reset"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/_user.html:70
|
||||
#: users/templates/users/forget_password.html:44
|
||||
#: users/templates/users/user_list.html:63
|
||||
msgid "Commit"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/forget_password.html:26
|
||||
msgid "Forget password"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/forget_password.html:33
|
||||
msgid "Input your email, that will send a mail to your"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/login.html:45 users/templates/users/login.html:65
|
||||
msgid "Login"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/login.html:50
|
||||
msgid "Captcha invalid"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/reset_password.html:45
|
||||
#: users/templates/users/user_detail.html:159 users/utils.py:98
|
||||
msgid "Reset password"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/reset_password.html:55
|
||||
msgid "Password again"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/reset_password.html:57
|
||||
msgid "Setting"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_add.html:12
|
||||
msgid "Reset link will be generated and sent to the user. "
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_delete_confirm.html:6
|
||||
msgid "Confirm delete"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:18 users/views.py:173
|
||||
msgid "User detail"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:20
|
||||
msgid "User assets"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:21
|
||||
msgid "User log"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:29
|
||||
msgid "Search"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:101
|
||||
msgid "Created by"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:105
|
||||
msgid "Date joined"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:109
|
||||
msgid "Last login"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:124
|
||||
msgid "Quick modify"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:167
|
||||
msgid "Reset ssh key"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:189
|
||||
msgid "Select usergroups"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_detail.html:198
|
||||
msgid "Add"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:16
|
||||
msgid "Asset num"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:17
|
||||
msgid "Active"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:44
|
||||
msgid "Edit"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:45
|
||||
msgid "Delete"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:55
|
||||
msgid "Delete selected"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:56
|
||||
msgid "Update selected"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:57
|
||||
msgid "Deactive selected"
|
||||
msgstr ""
|
||||
|
||||
#: users/templates/users/user_list.html:58
|
||||
msgid "Export selected"
|
||||
msgstr ""
|
||||
|
||||
#: users/utils.py:47
|
||||
msgid "Begin to generate ssh private key ..."
|
||||
msgstr ""
|
||||
|
||||
#: users/utils.py:59
|
||||
msgid "Finish to generate ssh private key ..."
|
||||
msgstr ""
|
||||
|
||||
#: users/utils.py:63
|
||||
msgid "These is error when generate ssh key."
|
||||
msgstr ""
|
||||
|
||||
#: users/utils.py:67
|
||||
msgid "Create account successfully"
|
||||
msgstr ""
|
||||
|
||||
#: users/utils.py:69
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" Hello %(name)s:\n"
|
||||
" </br>\n"
|
||||
" Your account has been created successfully\n"
|
||||
" </br>\n"
|
||||
" <a href=\"%(rest_password_url)s?token=%(rest_password_token)s\">click "
|
||||
"here to set your password</a>\n"
|
||||
" </br>\n"
|
||||
" This link is valid for 1 hour. After it expires, <a href="
|
||||
"\"%(forget_password_url)s?email=%(email)s\">request new one</a>\n"
|
||||
"\n"
|
||||
" </br>\n"
|
||||
" ---\n"
|
||||
"\n"
|
||||
" </br>\n"
|
||||
" <a href=\"%(login_url)s\">Login direct</a>\n"
|
||||
"\n"
|
||||
" </br>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#: users/utils.py:100
|
||||
#, python-format
|
||||
msgid ""
|
||||
"\n"
|
||||
" Hello %(name)s:\n"
|
||||
" </br>\n"
|
||||
" Please click the link below to reset your password, if not your request, "
|
||||
"concern your account security\n"
|
||||
" </br>\n"
|
||||
" <a href=\"%(rest_password_url)s?token=%(rest_password_token)s\">Click "
|
||||
"here reset password</a>\n"
|
||||
" </br>\n"
|
||||
" This link is valid for 1 hour. After it expires, <a href="
|
||||
"\"%(forget_password_url)s?email=%(email)s\">request new one<</a>\n"
|
||||
"\n"
|
||||
" </br>\n"
|
||||
" ---\n"
|
||||
"\n"
|
||||
" </br>\n"
|
||||
" <a href=\"%(login_url)s\">Login direct</a>\n"
|
||||
"\n"
|
||||
" </br>\n"
|
||||
" "
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:53
|
||||
msgid "Username or password invalid"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:70
|
||||
msgid "Logout success"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:71
|
||||
msgid "Logout success, return login page"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:100 users/views.py:113 users/views.py:155 users/views.py:173
|
||||
#: users/views.py:197 users/views.py:210
|
||||
msgid "Users"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:100
|
||||
msgid "User list"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:109
|
||||
#, python-format
|
||||
msgid "Create user<a href=\"%s\">%s</a> success."
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:155
|
||||
msgid "Edit user"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:197
|
||||
msgid "Usergroup list"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:210
|
||||
msgid "Create usergroup"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:242
|
||||
msgid "Email address invalid, input again"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:253
|
||||
msgid "Send reset password message"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:254
|
||||
msgid "Send reset password mail success, login your mail box and follow it "
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:266
|
||||
msgid "Reset password success"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:267
|
||||
msgid "Reset password success, return to login page"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:283 users/views.py:296
|
||||
msgid "Token invalid or expired"
|
||||
msgstr ""
|
||||
|
||||
#: users/views.py:292
|
||||
msgid "Password not same"
|
||||
msgstr ""
|
@ -1,14 +1,15 @@
|
||||
{% extends 'users/_user.html' %}
|
||||
{% load i18n %}
|
||||
{% load bootstrap %}
|
||||
{% block username %}
|
||||
{{ form.username|bootstrap_horizontal }}
|
||||
{% endblock %}
|
||||
{% block password %}
|
||||
<h3>密码</h3>
|
||||
<h3>{% trans 'Password' %}</h3>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">密码</label>
|
||||
<label class="col-sm-2 control-label">{% trans 'Password' %}</label>
|
||||
<div class="col-sm-8 controls" >
|
||||
生成重置密码连接,通过邮件发送给用户
|
||||
{% trans 'Reset link will be generated and sent to the user. ' %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
@ -1,92 +0,0 @@
|
||||
{% extends '_list_base.html' %}
|
||||
{% load common_tags %}
|
||||
<div class="col-sm-12">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="ibox-title">
|
||||
<h5> 查看用户 </h5>
|
||||
<div class="ibox-tools">
|
||||
<a class="collapise-link">
|
||||
<i class="fa fa-chevron-up"></i>
|
||||
</a>
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
<i class="fa fa-wrench"></i>
|
||||
</a>
|
||||
<a class="close-link">
|
||||
<i class="fa fa-times"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="ibox-content">
|
||||
<div class="">
|
||||
<a href="{% url 'users:user-add' %}" class="btn btn-sm btn-primary "> 添加用户 </a>
|
||||
<a id="del_btn" class="btn btn-sm btn-danger "> 删除所选 </a>
|
||||
<form id="search_form" method="get" action="" class="pull-right mail-search">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control input-sm" name="keyword" placeholder="用户名或姓名" value="{{ keyword }}">
|
||||
<div class="input-group-btn">
|
||||
<button id='search_btn' type="submit" class="btn btn-sm btn-primary">
|
||||
搜索
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="table table-striped table-bordered table-hover " id="editable" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">
|
||||
<input type="checkbox" id="check_all" onclick="checkAll('check_all', 'checked')">
|
||||
</th>
|
||||
<th class="text-center"><a href="{% url 'users:user-list' %}?sort=name">姓名</a></th>
|
||||
<th class="text-center"><a href="{% url 'users:user-list' %}?sort=username">用户名</a></th>
|
||||
<th class="text-center">角色</th>
|
||||
<th class="text-center">用户组</th>
|
||||
<th class="text-center">资产数量</th>
|
||||
<th class="text-center"><a href="{% url 'users:user-list' %}?sort=date_expired">有效</a></th>
|
||||
<th class="text-center"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for user in user_list %}
|
||||
<tr class="gradeX">
|
||||
<td class="text-center">
|
||||
<input type="checkbox" name="checked" value="{{ user.id }}">
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a href="{% url 'users:user-detail' pk=user.id %}">
|
||||
{{ user.name }}
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-center">{{ user.username }}</td>
|
||||
<td class="text-center">{{ user.role.name }}</td>
|
||||
<td class="text-center" title="{% for user_group in user.group.all %} {{ user_group.name }} {% endfor %}"> {{ user.groups.all|join_queryset_attr:"name" }} </td>
|
||||
<th class="text-center">{{ user.name }}</th>
|
||||
<td class="text-center">
|
||||
{% if user.is_expired %}
|
||||
<i class="fa fa-times text-danger"></i>
|
||||
{% else %}
|
||||
<i class="fa fa-check text-navy"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<a href="{% url 'users:user-edit' pk=user.id %}" class="btn btn-xs btn-info">编辑</a>
|
||||
<a href="{% url 'users:user-delete' pk=user.id %}" class="btn btn-xs btn-danger del {% if user.username == 'admin' %} disabled {% endif %}">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
</div>
|
||||
{% include '_pagination.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in new issue