-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch entity imagery from Wikipedia (#1139)
- Loading branch information
1 parent
a8f2efe
commit 7be2b0d
Showing
16 changed files
with
392 additions
and
283 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: Betty VERSION\n" | ||
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" | ||
"POT-Creation-Date: 2024-01-03 16:22+0000\n" | ||
"POT-Creation-Date: 2024-01-08 19:21+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -316,6 +316,9 @@ msgstr "" | |
msgid "Descendant names include" | ||
msgstr "" | ||
|
||
msgid "Description, licensing, and image history" | ||
msgstr "" | ||
|
||
msgid "Determine if people can be proven to have died. If not, mark them and their associated entities private." | ||
msgstr "" | ||
|
||
|
@@ -389,6 +392,9 @@ msgstr "" | |
msgid "Files" | ||
msgstr "" | ||
|
||
msgid "Find out more about this image on Wikimedia Commons." | ||
msgstr "" | ||
|
||
msgid "Follow Betty on <a href=\"https://twitter.com/Betty_Project\">Twitter</a> and <a href=\"https://github.com/bartfeenstra/betty\">Github</a>." | ||
msgstr "" | ||
|
||
|
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
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
17 changes: 1 addition & 16 deletions
17
betty/extension/cotton_candy/assets/templates/search/result-person.html.j2
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 |
---|---|---|
@@ -1,16 +1 @@ | ||
{% set embedded=True %} | ||
<a href="{{ entity | url }}" class="nav-secondary-action search-result-target"> | ||
<div class="search-result-description"> | ||
{% include 'entity/label--person.html.j2' %} | ||
{% include 'entity/meta--person.html.j2' %} | ||
</div> | ||
{% set files = entity.files | select('public') | list %} | ||
{% if files | length > 0 %} | ||
{% set file = files | first %} | ||
{% if file.media_type and file.media_type.type == 'image' %} | ||
<div class="search-result-preview"> | ||
<img src="{{ file | image(45, 45) | static_url }}" class="image"{% if file.description %} alt="{{ file.description }}"{% endif %}/> | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
</a> | ||
{% include 'search/result-with-image.html.j2' %} |
8 changes: 1 addition & 7 deletions
8
betty/extension/cotton_candy/assets/templates/search/result-place.html.j2
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 |
---|---|---|
@@ -1,7 +1 @@ | ||
{% set embedded=True %} | ||
<a href="{{ entity | url }}" class="nav-secondary-action search-result-target"> | ||
<div class="search-result-description"> | ||
{% include 'entity/label--place.html.j2' %} | ||
{% include 'entity/meta--place.html.j2' %} | ||
</div> | ||
</a> | ||
{% include 'search/result-with-image.html.j2' %} |
16 changes: 16 additions & 0 deletions
16
betty/extension/cotton_candy/assets/templates/search/result-with-image.html.j2
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,16 @@ | ||
{% set embedded=True %} | ||
<a href="{{ entity | url }}" class="nav-secondary-action search-result-target"> | ||
<div class="search-result-description"> | ||
{% include ['entity/label--' + (entity | entity_type_name | camel_case_to_kebab_case) + '.html.j2', 'entity/label.html.j2'] %} | ||
{% include ['entity/meta--' + (entity | entity_type_name | camel_case_to_kebab_case) + '.html.j2', 'entity/meta.html.j2'] ignore missing %} | ||
</div> | ||
{% set files = entity.files | select('public') | list %} | ||
{% if files | length > 0 %} | ||
{% set file = files | first %} | ||
{% if file.media_type and file.media_type.type == 'image' %} | ||
<div class="search-result-preview"> | ||
<img src="{{ file | image(45, 45) | static_url }}" class="image"{% if file.description %} alt="{{ file.description }}"{% endif %}/> | ||
</div> | ||
{% endif %} | ||
{% endif %} | ||
</a> |
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
Oops, something went wrong.