Source: site.view [edit]
Function name: showFavorites
Arguments:
Description: Display Favorites
Page type: html
Render function:   searchRender
Module: collabExt

Page source:

<h1>Search For People</h1>

<webl>

var res  = `  <form action="/webl/WubHub_DoIt" method="post">` + "\n" +
          `    <input name="cmdline" value="cmdSearchResumes(skills,+,+,+,+,+)" type="hidden"/>` + "\n" +
          `    <input name="skills" value="" size="60" title="Skills"/>` + "\n" +
          `    <input type="submit" value="Search">` + "\n" +
          `</form><p>`;

res = res + "<h1>Saved Favorites</h1>\n";

res = res + "<table>\n";
var people = (ToList(wubvars.favoritePeople) ? []);
every personId in people do
   var person = WubCall("cmdPersonProfile", [personId]);
   if person != [. .] then
      res = res + `<tr><td><a target="_blank" href="/webl/WubHub_DoIt?cmdline=cmdPersonProfile(` + person["id"] + ")" + 
             `">` + person["name"] + `</a></td>` +
             `<td>` + person["headline"] + `</td> ` +
             `<td> (<a href="/webl/WubHub_DoIt?cmdline=similarPerson(` + person["id"] + `)">find similar</a>)</td>` +
             `<td> (<a href="/webl/WubHub_DoIt?cmdline=removeFavorite(` + person["id"] + `)">remove favorite</a>)</td> </tr>`;
   end
end;

if (people == []) then
   res = res + "<H3>No saved favorites found.</H3>\n";
end;

res = res + "</table>\n";

res;

</webl>

<table>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td></tr>
</table>