plain.admin 0.20.0__py3-none-any.whl → 0.21.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,12 +14,19 @@ table {
14
14
 
15
15
  th {
16
16
  text-align: left;
17
- padding: 0 0.5rem;
18
- color: rgb(55, 65, 81);
17
+ padding: 0.5rem 0.5rem;
19
18
  }
20
19
 
21
20
  table th a {
22
- color: rgb(55, 65, 81);
21
+ color: rgba(255, 255, 255, 0.60);
22
+ }
23
+
24
+ table td a {
25
+ color: white;
26
+
27
+ &:hover {
28
+ text-decoration: none;
29
+ }
23
30
  }
24
31
 
25
32
  tbody tr:hover {
@@ -32,7 +32,7 @@
32
32
  </button>
33
33
 
34
34
  <a class="inline-flex items-center text-stone-300" href="{{ url('admin:index') }}">
35
- <span class="text-stone-400">Admin</span>
35
+ <span class="text-stone-400 font-semibold">Admin</span>
36
36
  </a>
37
37
 
38
38
  {#
@@ -96,7 +96,7 @@
96
96
  </div>
97
97
  <div class="mt-8 flex flex-col text-sm pb-3 pt-3 text-stone-400 sticky bottom-0 bg-stone-950">
98
98
  <a class="sm:hidden py-1" href="{{ url('admin:search') }}">Global search</a>
99
- <div class="flex items-center justify-between">
99
+ <div class="flex items-center justify-between space-x-1.5">
100
100
  <div class="flex items-center truncate">
101
101
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="w-6 h-6 mr-1.5 bi bi-person-circle" viewBox="0 0 16 16">
102
102
  <path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
@@ -106,7 +106,9 @@
106
106
  {{ request.user }}
107
107
  </span>
108
108
  </div>
109
- <a class="ml-2 hover:text-white hover:underline flex-shrink-0" href="{{ url('logout') }}">Log out</a>
109
+ <form method="POST" action="{{ url('logout') }}" class="flex-shrink-0">
110
+ <button type="submit" class="hover:text-white hover:underline">Log out</button>
111
+ </form>
110
112
  </div>
111
113
  </div>
112
114
  </aside>
@@ -9,7 +9,7 @@
9
9
  Toggle raw values
10
10
  </button>
11
11
 
12
- <dl class="text-sm mt-3 w-full grid !grid-cols-1 sm:!grid-cols-[max-content,1fr] sm:gap-y-2 gap-x-8" style="grid-template-columns: max-content 1fr;">
12
+ <dl class="text-sm mt-3 grid grid-cols-1 sm:grid-cols-[max-content_1fr] sm:gap-y-2 gap-x-8">
13
13
  {% for field in fields %}
14
14
  <dt class="font-medium mt-4 sm:mt-0"><code>{{ field }}</code></dt>
15
15
  <dd class="flex items-center mt-1 sm:mt-0">
@@ -76,20 +76,20 @@
76
76
  <div class="w-full overflow-auto mt-2">
77
77
  <table class="text-sm table-auto">
78
78
  <thead>
79
- <tr class="bg-white/5 [&>th]:py-2 [&>:first-child]:rounded-l-md [&>:last-child]:rounded-r-md">
79
+ <tr class="bg-white/5 [&>:first-child]:rounded-l-md [&>:last-child]:rounded-r-md">
80
80
  {% if table_style != "simple" and actions %}<th></th>{% endif %}
81
81
 
82
82
  {% for field in fields %}
83
83
  {% if order_by_field is defined %}
84
84
  <th>
85
85
  {% if table_style == "simple" %}
86
- <div class="font-mono text-xs font-normal text-white/60">
86
+ <div class="font-mono text-xs font-normal">
87
87
  {{ field }}
88
88
  </div>
89
89
  {% else %}
90
90
  <a
91
91
  data-merge-params
92
- class="font-mono text-xs font-normal text-white/60"
92
+ class="font-mono text-xs font-normal"
93
93
  href="?page=1&order_by={{ '-' if not order_by_direction else '' }}{{ field }}">
94
94
  {{ field }}
95
95
  {% if field == order_by_field %}
@@ -151,7 +151,7 @@ class AdminModelDetailView(AdminDetailView):
151
151
  if fields := super().get_fields():
152
152
  return fields
153
153
 
154
- return ["pk"] + [f.name for f in self.object._meta.get_fields() if f.concrete]
154
+ return [f.name for f in self.object._meta.get_fields() if f.concrete]
155
155
 
156
156
  def get_field_value(self, obj, field: str):
157
157
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: plain.admin
3
- Version: 0.20.0
3
+ Version: 0.21.1
4
4
  Summary: Admin dashboard and tools for Plain.
5
5
  Author-email: Dave Gaeddert <dave.gaeddert@dropseed.dev>
6
6
  License-Expression: BSD-3-Clause
@@ -7,7 +7,7 @@ plain/admin/middleware.py,sha256=k3yP1o3CzvLiZZSoxqq-DvAZlp4sICRauaT-kD3FJKM,398
7
7
  plain/admin/templates.py,sha256=jLhJkuvqnPMBQTP-kzojFaqmFi50GZHvrVzuZCLc3rk,836
8
8
  plain/admin/toolbar.py,sha256=dsZa_I-tTbaeOluCbvHGEqy4_Suw6Q_JSrKl8Eu08qY,973
9
9
  plain/admin/urls.py,sha256=Q44_HpivSHJfDQWJLtm_OQVWm0VQlqAg8sa1M1NdxFM,1331
10
- plain/admin/assets/admin/admin.css,sha256=qSM3Q99I2YbWxNmRjSORz9yCZ-H7oeGppTFE4QzByvk,2580
10
+ plain/admin/assets/admin/admin.css,sha256=-KdI7geASBsSbTve26VeJ-wCrdHWyD3EdjDZ9o393Yc,2653
11
11
  plain/admin/assets/admin/admin.js,sha256=AWD6UqPxGqJFaUhYTDWe4niTgk0thzU4gRl7qK41KNc,2759
12
12
  plain/admin/assets/admin/chart.js,sha256=GZiCYXjL6SmyuSCGE0Df80QvOUkw6H2YD-zsVID05lo,205089
13
13
  plain/admin/assets/admin/jquery-3.6.1.slim.min.js,sha256=W2eb4M1jdKpuZ_-_KnDgqI9X9SwGLrXtO0dknpNPJyE,72534
@@ -33,11 +33,11 @@ plain/admin/querystats/core.py,sha256=GLhKwWwO2OwN2wneAgfbKRQzIIjZqegZYb1fMVwilj
33
33
  plain/admin/querystats/middleware.py,sha256=M1EVdX11H545IdZlppbSIL_h8hzBIrMELrYrcAb4aq0,3192
34
34
  plain/admin/querystats/urls.py,sha256=SHYbWvxjg6kFHR-e6T4vFmh4VqyPG7gYHXxDKdB4qz0,230
35
35
  plain/admin/querystats/views.py,sha256=58UpxaBp_H80Tf7azi4QcphgHbXgP5iqLDf-qZJfzRI,788
36
- plain/admin/templates/admin/base.html,sha256=NvhAxtYQSTjkX9RZbp6mQ-uh_RZN6Bb02texjEKY5es,8338
36
+ plain/admin/templates/admin/base.html,sha256=M3z5JwRPSS9fc3Rcg9YxPWTNL0wNo98oaEv3Ue3xlvs,8466
37
37
  plain/admin/templates/admin/delete.html,sha256=lNuU2G-BR6TH6NUmh7VcvjnEuFeI84rwwk_oO1jkUq0,431
38
- plain/admin/templates/admin/detail.html,sha256=NOEUvZlHM5lvpq6ZnfMYS6UUBCMSya4CmAHxZr-joJQ,787
38
+ plain/admin/templates/admin/detail.html,sha256=AizpXs6HguFzwbk7JDbH8poJB5dM2CaVVaQ4FThAHaw,730
39
39
  plain/admin/templates/admin/index.html,sha256=b65tcZhv9QfvmjePySU7MmzUlpMECIXP8dBH-a3Eyxw,69
40
- plain/admin/templates/admin/list.html,sha256=RFtGZf_g_IDiPc8udchgf63mMpfEsvzS4hUKqkvDjoM,8781
40
+ plain/admin/templates/admin/list.html,sha256=MgyVmaoeZ8YMTWbK9mFagIScbVwpTOmZ2FJ0XZQ_xDM,8741
41
41
  plain/admin/templates/admin/page.html,sha256=wzRR-JLs8CgCOoB3BMoYWqTMpYM0z4X2qlqdwAe0YjM,67
42
42
  plain/admin/templates/admin/search.html,sha256=zfwnXoztAFnj8OmwxJcWaqo-SKCy50bLwfwSrAnAtoQ,1799
43
43
  plain/admin/templates/admin/cards/base.html,sha256=2HRIxvt5Kf0MPVv7XLQZcc7vfz3YR_WLsrVgbQtyN5I,933
@@ -71,12 +71,12 @@ plain/admin/templates/querystats/toolbar.html,sha256=dePs614akVWUD8IlgzvQ0TREThv
71
71
  plain/admin/templates/toolbar/toolbar.html,sha256=KcGAG6kRmx60wfqEsdD5C4nDMilH-JvPjHoU6EktfaY,5985
72
72
  plain/admin/views/__init__.py,sha256=nF6AENZ3Xxyi08OTRrF6e-HYBkZSFj7XBK2mVzMYqN4,846
73
73
  plain/admin/views/base.py,sha256=S1oaMUXnMOwRozbn2K-tk9tL4BMimemfMagZD9QxrJw,3512
74
- plain/admin/views/models.py,sha256=M4qoz3IpZuD_9DG25vKUNnfijAJhj33sXSciw2edkGE,7205
74
+ plain/admin/views/models.py,sha256=gos3KBPvOovULG8xZYKOO4ENrQlUIGrlIkRPO99wkDw,7196
75
75
  plain/admin/views/objects.py,sha256=Wcw7_k4BDz4h49e4BGtq6g-3jo5-T0fJU9CfMcvMQK4,11319
76
76
  plain/admin/views/registry.py,sha256=Lxib4YSQCMHb_zACnLKymJakV8jCZPWYll7J8-aV9Xw,3712
77
77
  plain/admin/views/types.py,sha256=ONMMdUoapgMoUVYgSIe-4YCdfvaVMQ4jgPWYiMo0pDk,178
78
78
  plain/admin/views/viewsets.py,sha256=dqMlQ6kLn9iqd9BwBWAZT1S271wH1FdfM5HXbOgBMEw,1655
79
- plain_admin-0.20.0.dist-info/METADATA,sha256=9YfrILLCTs761i5g49pljGr976GKr5Eo2vnwdMiHy_o,6821
80
- plain_admin-0.20.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
- plain_admin-0.20.0.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
82
- plain_admin-0.20.0.dist-info/RECORD,,
79
+ plain_admin-0.21.1.dist-info/METADATA,sha256=9tYFbMU5aEW70SJaUzSZzF0diCu2IndAeRVNK6JEwHc,6821
80
+ plain_admin-0.21.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
81
+ plain_admin-0.21.1.dist-info/licenses/LICENSE,sha256=cvKM3OlqHx3ijD6e34zsSUkPvzl-ya3Dd63A6EHL94U,1500
82
+ plain_admin-0.21.1.dist-info/RECORD,,