Skip to content

Commit

Permalink
Add domain dashboard style && Hide its some function (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lvw666 committed Sep 6, 2023
1 parent e65e206 commit 70dc3a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/hydrooj/src/lib/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ inject('ControlPanel', 'manage_user_import');
inject('ControlPanel', 'manage_user_priv');
inject('ControlPanel', 'manage_setting');
inject('ControlPanel', 'manage_config');
inject('DomainManage', 'domain_dashboard', { family: 'Properties', icon: 'info' });
inject('DomainManage', 'domain_edit', { family: 'Properties', icon: 'info' });
// inject('DomainManage', 'domain_dashboard', { family: 'Properties', icon: 'info' });
// inject('DomainManage', 'domain_edit', { family: 'Properties', icon: 'info' });
inject('DomainManage', 'domain_join_applications', { family: 'Properties', icon: 'info' });
inject('DomainManage', 'domain_role', { family: 'Access Control', icon: 'user' });
inject('DomainManage', 'domain_user', { family: 'Access Control', icon: 'user' });
Expand Down
2 changes: 1 addition & 1 deletion packages/ui-default/pages/home_domain.page.styl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

.col--role
width: rem(160px)
border-left: 1px solid $table-border-color
// border-left: 1px solid $table-border-color

.col--action
width: rem(135px)
Expand Down
4 changes: 2 additions & 2 deletions packages/ui-default/templates/domain_dashboard.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% import "components/user.html" as user %}
{% extends "domain_base.html" %}
{% block domain_content %}
{% if domain.bulletin %}
{# {% if domain.bulletin %}
<div class="section">
<div class="section__body typo">
{{ domain.bulletin|markdown|safe }}
Expand Down Expand Up @@ -41,5 +41,5 @@ <h1 class="section__title" data-heading>{{ _('Delete Domain') }}</h1>
</div>
<div class="section__body"></div>
</div>
{% endif %}
{% endif %} #}
{% endblock %}
2 changes: 1 addition & 1 deletion packages/ui-default/templates/home_domain.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h1 class="section__title">{{ _('My Domains') }}</h1>
{% if handler.user.hasPriv(model.builtin.PRIV.PRIV_CREATE_DOMAIN) %}
<a class="primary rounded button" href="{{ url('home_domain_create') }}"><span class="icon icon-add"></span> {{ _('Create Domain') }}</a>
{% endif %}
<a class="tool-button" href="{{ url('wiki_help', anchor='domain') }}"><span class="icon icon-help"></span> {{ _("What's domain?") }}</a>
{# <a class="tool-button" href="{{ url('wiki_help', anchor='domain') }}"><span class="icon icon-help"></span> {{ _("What's domain?") }}</a> #}
</div>
</div>
<div class="section__body no-padding">
Expand Down

0 comments on commit 70dc3a8

Please sign in to comment.