-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* added face detection alerts to photos Added alert banners to the photos page with a link to face detection page when applicable * Add your photos to user dropdown * Change photo page icons changed the search button to an icon instead of text and changed the face detection icon from user to smiley :) * Drop fullres text --------- Co-authored-by: Dirk Doesburg <[email protected]>
- Loading branch information
1 parent
d48d924
commit 43eb7a6
Showing
4 changed files
with
67 additions
and
11 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 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 |
---|---|---|
|
@@ -12,22 +12,45 @@ | |
{% block content %} | ||
{% with keys=keywords|join:" " %} | ||
<div class="row mb-4"> | ||
<div class="col-12 col-lg-6"> | ||
{% trans 'Interested in a full resolution version of a photo? Send your request to <a href="mailto:[email protected]">[email protected]</a>.' %} | ||
<div> | ||
{% if not has_reference_faces %} | ||
<div class="col-md-12"> | ||
<div class="alert alert-info"> | ||
You need to upload at least one reference face in order for <a style="text-decoration: underline; color:white" href="{% url 'facedetection:reference-faces' %}">face recognition</a> to work. | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% if has_rejected_reference_faces %} | ||
<div class="col-md-12"> | ||
<div class="alert alert-info"> | ||
Some of your reference faces have been rejected. <a style="text-decoration: underline; color:white" href="{% url 'facedetection:reference-faces' %}">Please delete them and upload new ones.</a> | ||
</div> | ||
</div> | ||
{% elif has_processing_reference_faces %} | ||
<div class="col-md-12"> | ||
{% alert "info" "Some of your reference faces have not been processed yet. Come back later." dismissible=False %} | ||
</div> | ||
{% elif has_reference_faces and not has_processing_reference_faces and not photos %} | ||
<div class="col-md-12"> | ||
{% alert "info" "You haven't been recognized on any photos (yet)." dismissible=False %} | ||
</div> | ||
{% else %} | ||
{% endif %} | ||
</div> | ||
<div class="d-flex flex-wrap col-12 col-lg-6 mt-3 mt-lg-0 search-form form-inline d-flex align-items-center justify-content-space-between"> | ||
<div class="d-flex flex-wrap col-12 search-form form-inline d-flex align-items-center justify-content-space-between gap-3"> | ||
{% block search_form %} | ||
<form class="col-12 col-md-9 d-flex align-items-center justify-content-center flex-grow-1" method="get" | ||
<form class="d-flex align-items-center justify-content-center flex-grow-1" method="get" | ||
action="{% url 'photos:index' %}#photos-albums"> | ||
<div class="input-group"> | ||
<input class="form-control col-12 col-md-9 flex-grow-1" style="width: available" name="keywords" type="search" value="{{ keys|default_if_none:'' }}" | ||
<input class="form-control flex-grow-1" style="width: available" name="keywords" type="search" value="{{ keys|default_if_none:'' }}" | ||
placeholder="{% trans "What are you looking for?" %}" aria-label="{% trans "Search the Thalia's photo albums" %}" aria-describedby="photoalbums-search-button"> | ||
<input id="photoalbums-search-button" class="btn btn-lg btn-primary col-12 mt-2 mt-md-0 col-md-3 ms-0" type="submit" | ||
value="{% trans "Search" %}"/> | ||
<button id="photoalbums-search-button" class="btn btn-lg btn-primary ms-0" type="submit"> | ||
<i class="fas fa-search"></i> | ||
</button> | ||
</div> | ||
</form> | ||
<a href="{% url 'photos:liked-photos' %}" class="btn btn-lg btn-primary col-6 mt-2 mt-md-0 col-md-1 ms-0 ms-md-2 d-flex align-items-center justify-content-center"> | ||
<i class="fas fa-heart me-2 me-md-0"></i><span class="d-md-none">Liked photos</span> | ||
<a href="{% url 'photos:liked-photos' %}" class="btn btn-lg btn-primary d-flex align-items-center justify-content-center"> | ||
<i class="fas fa-heart me-2"></i>Liked photos | ||
</a> | ||
{% endblock search_form %} | ||
</div> | ||
|
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