Skip to content

Commit

Permalink
Make admin search styles consistent with the pending page.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jun 11, 2022
1 parent ac8313c commit c631e68
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions admin/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@ <h3><span x-text="total"></span> results for &ldquo;<span x-text="query"></span>
<a href="#" @click.prevent="onDeleteEntry(e.id)">Delete</a>
</div>

<h3 class="heading">
<a x-bind:href="makeURL({id: e.id})" @click.prevent="onEditEntry(e)" x-text="e.content"></a>
<div class="heading">
<h3>
<a x-bind:href="makeURL({id: e.id})" @click.prevent="onEditEntry(e)" x-text="e.content"></a>
</h3>
<sup class="lang" x-text="config.languages[e.lang].name"></sup>
</h3>
</div>
<div class="phones"><span class="pronun" x-text="e.phones.join(', ')"></span></div>

<ol class="relations">
<template x-for="(r, n) in e.relations" :key="r.id">
<li class="rel" :class="{ highlight: order[e.id] && order[e.id].changedRels[r.id] }">
<p>
<span class="types" x-text="r.relation.types"></span> <span x-text="r.content" class="content"></span>
<sup class="lang" x-text="config.languages[r.lang].name"></sup>
<span class="meta lang" x-text="config.languages[r.lang].name"></span>
<span class="meta types" x-text="r.relation.types"></span> <span x-text="r.content" class="content"></span>
</p>
<p class="actions">
<div class="actions">
<a href="#" @click.prevent="onDetatchRelation(e.id, r.id)">Detatch</a>
<a x-bind:href="`${_urls.admin}/entries/${r.id}?parent=${e.id}`" @click.prevent="onEditRelation(r, e)">Edit relation</a>
<a x-bind:href="`${_urls.admin}/entries/${r.id}?parent=${e.id}`" @click.prevent="onEditEntry(r, e)">Edit entry</a>
Expand All @@ -39,7 +41,7 @@ <h3 class="heading">
<a href="#" @click.prevent="onReorderRelation(e, r, n, -1)" title="Move up">&uarr;</a>
<a href="#" @click.prevent="onReorderRelation(e, r, n, 1)" title="Move down">&darr;</a>
</span>
</p>
</div>
</li>
</template>
</ol>
Expand Down

0 comments on commit c631e68

Please sign in to comment.