Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display image if different. Display fn.oc sn of possible merges #1454

Merged
merged 2 commits into from
Jun 20, 2023

Conversation

hgouraud
Copy link
Collaborator

When merging two persons with different images, show images.

The list of synonyms was not displayed (only the radio button!!)

@hgouraud
Copy link
Collaborator Author

Radio buttons are not working! see issue #1455

@@ -95,11 +96,20 @@ let print_differences conf base branches p1 p2 =
match Image.get_portrait conf base p with
| Some (`Url url) ->
({|<img src="|} ^<^ escape_html url
^>^ {|" style="max-width:75px;max-height:100px">|}
^>^ {|" style="max-width:75px;max-height:100px">|} ^ url
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we apply escape_html to url?

This print the url as text next to the image?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can probably suppress this escape_url.
The same comment applies to string_of_image_url in perso.ml

@hgouraud
Copy link
Collaborator Author

hgouraud commented Apr 21, 2023 via email

style="max-width:75px;max-height:100px"> %s|}
(commd conf :> string)
(string_of_int
@@ int_of_float (mod_float s.Unix.st_mtime (float_of_int max_int)))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this information to make src from a path?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how portraits are displayed. Not sure I remember the reasons for the various parameters

@Swrup Swrup merged commit 9697394 into geneweb:master Jun 20, 2023
3 of 4 checks passed
@hgouraud hgouraud deleted the fix-merge branch August 17, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants