mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
ui-default: init
将ui-default合并至主存储库便于维护
This commit is contained in:
1 parent
6317c9057f
commit
5faa54c7ca
564 files changed
+23083
-14
No files matched your search
@@ -0,0 +1,19 @@
|
||||
{% set layout_name = "basic" %}
|
||||
{% extends "layout/html5.html" %}
|
||||
{% block body %}
|
||||
|
||||
{% include "partials/nav.html" %}
|
||||
|
||||
<div class="slideout-panel" id="panel">
|
||||
<div class="slideout-overlay"></div>
|
||||
{% include "partials/header_mobile.html" %}
|
||||
{% include "partials/header.html" %}
|
||||
<div class="main">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
{% include "partials/footer.html" %}
|
||||
</div>
|
||||
|
||||
{% include "partials/login_dialog.html" %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,13 @@
|
||||
{% import "components/home.html" as home with context %}
|
||||
{% extends "layout/basic.html" %}
|
||||
{% block content %}
|
||||
<div class="row" data-sticky-parent>
|
||||
<div class="medium-9 columns">
|
||||
{% block home_content %}{% endblock %}
|
||||
</div>
|
||||
<div class="medium-3 columns"><div data-sticky="large">
|
||||
{{ home.render_sidebar() }}
|
||||
{% block home_sidebar %}{% endblock %}
|
||||
</div></div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,52 @@
|
||||
{% import "components/form.html" as form with context %}
|
||||
{% import "components/sidemenu.html" as sidemenu with context %}
|
||||
{% import "components/paginator.html" as paginator with context %}
|
||||
{% import "components/nothing.html" as nothing with context %}
|
||||
{% import "components/noscript_note.html" as noscript_note with context %}
|
||||
{% import "components/user.html" as user with context %}
|
||||
<!DOCTYPE html>
|
||||
<html data-page="{{ page_name }}" data-layout="{{ layout_name }}" class="layout--{{ layout_name }} page--{{ page_name }} nojs" lang="{{ handler.viewLang }}">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
|
||||
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ static_url('apple-touch-icon-180x180.png') }}">
|
||||
<link rel="icon" type="image/png" href="{{ static_url('favicon-32x32.png') }}" sizes="32x32">
|
||||
<link rel="icon" type="image/png" href="{{ static_url('android-chrome-192x192.png') }}" sizes="192x192">
|
||||
<link rel="icon" type="image/png" href="{{ static_url('favicon-96x96.png') }}" sizes="96x96">
|
||||
<link rel="icon" type="image/png" href="{{ static_url('favicon-16x16.png') }}" sizes="16x16">
|
||||
<meta name="msapplication-TileColor" content="#579e9a">
|
||||
<meta name="msapplication-TileImage" content="{{ static_url('mstile-144x144.png') }}">
|
||||
<meta name="theme-color" content="#56758f">
|
||||
{% block ogp %}
|
||||
<meta property="og:site_name" content="{{ model.system.get('server.name') }}" />
|
||||
<meta property="og:title" content="{{ handler.renderTitle(page_name) }}" />
|
||||
<meta property="og:url" content="{{ handler.ctx.request.href }}" />
|
||||
<meta property="og:image" content="{{ static_url('favicon-96x96.png') }}" />
|
||||
{% endblock %}
|
||||
<link rel="stylesheet" media="all" href="{{ static_url('theme.' + handler.user.theme|default('default') + '.css') }}">
|
||||
<link rel="stylesheet" media="all" href="{{ url('ui_extracss') }}">
|
||||
<title>{{ handler.renderTitle(page_name) }}</title>
|
||||
{% if not isIE(handler.request.headers['user-agent']) %}
|
||||
<script>
|
||||
var _htmlNode = document.documentElement;
|
||||
_htmlNode.className = _htmlNode.className.replace(' nojs', ' hasjs');
|
||||
</script>
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
{{ handler.request.headers.hmr|default('')|safe }}
|
||||
{% block body %}{% endblock %}
|
||||
{% if not isIE(handler.request.headers['user-agent']) %}
|
||||
<script>
|
||||
var UiContext = {{ UiContext|json|safe }};
|
||||
var UserContext = {{ UserContext|json|safe }};
|
||||
</script>
|
||||
<script type="text/javascript" src="{{ ('/locale/{0}.js'.format(handler.translate('__id'))) }}"></script>
|
||||
<script type="text/javascript" src="/ui-constants.js"></script>
|
||||
<script type="module" src="{{ static_url('hydro.js') }}"></script>
|
||||
{% endif %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,22 @@
|
||||
{% set layout_name = "immersive" %}
|
||||
{% set no_path_section = true %}
|
||||
{% extends "layout/html5.html" %}
|
||||
{% block body %}
|
||||
|
||||
{% include "partials/nav.html" %}
|
||||
|
||||
<div class="slideout-panel" id="panel">
|
||||
<div class="slideout-overlay"></div>
|
||||
{% include "partials/header_mobile.html" %}
|
||||
<div class="nav--placeholder"></div>
|
||||
<div class="main">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{% set show_topics = false %}
|
||||
{% include "partials/footer.html" %}
|
||||
</div>
|
||||
|
||||
{% include "partials/login_dialog.html" %}
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,30 @@
|
||||
{% set layout_name = "mail" %}
|
||||
<style>
|
||||
body, .hydro { margin:0;color:#333;font-size:14px;font-family:"Tahoma","Segoe UI","Verdana","微软雅黑","Microsoft YaHei","宋体";background:#F2F2F2; }
|
||||
.hydro { padding:30px; }
|
||||
.hydro-box { background:#fff;box-shadow:0 0 15px rgba(0,0,0,0.3);border-radius:5px; }
|
||||
.hydro-header { background:#3AA9DE;color:#FFF;padding:10px;line-height:200%;font-size:15px;border-radius:5px 5px 0 0;border-bottom:3px solid #85CAEB; }
|
||||
.hydro-footer { font-size:12px;color:#444;padding:10px;border-top:1px solid #DDD;background:#F4F4F4;border-radius:0 0 5px 5px; }
|
||||
.hydro-content { padding:30px; }
|
||||
.hydro-content p { margin:5px 0; }
|
||||
.hydro a,
|
||||
.hydro a:visited,
|
||||
.hydro a:link,
|
||||
.hydro a:active { color:#1D76C7;text-decoration:none; }
|
||||
.hydro a:hover { color:#3A93E2;text-decoration:underline; }
|
||||
.hydro blockquote { padding:5px 10px;border-left:10px solid #E2EFFA;margin:20px;margin-left:0;_zoom:1; }
|
||||
#hydro_mail .t { font-size:16px; }
|
||||
#hydro_mail .f { font-style:italic; }
|
||||
</style>
|
||||
<div class="hydro">
|
||||
<div class="hydro-box">
|
||||
<div class="hydro-header">{% block title %}{% endblock %} - Hydro</div>
|
||||
<div class="hydro-content">
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
<div class="hydro-footer">
|
||||
<p>{{ _('This email was sent by {0} automatically, and please do not reply directly.').format('<a href="' + url_prefix + '/" target="_blank">Hydro</a>')|safe }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
{% set layout_name = "basic" %}
|
||||
{% extends "layout/html5.html" %}
|
||||
{% block body %}
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,16 @@
|
||||
{% extends "layout/basic.html" %}
|
||||
{% block content %}
|
||||
<div class="row" data-sticky-parent>
|
||||
<div class="medium-9 columns">
|
||||
{% block wiki_content %}{% endblock %}
|
||||
</div>
|
||||
<div class="medium-3 columns"><div data-sticky="large">
|
||||
<div class="section side">
|
||||
<ol class="menu">
|
||||
{{ sidemenu.render_item('info', 'wiki_about') }}
|
||||
{{ sidemenu.render_item('help', 'wiki_help') }}
|
||||
</ol>
|
||||
</div>
|
||||
</div></div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user