-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
62 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>gpic - Compare similar</title> | ||
<link rel="stylesheet" href="/assets/compare-similar.css"> | ||
</head> | ||
<body> | ||
<h1>Decide which one will stay</h1> | ||
<form method="post" action="/delete-similar"> | ||
{{ range $i, $pic := .pictures }} | ||
<input type=hidden name="similar[{{ $i }}]" value="{{ $pic }}"> | ||
{{ end }} | ||
<div class="control-bar"> | ||
<input type="submit" value="Delete pictures that are not selected"/> | ||
</div> | ||
<ul class="image-wrapper pic-num-{{ .grid }}"> | ||
{{ range .pictures }} | ||
<li> | ||
<div class="container"> | ||
<input type="checkbox" value="true" name="{{ . }}" id="{{ . }}" /> | ||
<label for="{{ . }}"> | ||
<img loading="lazy" src="/static/{{.}}" alt="{{.}}"> | ||
</label> | ||
</div> | ||
</li> | ||
{{end}} | ||
</ul> | ||
</form> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>gpic</title> | ||
<link rel="stylesheet" href="/assets/similar.css"> | ||
</head> | ||
<body> | ||
<h1>{{ .fullPath}}</h1> | ||
<p>Select similar pictures, next screen will let you delete some of them.</p> | ||
<p><code>gpic</code> doesn't remove any files, it creates <code>to-delete</code> subfolder and moves the pictures there.</p> | ||
<form method="get" action="/compare-similar"> | ||
<div class="control-bar"> | ||
<input type="submit" value="Go to next screen"/> | ||
</div> | ||
<ul class="image-wrapper"> | ||
{{range .pictures}} | ||
<li> | ||
<div class="container" id="{{ . }}-container"> | ||
<input type="checkbox" value="true" name="{{ . }}" id="{{ . }}" /> | ||
<label for="{{ . }}"> | ||
<img loading="lazy" src="/static/{{.}}" alt="{{.}}"> | ||
</label> | ||
</div> | ||
</li> | ||
{{end}} | ||
</ul> | ||
</form> | ||
</body> | ||
</html> |