Fossil

Check-in [c05ec7d924]
Login

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

Overview
Comment:Minor doc clarification.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | skin-preference-cookie
Files: files | file ages | folders
SHA3-256: c05ec7d924dfe7809f3c4dc62854ae675cb7e8a41e9fc2e36a72360eea6cd2f7
User & Date: stephan 2021-03-02 07:23:52.306
Context
2021-03-02
08:09
Corrected ability to be able to select the repository's configured skin, rather than just built-ins. check-in: 5289ab2a45 user: stephan tags: skin-preference-cookie
07:23
Minor doc clarification. check-in: c05ec7d924 user: stephan tags: skin-preference-cookie
07:21
Minor doc correction. check-in: 2d6bb6e977 user: stephan tags: skin-preference-cookie
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/skins.c.
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133

134
135
136
137
138
139
140
** former gets initialized before both URL parameters and the /draft
** path determination).
**
** The rankings were initially defined in
** https://fossil-scm.org/forum/forumpost/caf8c9a8bb
** and are:
**
** 0) A URI starting with draft1-9, linked to via /setup_skin, trumps
** everything else.
**
** 1) The --skin flag or skin: CGI config setting.
**
** 2) The "skin" display setting cookie or URL argument, in that
** order. If the URL argument is provided and refers to a legal
** skin then that will update the display cookie.

**
** 3) Skin properties from the CONFIG db table
**
** 4) Default skin.
*/
char *skin_use_alternative(const char *zName, int rank){
  static int currentRank = 5;







<
|




|
|
>







119
120
121
122
123
124
125

126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
** former gets initialized before both URL parameters and the /draft
** path determination).
**
** The rankings were initially defined in
** https://fossil-scm.org/forum/forumpost/caf8c9a8bb
** and are:
**

** 0) A skin name matching the glob draft[1-9] trumps everything else.
**
** 1) The --skin flag or skin: CGI config setting.
**
** 2) The "skin" display setting cookie or URL argument, in that
** order. If the "skin" URL argument is provided and refers to a legal
** skin then that will update the display cookie. If the skin name is
** illegal it is silently ignored.
**
** 3) Skin properties from the CONFIG db table
**
** 4) Default skin.
*/
char *skin_use_alternative(const char *zName, int rank){
  static int currentRank = 5;