Fossil

Check-in [c4d6b89e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:added a link (for admin users only) to the admin page
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c4d6b89e97d473a296c692522b2d9e2df3cc856a
User & Date: stephan 2008-02-08 19:54:50
Context
2008-02-08
19:57
refactored to add a shared submenu. check-in: da106eb0 user: stephan tags: trunk
19:54
added a link (for admin users only) to the admin page check-in: c4d6b89e user: stephan tags: trunk
16:27
correction to the 'warning' text in admin_sql_page() check-in: 138177c3 user: stephan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/my_page.c.

89
90
91
92
93
94
95



96
97
98
99
100
101
102
  char const * ucap = db_column_text( &st, 1 );
  char const * uinfo = db_column_text( &st, 2 );

  @ <h2>Welcome, %s(uname)!</h2>
  @ Your user ID is: %d(uid)<br/>
  @ Your Fossil permissions are: [%s(ucap)]
  @   [TODO: explain these]<br/>



  @ Your additional info: [%s(uinfo)]
  @   [TODO: make this editable]<br/>

  mypage_logout_button();

  @ <hr/>
  @ <h2>Your artifacts:</h2>







>
>
>







89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
  char const * ucap = db_column_text( &st, 1 );
  char const * uinfo = db_column_text( &st, 2 );

  @ <h2>Welcome, %s(uname)!</h2>
  @ Your user ID is: %d(uid)<br/>
  @ Your Fossil permissions are: [%s(ucap)]
  @   [TODO: explain these]<br/>
  if( g.okAdmin ){
    @ You are an <a href='%s(g.zBaseURL)/admin'>admin</a>.<br/>
  }
  @ Your additional info: [%s(uinfo)]
  @   [TODO: make this editable]<br/>

  mypage_logout_button();

  @ <hr/>
  @ <h2>Your artifacts:</h2>