Changes between Version 1 and Version 2 of GuiUrls
- Timestamp:
- Jul 16, 2007, 1:23:37 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GuiUrls
v1 v2 3 3 '''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: 4 4 5 6 5 {{{ 7 6 <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 ... 26 25 </gui_urls> 27 26 }}} 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.27 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. 29 28 30 29 The components of a <gui_url> element are: 31 32 30 33 31 … … 38 36 '''url''':: 39 37 The URL 38 40 39 All items are macro-substituted as follows: 41 42 43 40 44 41 '''<userid/>''':: … … 55 52 The user's account key 56 53 57
