-
Notifications
You must be signed in to change notification settings - Fork 91
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
Conversation
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
This was the previous situation. We could put it as title under the img !Envoyé de mon iPhoneLe 21 avr. 2023 à 12:27, Swrup ***@***.***> a écrit :
@Swrup commented on this pull request.
In lib/mergeIndDisplay.ml:
@@ -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
Why do we apply escape_html to url?
This print the url as text next to the image?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
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))) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
When merging two persons with different images, show images.
The list of synonyms was not displayed (only the radio button!!)