TESTING - Moved Post Elements and such

This commit is contained in:
Yuki K 2016-09-15 01:32:51 -04:00
parent 09186ee810
commit 7c1ab41a92
5 changed files with 4 additions and 18 deletions

View File

@ -16,9 +16,9 @@
<div class="sidebar">
<?= $this->partial('search') ?>
<?= $this->partial('tags') ?>
<?= $this->partial('post/show_partials/related_posts_panel') ?>
<?= $this->partial('post/show_partials/statistics_panel') ?>
<?= $this->partial('post/show_partials/options_panel') ?>
<?= $this->partial('post/show_partials/related_posts_panel') ?>
<br />
<?php if (CONFIG()->can_show_ad('post#show-sidebar', current_user())) : ?>
<?= $this->partial('vertical') ?>

View File

@ -1,5 +1,4 @@
<div>
<h5><?= $this->t('.title') ?></h5>
<ul>
<li><?= $this->linkToFunction($this->t('buttons.edit'), "$('comments').hide(); $('edit').show().scrollTo(); $('post_tags').focus(); Cookie.put('show_defaults_to_edit', 1);") ?></li>
<!-- <?php //if (!$this->post->is_deleted() && $this->post->image() && $this->post->width && $this->post->width > 700) : ?>

View File

@ -1,21 +1,9 @@
<div>
<h5><?= $this->t('.title') ?></h5>
<ul>
<li><?= $this->linkToIf($this->post->previous_id(), $this->t('.previous'), array('post#show', 'id' => $this->post->previous_id())) ?></li>
<li><?= $this->linkToIf($this->post->next_id(), $this->t('.next'), array('post#show', 'id' => $this->post->next_id())) ?></li>
<li><?= $this->linkToIf($this->post->previous_id(), $this->t('.previous'), array('post#show', 'id' => $this->post->previous_id())) ?> <?= $this->linkToIf($this->post->next_id(), $this->t('.next'), array('post#show', 'id' => $this->post->next_id())) ?></li>
<?php if ($this->post->parent_id) : ?>
<li><?= $this->linkTo($this->t('.parent'), array('post#show', 'id' => $this->post->parent_id)) ?></li>
<?php endif ?>
<li><?= $this->linkTo($this->t('.random'), 'post#random') ?></li>
<?php if (current_user()->is_member_or_higher()) : ?>
<?php if (!$this->post->is_deleted() || $this->post->image()) : ?>
<li><a id="find-dupes"><?= $this->t('.find.duplicate') ?></a><?php #= linkTo "Find dupes", 'post#similar', 'id' => $this->post->id, 'services' => 'local' ?></li>
<li><a id="find-similar"><?= $this->t('.find.similar') ?></a><?php #= linkTo "Find similar", 'post#similar', 'id' => $this->post->id, 'services' => 'all' ?></li>
<script type="text/javascript">
$("find-dupes").href = '<?= $this->urlFor(array('post#similar', 'id' => $this->post->id, 'services'=>'local')) ?>';
$("find-similar").href = '<?= $this->urlFor(array('post#similar', 'id' => $this->post->id, 'services'=>'all')) ?>';
</script>
<?php endif ?>
<?php endif ?>
</ul>
</div>

View File

@ -1,5 +1,4 @@
<div id="stats" class="vote-container">
<h5><?= $this->t('.title') ?></h5>
<ul>
<li><?= $this->t('.id') ?>: <?= $this->post->id ?></li>
<li><?= $this->t('.posted') ?>: <?= $this->t(['.posted_data_html', 'time' => $this->linkTo($this->t(['time.x_ago', 't' => $this->timeAgoInWords($this->post->created_at)]), ["#index", 'tags' => "date:" . substr($this->post->created_at, 0, 10)], ['title' => substr(date('r', strtotime($this->post->created_at)), 0, -6)]), 'user' => $this->linkToIf($this->post->user_id, $this->post->author(), ['user#show', 'id' => $this->post->user_id])]) ?></li>

View File

@ -795,8 +795,8 @@ en:
info: This post does not exist.
related:
_: Related Posts
next: Next
previous: Previous
next: >>
previous: <<
random: Random
show_partials:
edit: