Fossil

Check-in [894cff0a]
Login

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

Overview
Comment:Make the sitemap show in multiple columns on wide-screen browsers.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 894cff0ace351f3e79f75c967979d130f53b1593d8c5232c224f7bdd2a964a00
User & Date: drh 2018-09-01 14:19:58.020
Context
2018-09-01
14:52
Add 1em of left padding to multi-column unordered lists. This extra padding is necessary to get Chrome and Edge to display the bullets on second and subsequent columns. ... (check-in: c429bb79 user: drh tags: trunk)
14:19
Make the sitemap show in multiple columns on wide-screen browsers. ... (check-in: 894cff0a user: drh tags: trunk)
2018-08-31
22:41
Remove the n=200 query parameter from the timeline link on the /sitemap. ... (check-in: f1e6cc13 user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/default_css.txt.
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
span.wikiTagCancelled {
  text-decoration: line-through;
}
div.columns {
  padding: 0 2em 0 2em;
  max-width: 1000px;
}
div.columns ul {
  margin: 0;
  padding: 0;
}
div.columns ul li:first-child {
  margin-top:0px;
}
.filetree {
  margin: 1em 0;
  line-height: 1.5;
}
.filetree > ul {







|



|







186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
span.wikiTagCancelled {
  text-decoration: line-through;
}
div.columns {
  padding: 0 2em 0 2em;
  max-width: 1000px;
}
div.columns > ul {
  margin: 0;
  padding: 0;
}
div.columns > ul li:first-child {
  margin-top:0px;
}
.filetree {
  margin: 1em 0;
  line-height: 1.5;
}
.filetree > ul {
Changes to src/sitemap.c.
43
44
45
46
47
48
49

50
51
52
53
54
55
56
    { "Contact",        "sitemap-contact" },
  };

  login_check_credentials();
  srchFlags = search_restrict(SRCH_ALL);
  style_header("Site Map");
  style_adunit_config(ADUNIT_RIGHT_OK);

  @ <ul>
  @ <li>%z(href("%R/home"))Home Page</a>
  for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){
    char *z = db_get(aExtra[i].zProperty,0);
    if( z==0 || z[0]==0 ) continue;
    if( !inSublist ){
      @ <ul>







>







43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
    { "Contact",        "sitemap-contact" },
  };

  login_check_credentials();
  srchFlags = search_restrict(SRCH_ALL);
  style_header("Site Map");
  style_adunit_config(ADUNIT_RIGHT_OK);
  @ <div class="columns" style="column-width:20em">
  @ <ul>
  @ <li>%z(href("%R/home"))Home Page</a>
  for(i=0; i<sizeof(aExtra)/sizeof(aExtra[0]); i++){
    char *z = db_get(aExtra[i].zProperty,0);
    if( z==0 || z[0]==0 ) continue;
    if( !inSublist ){
      @ <ul>
205
206
207
208
209
210
211
212
213
214
  if( g.perm.Read ){
    @   <li>%z(href("%R/test-rename-list"))List of file renames</a></li>
  }
  @   <li>%z(href("%R/hash-color-test"))Page to experiment with the automatic
  @       colors assigned to branch names</a>
  @   <li>%z(href("%R/test-captcha"))Random ASCII-art Captcha image</a></li>
  @   </ul></li>
  @ </ul></li>
  style_footer();
}







|


206
207
208
209
210
211
212
213
214
215
  if( g.perm.Read ){
    @   <li>%z(href("%R/test-rename-list"))List of file renames</a></li>
  }
  @   <li>%z(href("%R/hash-color-test"))Page to experiment with the automatic
  @       colors assigned to branch names</a>
  @   <li>%z(href("%R/test-captcha"))Random ASCII-art Captcha image</a></li>
  @   </ul></li>
  @ </ul></div>
  style_footer();
}