1 | static S ai_html_linkedWebWithThumbs(S webID) { |
2 | bool auth = html_pretendAuthed(); |
3 | S html = ai_html_linkedWeb_icon(webID); |
4 | if (auth) { |
5 | T3<S> t = ai_webToTriple(ai_getWeb(webID)); |
6 | new Matches m; |
7 | |
8 | // possibly * => * |
9 | if (t != null && swic(t.b, "possibly ", m) && !ai_hasTriple(t.a, m.rest(), t.c)) |
10 | html += " " + html_smartBotSendInput(smartBot_storeTripleCmd(t.a, m.rest(), t.c), ai_html_thumbUp()); |
11 | else |
12 | html += " " + ai_html_webThumbUpLink(webID); |
13 | |
14 | html += " " + ai_html_webThumbDownLink(webID); |
15 | } |
16 | ret html; |
17 | } |
Began life as a copy of #1011319
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011881 |
Snippet name: | ai_html_linkedWebWithThumbs |
Eternal ID of this version: | #1011881/11 |
Text MD5: | 6f4effa7f42d509511cadbddcb8906ee |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-28 13:47:05 |
Source code size: | 579 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 488 / 534 |
Version history: | 10 change(s) |
Referenced in: | [show references] |