Changes between Version 1 and Version 2 of GuiUrls


Ignore:
Timestamp:
Jul 16, 2007, 1:23:37 PM (17 years ago)
Author:
Nicolas
Comment:

Formatting

Legend:

Unmodified
Added
Removed
Modified
  • GuiUrls

    v1 v2  
    33'''GUI URLs''' is a mechanism that projects to pass URLs to the client, for display as hyperlinks in the GUI. These links will be shown when the project is selected in the '''Projects''' tab. To use this feature, include a file 'gui_urls.xml' in the project root directory, with the following form:
    44
    5 
    65{{{
    76<gui_urls>
    8  <gui_url>
    9  <name>Your account</name>
    10  <description>View your account information and credit totals</description>
    11  <url>http://foo.project.com/show_user.php?userid=<userid/></url>
    12  </gui_url>
    13  <gui_url>
    14  <name>Help</name>
    15  <description>Get help about SETI@home</description>
    16  <url>http://foo.project.com/help.php</url>
    17  </gui_url>
    18  <ifteam>
    19  <gui_url>
    20  <name>Team</name>
    21  <description>Info about <team_name/></description>
    22  <url>http://foo.project.com/team_display.php?teamid=<teamid/></url>
    23  </gui_url>
    24  </ifteam>
    25  ...
     7    <gui_url>
     8        <name>Your account</name>
     9        <description>View your account information and credit totals</description>
     10        <url>http://foo.project.com/show_user.php?userid=<userid/></url>
     11    </gui_url>
     12    <gui_url>
     13        <name>Help</name>
     14        <description>Get help about SETI@home</description>
     15        <url>http://foo.project.com/help.php</url>
     16    </gui_url>
     17    <ifteam>
     18        <gui_url>
     19            <name>Team</name>
     20            <description>Info about <team_name/></description>
     21            <url>http://foo.project.com/team_display.php?teamid=<teamid/></url>
     22        </gui_url>
     23    </ifteam>
     24    ...
    2625</gui_urls>
    2726}}}
    28  Each entry describes a GUI URL. These URLs (macro-substituted as described below) will be sent to client hosts in the reply to scheduler RPCs. Team-specific entries should be enclosed in <ifteam>; they will be sent only if the user belongs to a team.
     27Each entry describes a GUI URL. These URLs (macro-substituted as described below) will be sent to client hosts in the reply to scheduler RPCs. Team-specific entries should be enclosed in <ifteam>; they will be sent only if the user belongs to a team.
    2928
    3029The components of a <gui_url> element are:
    31 
    3230
    3331
     
    3836 '''url'''::
    3937        The URL
     38
    4039All items are macro-substituted as follows:
    41 
    42 
    4340
    4441 '''<userid/>'''::
     
    5552        The user's account key
    5653
    57