Skip to content

Commit b91bd54

Browse files
committed
UX: Незначительные изменения
1 parent 503a59d commit b91bd54

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

resources/views/default/_block/admin-dropdown-content.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,65 +5,65 @@
55
</svg>
66
</span>
77
<ul class="dropdown">
8-
<?php if ($container->user()->login() == $post['login']) : ?>
9-
<?php if ($post['my_post'] == $post['post_id']) : ?>
8+
<?php if ($container->user()->login() == $item['login']) : ?>
9+
<?php if ($item['my_post'] == $item['post_id']) : ?>
1010
<li>
11-
<a class="add-profile active lowercase" data-post="<?= $post['post_id']; ?>">
11+
<a class="add-profile active lowercase" data-post="<?= $item['post_id']; ?>">
1212
&#183; <?= __('app.from_profile'); ?>
1313
</a>
1414
</li>
1515
<?php else : ?>
1616
<li>
17-
<a class="add-profile gray-600 lowercase" data-post="<?= $post['post_id']; ?>">
17+
<a class="add-profile gray-600 lowercase" data-post="<?= $item['post_id']; ?>">
1818
&#183; <?= __('app.in_profile'); ?>
1919
</a>
2020
</li>
2121
<?php endif; ?>
2222
<?php endif; ?>
2323

24-
<?php if ($container->access()->postAuthor($post, $blog['facet_user_id'] ?? 0) == true || $post['post_draft'] == true) : ?>
24+
<?php if ($container->access()->postAuthor($item, $blog['facet_user_id'] ?? 0) == true || $item['post_draft'] == true) : ?>
2525
<li>
26-
<a class="lowercase" href="<?= url('publication.form.edit', ['id' => $post['post_id']]); ?>">
26+
<a class="lowercase" href="<?= url('publication.form.edit', ['id' => $item['post_id']]); ?>">
2727
&#183; <?= __('app.edit'); ?>
2828
</a>
2929
</li>
3030
<?php endif; ?>
3131

3232
<?php if ($container->user()->admin()) : ?>
3333
<li>
34-
<a data-type="post" data-id="<?= $post['post_id']; ?>" class="type-action text-sm lowercase">
35-
<?php if ($post['post_is_deleted'] == 1) : ?>
34+
<a data-type="post" data-id="<?= $item['post_id']; ?>" class="type-action text-sm lowercase">
35+
<?php if ($item['post_is_deleted'] == 1) : ?>
3636
<span class="sky">&#183; <?= __('app.recover'); ?></span>
3737
<?php else : ?>
3838
&#183; <?= __('app.remove'); ?>
3939
<?php endif; ?>
4040
</a>
4141
</li>
4242
<li>
43-
<a data-id="<?= $post['post_id']; ?>" class="post-recommend lowercase">
44-
<?php if ($post['post_is_recommend'] == 1) : ?>
43+
<a data-id="<?= $item['post_id']; ?>" class="post-recommend lowercase">
44+
<?php if ($item['post_is_recommend'] == 1) : ?>
4545
<span class="sky"> &#183; <?= __('app.recommended'); ?></span>
4646
<?php else : ?>
4747
&#183; <?= __('app.recommended'); ?>
4848
<?php endif; ?>
4949
</a>
5050
</li>
5151
<li>
52-
<a href="<?= url('admin.logip', ['item' => $post['post_ip']]); ?>">
53-
&#183; <?= $post['post_ip']; ?>
52+
<a href="<?= url('admin.logip', ['item' => $item['post_ip']]); ?>">
53+
&#183; <?= $item['post_ip']; ?>
5454
</a>
5555
</li>
5656
<?php endif; ?>
57-
<?php if ($post['modified']) : ?>
57+
<?php if ($item['modified']) : ?>
5858
<li>
5959
<div class="lowercase">
60-
&#183; <?= langDate($post['post_modified']); ?> <span class="gray-600">(<?= __('app.ed'); ?>)</span>
60+
&#183; <?= langDate($item['post_modified']); ?> <span class="gray-600">(<?= __('app.ed'); ?>)</span>
6161
</div>
6262
</li>
6363
<?php else : ?>
6464
<li>
6565
<div class="lowercase">
66-
&#183; <?= langDate($post['post_date']); ?>
66+
&#183; <?= langDate($item['post_date']); ?>
6767
</div>
6868
</li>
6969
<?php endif; ?>

resources/views/default/_block/latest-comments-tabs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<span class="nickname<?php if (Html::loginColor($comment['created_at'])) : ?> new<?php endif; ?>"><?= $comment['login']; ?></span>
1111
</a>
1212
<span class="lowercase"><?= langDate($comment['comment_date']); ?></span>
13-
<span class="lowercase"><?= insert('/content/publications/type-publication', ['type' => $comment['post_type']]); ?></span>
13+
<!--span class="lowercase"><?= insert('/content/publications/type-publication', ['type' => $comment['post_type']]); ?></span-->
1414
</div>
1515
<a class="last-content_telo" href="<?= post_slug($comment['post_type'], $comment['post_id'], $comment['post_slug']); ?>#comment_<?= $comment['comment_id']; ?>">
1616
<?php if (mb_strlen($fragment = fragment($comment['comment_content'], 78), 'utf-8') < 5) : ?>

resources/views/default/assets/css/parts/_components.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,6 @@ video {
593593
max-width: 560px;
594594
}
595595

596-
.showPassword {
597-
position: absolute;
598-
color: var(--gray-600);
599-
right: 5px;
600-
margin: 5px;
601-
}
602-
603596
.scroll-menu {
604597
overflow-x: auto;
605598
scrollbar-width: none;

resources/views/default/assets/css/parts/_inputs.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,13 @@ fieldset.form-big .input-label {
9393
margin-top: 14px;
9494
}
9595

96+
.showPassword {
97+
position: absolute;
98+
color: var(--gray-600);
99+
right: 5px;
100+
margin: 2px;
101+
}
102+
96103
@media screen and (max-width: 735px) {
97104
fieldset .input-label {
98105
margin: 0;

resources/views/default/content/publications/view/content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</span>
4242

4343
<?php if ($container->user()->active()) : ?>
44-
<?= insert('/_block/admin-dropdown-content', ['post' => $item]); ?>
44+
<?= insert('/_block/admin-dropdown-content', ['item' => $item]); ?>
4545
<?php endif; ?>
4646
</div>
4747

0 commit comments

Comments
 (0)