mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 21:18:58 +00:00
(control) Bootstrapify review-domains and search-to-ban views.
This commit is contained in:
parent
607d647483
commit
c245f7ce3a
@ -2,15 +2,14 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Control Service</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/style.css" />
|
||||
{{> control/partials/head-includes }}
|
||||
</head>
|
||||
<body>
|
||||
{{> control/partials/nav}}
|
||||
<section>
|
||||
<h1>Domain Review</h1>
|
||||
<div class="container">
|
||||
<h1 class="my-5">Domain Review</h1>
|
||||
<form method="POST" action="/review-random-domains">
|
||||
<table>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Action</th><th>Domain Name</th><th>Screenshot</th>
|
||||
</tr>
|
||||
@ -28,9 +27,11 @@
|
||||
</tr>
|
||||
{{/each}}
|
||||
<tr>
|
||||
<td colspan="3"><input type="Submit" value="Process"></td>
|
||||
<td colspan="3"><button type="submit" class="btn btn-primary">Process</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="after" value="{{after}}" />
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
{{> control/partials/foot-includes }}
|
@ -3,15 +3,24 @@
|
||||
<head>
|
||||
<title>Control Service</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="stylesheet" href="/style.css" />
|
||||
{{> control/partials/head-includes }}
|
||||
</head>
|
||||
<body>
|
||||
{{> control/partials/nav}}
|
||||
<section>
|
||||
<h1>Search to Ban</h1>
|
||||
<div class="container">
|
||||
<h1 class="my-5">Search to Ban</h1>
|
||||
<form action="/search-to-ban">
|
||||
<label for="q">Search Query</label><br>
|
||||
<input type="text" value="{{specs.humanQuery}}" name="q" id="q" /> <input type="submit" value="Search" />
|
||||
<div class="mb-3">
|
||||
<label for="q" class="form-label">Search Query</label><br>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input type="text" class="form-control" value="{{specs.humanQuery}}" name="q" id="q" />
|
||||
</div>
|
||||
<div class="col">
|
||||
<button type="submit" class="btn btn-primary">Search</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{#unless results}}
|
||||
<p>This utility lets you use the search engine to find spammy results, and ban them
|
||||
@ -20,18 +29,20 @@
|
||||
{{#if results}}
|
||||
<hr>
|
||||
<form action="/search-to-ban" method="post">
|
||||
<input type="submit" value="Blacklist Selected Domains">
|
||||
<div class="my-5">
|
||||
<button type="submit" class="btn btn-danger">Blacklist Selected Domains</button>
|
||||
</div>
|
||||
<input type="hidden" name="query" value="{{specs.humanQuery}}" />
|
||||
<table>
|
||||
<table class="table">
|
||||
{{#each results}}
|
||||
<tr><td><input type="checkbox" name="{{url}}"><td>{{title}}</td></tr>
|
||||
<tr><td><input type="checkbox" name="{{url}}"><th>{{title}}</th></tr>
|
||||
<tr><td colspan="2"><a href="{{url}}">{{url}}</a></td></tr>
|
||||
<tr><td colspan="2">{{description}}</td></tr>
|
||||
<tr><td colspan="2"> </td></tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
{{/if}}
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
{{> control/partials/foot-includes }}
|
||||
</html>
|
@ -11,7 +11,7 @@
|
||||
</tr>
|
||||
{{#each processes}}
|
||||
<tr class="{{#if isMissing}}missing{{/if}}">
|
||||
<td><a href="/message-queue?inbox={{processId}}">{{displayName}}</a></td>
|
||||
<td>{{displayName}}</td>
|
||||
<td title="{{uuidFull}}">
|
||||
<span style="background-color: {{uuidColor}}" class="uuidPip"> </span><span style="background-color: {{uuidColor2}}" class="uuidPip"> </span>{{uuid}}
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user