refactor: using word depot in rear instead of admin
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
{% extends "admin/base.jinja" %}
|
||||
|
||||
{% block content %}
|
||||
{% include "admin/dashboard.jinja" %}
|
||||
<div>
|
||||
Some text
|
||||
another text
|
||||
Third text
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
{% include "fomantic.html" %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/static/admin/admin.css">
|
||||
<link rel="stylesheet" type="text/css" href="/static/rear/depot.css">
|
||||
|
||||
{% block extrastyle %}{% endblock %}
|
||||
{% block extrahead %}{% endblock %}
|
||||
@@ -42,14 +42,14 @@
|
||||
{% endblock usertools %}
|
||||
<div class="item">
|
||||
<a class="ui blue image label">
|
||||
<img src="/static/admin/teddy_bear.png">
|
||||
<img src="/static/rear/teddy_bear.png">
|
||||
Person
|
||||
<div class="detail">Admin</div>
|
||||
<div class="detail">Admiral</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="icon item">
|
||||
<form id="logout-form" method="post" action="{{ url('admin:logout') }}">
|
||||
<form id="logout-form" method="post" action="{{ url('depot:logout') }}">
|
||||
<i class="power link icon" style="float: none;"></i>
|
||||
</form>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
{% block sidebar %}
|
||||
<div class="ui vertical sidebar left visible overlay" id="main_sidemenu">
|
||||
<div class="ui vertical inverted fluid menu">
|
||||
<div class="item"><a href="{{admin_url}}">
|
||||
<div class="item"><a href="{{depot_url}}">
|
||||
<i class="big d20 dice icon" style="float: none;"></i>
|
||||
<b>Administration</b>
|
||||
</a>
|
||||
@@ -97,17 +97,17 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if available_apps %}
|
||||
{% for app in available_apps %}
|
||||
{% if sections %}
|
||||
{% for section in sections %}
|
||||
<div class="item">
|
||||
<i class="cog link icon" href="{{ app.admin_url }}"></i>
|
||||
<div class="header">{{ app.name }} </div>
|
||||
<i class="cog link icon" href="{{ section.section_url }}"></i>
|
||||
<div class="header">{{ section.name }} </div>
|
||||
<div class="menu">
|
||||
{% for model in app.models %}
|
||||
{% for model in section.models %}
|
||||
<div
|
||||
class="item model-{{ model.key }}{% if model.admin_url in request.path|urlencode %} current-model{% endif %}">
|
||||
{% if model.admin_url %}
|
||||
<a href="{{ model.admin_url }}" hx-get="{{ model.admin_url }}" hx-target="#main" hx-push-url="true" {% if
|
||||
{% if model.model_url %}
|
||||
<a href="{{ model.model_url }}" hx-get="{{ model.model_url }}" hx-target="#main" hx-push-url="true" {% if
|
||||
model.admin_url in request.path|urlencode %} aria-current="page" {% endif %}>{{ model.name }}</a>
|
||||
{% else %}
|
||||
<span>{{ model.name }}</span>
|
||||
@@ -1,15 +1,16 @@
|
||||
{% if app_list %}
|
||||
{% for app in app_list %}
|
||||
{% if sections %}
|
||||
{% for section in sections %}
|
||||
<div
|
||||
class="app-{{ app.key }} module{% if app.app_url in request.path|urlencode %} current-app{% endif %} ui short scrolling container">
|
||||
class="section-{{ section.key }} module{% if section.section_url in request.path|urlencode %} current-section{% endif %} ui short scrolling container">
|
||||
<table class="ui very compact celled table head stuck unstackable">
|
||||
<caption>
|
||||
<a href="{{ app.app_url }}" class="section" title="Models in the {{ name }} application">{{ app.name }}</a>
|
||||
<a href="{{ section.section_url }}" class="section"
|
||||
title="Models in the {{ name }} Section">{{ section.name }}</a>
|
||||
</caption>
|
||||
{% for model in app.models %}
|
||||
<tr class="model-{{ model.key }}{% if model.admin_url in request.path|urlencode %} current-model{% endif %}">
|
||||
{% if model.admin_url %}
|
||||
<th scope="row"><a href="{{ model.admin_url }}" {% if model.admin_url in request.path|urlencode %}
|
||||
{% for model in section.models %}
|
||||
<tr class="model-{{ model.key }}{% if model.model_url in request.path|urlencode %} current-model{% endif %}">
|
||||
{% if model.model_url %}
|
||||
<th scope="row"><a href="{{ model.model_url }}" {% if model.model_url in request.path|urlencode %}
|
||||
aria-current="page" {% endif %}>{{ model.name }}</a></th>
|
||||
{% else %}
|
||||
<th scope="row">{{ model.name }}</th>
|
||||
@@ -21,11 +22,11 @@
|
||||
<td></td>
|
||||
{% endif %}
|
||||
|
||||
{% if model.admin_url and show_changelinks %}
|
||||
{% if model.model_url and show_changelinks %}
|
||||
{% if model.view_only %}
|
||||
<td><a href="{{ model.admin_url }}" class="viewlink">{{ translate( 'View') }}</a></td>
|
||||
<td><a href="{{ model.model_url }}" class="viewlink">{{ translate( 'View') }}</a></td>
|
||||
{% else %}
|
||||
<td><a href="{{ model.admin_url }}" class="changelink">{{ translate( 'Change') }}</a></td>
|
||||
<td><a href="{{ model.model_url }}" class="changelink">{{ translate( 'Change') }}</a></td>
|
||||
{% endif %}
|
||||
{% elif show_changelinks %}
|
||||
<td></td>
|
||||
10
templates/depot/index.html
Normal file
10
templates/depot/index.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "depot/base.jinja" %}
|
||||
|
||||
{% block content %}
|
||||
{% include "depot/dashboard.jinja" %}
|
||||
<div>
|
||||
Some text
|
||||
another text
|
||||
Third text
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user