forked from mirror/MrDoc
163 lines
7.2 KiB
HTML
163 lines
7.2 KiB
HTML
<!-- 文档、文集、文档模板管理基础HTML模板 -->
|
||
{% load static %}
|
||
<!DOCTYPE html>
|
||
<html lang="zh-cn">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title>{% block title %}{% endblock %} - 个人中心{% if site_name != None and site_name != '' %}- {{site_name}} {% endif %} - 觅道文档MrDoc</title>
|
||
<link href="{% static 'layui/css/layui.css' %}?version={{mrdoc_version}}" rel="stylesheet">
|
||
<link href="{% static 'mrdoc/mrdoc-admin.css' %}?version={{mrdoc_version}}" rel="stylesheet">
|
||
<link rel="icon" href="{% static 'search/mrdoc_logo_300.png' %}" sizes="192x192" />
|
||
{% block custom_link %}
|
||
{% endblock %}
|
||
<style>
|
||
</style>
|
||
</head>
|
||
<body class="layui-layout-body">
|
||
<div class="layui-layout layui-layout-admin">
|
||
<div class="layui-header">
|
||
<div class="layui-logo">
|
||
<a class="logo" href="{% url 'pro_list' %}">
|
||
<h1 style="color: white;">
|
||
<strong>MrDoc</strong>
|
||
<span style="font-size: 14px;" class="layui-badge-rim">个人中心</span>
|
||
</h1>
|
||
</a>
|
||
</div>
|
||
<ul class="layui-nav layui-layout-right">
|
||
<li class="layui-nav-item">
|
||
<a href="javascript:;">
|
||
<i class="layui-icon layui-icon-username"></i> {% if request.user.first_name != '' %} {{request.user.first_name}} {% else %} {{request.user.username}}{% endif %}
|
||
</a>
|
||
<dl class="layui-nav-child">
|
||
{% if request.user.is_superuser %}
|
||
<dd><a href="{% url 'project_manage' %}">后台管理</a></dd>
|
||
{% endif %}
|
||
<dd><a href="{% url 'logout' %}">退出登录</a></dd>
|
||
</dl>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div class="layui-side layui-bg-black">
|
||
<div class="layui-side-scroll">
|
||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||
<ul class="layui-nav layui-nav-tree" lay-filter="test">
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_overview' %}"><i class="layui-icon layui-icon-console"></i> 仪表盘</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_project' %}"><i class="layui-icon layui-icon-list"></i> 我的文集</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_doc' %}"><i class="layui-icon layui-icon-file-b"></i> 我的文档</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_doc_share' %}"><i class="layui-icon layui-icon-file-b"></i> 文档分享</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_doctemp' %}"><i class="layui-icon layui-icon-template"></i> 文档模板</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_doc_tag' %}"><i class="layui-icon layui-icon-note"></i> 文档标签</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_image' %}"><i class="layui-icon layui-icon-picture"></i> 图片素材</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_attachment' %}"><i class="layui-icon layui-icon-export"></i> 附件管理</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_token' %}"><i class="layui-icon layui-icon-key"></i> 账户Token</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'manage_self' %}"><i class="layui-icon layui-icon-username"></i> 个人设置</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="{% url 'doc_recycle' %}"><i class="layui-icon layui-icon-delete"></i> 文档回收站</a>
|
||
</li>
|
||
<li class="layui-nav-item layui-nav-itemed">
|
||
<a href="http://mrdoc.zmister.com/project-54/" target="_blank"><i class="layui-icon layui-icon-help"></i> 使用手册</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="layui-body">
|
||
<!-- 内容主体区域 -->
|
||
<div style="padding: 25px;">{% block content %}{% endblock %}</div>
|
||
</div>
|
||
|
||
<div class="layui-footer" style="text-align:center;font-size: 12px;">
|
||
<!-- 底部固定区域 -->
|
||
© <a href="https://zmister.com/mrdoc/" target="_blank">MrDoc 2019-2020</a> -
|
||
当前版本:<a href="https://gitee.com/zmister/MrDoc/tree/{{mrdoc_version}}/" target="_blank">{{mrdoc_version}}</a> -
|
||
<a href="https://github.com/zmister2016/MrDoc" target="_blank">GitHub</a> -
|
||
<a href="https://gitee.com/zmister/MrDoc" target="_blank">码云</a> -
|
||
<a class="register-link" id="dashang" href="javascript:void(0);">打赏项目</a>
|
||
</div>
|
||
</div>
|
||
|
||
<script src="{% static 'jquery/3.1.1/jquery.min.js' %}"></script>
|
||
<script src="{% static 'layui/layui.all.js' %}"></script>
|
||
<script>
|
||
var form = layui.form;
|
||
//为当前页面的目录链接添加样式
|
||
$("li a").each(function (i) {
|
||
var $me = $(this);
|
||
var lochref = $.trim(window.location.href);
|
||
var mehref = $.trim($me.get(0).href);
|
||
if (lochref.indexOf(mehref) != -1) {
|
||
//console.log($me,lochref,mehref)
|
||
$me.parent().addClass("layui-this");
|
||
} else {
|
||
//console.log(lochref,mehref)
|
||
$me.parent().removeClass("layui-this");
|
||
}
|
||
});
|
||
$.ajaxSetup({
|
||
data: {csrfmiddlewaretoken: '{{ csrf_token }}' },
|
||
});
|
||
// 显示打赏图片
|
||
$("#dashang").click(function(r){
|
||
var layer = layui.layer;
|
||
layer.open({
|
||
type: 1,
|
||
title: false,
|
||
closeBtn: 0,
|
||
area: ['400px','400px'],
|
||
shadeClose: true,
|
||
content: $('#dashang_img')
|
||
});
|
||
});
|
||
</script>
|
||
{% block custom_script %}
|
||
{% endblock %}
|
||
</body>
|
||
<!-- 打赏选项卡模板 -->
|
||
<div id="dashang_img" style="display: none;">
|
||
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
||
<ul class="layui-tab-title">
|
||
<li class="layui-this">微信</li>
|
||
<li>支付宝</li>
|
||
<li>QQ支付</li>
|
||
<li>PayPal</li>
|
||
</ul>
|
||
<div class="layui-tab-content" style="height: 100px;">
|
||
<div class="layui-tab-item layui-show" align='center'>
|
||
<img src="{% static 'dashang/dashang_wx.webp' %}" style="width: 300px;height: auto;" />
|
||
</div>
|
||
<div class="layui-tab-item" align='center'>
|
||
<img src="{% static 'dashang/dashang_alipay.webp' %}" style="width: 300px;height: auto;" />
|
||
</div>
|
||
<div class="layui-tab-item" align='center'>
|
||
<img src="{% static 'dashang/dashang_qq.webp' %}" style="width: 300px;height: auto;" />
|
||
</div>
|
||
<div class="layui-tab-item" align='center'>
|
||
<a href="https://paypal.me/zmister" target="_blank">
|
||
<img src="{% static 'dashang/dashang_paypal.png' %}" style="width: 280px;height: auto;" />
|
||
</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</html> |