Fossil

Check-in [7dfc5cda7a]
Login

Check-in [7dfc5cda7a]

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

Overview
Comment:Flatten the subdirectory ancestor links into a single line.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | csstree
Files: files | file ages | folders
SHA1: 7dfc5cda7ae6127dc5212be47677a1cb0fe54b05
User & Date: joel 2014-01-05 00:40:09.205
Context
2014-01-05
04:18
Tweak styles. ... (check-in: 272b684d90 user: joel tags: csstree)
00:40
Flatten the subdirectory ancestor links into a single line. ... (check-in: 7dfc5cda7a user: joel tags: csstree)
2014-01-04
20:24
Add filetype-specific classes to LI elements. ... (check-in: 1ec615248e user: joel tags: csstree)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/browse.c.
543
544
545
546
547
548
549
550
551
552

553
554

555
556
557
558
559



560

561
562
563
564
565
566
567
  }


  /* Generate a multi-column table listing the contents of zD[]
  ** directory.
  */
  @ <ul class="filetree root">
  @ <li class="dir">
  if( nD ){
    char *zLink = href("%s", url_render(&sURI, "name", 0, 0, 0));

    @ %z(zLink)%h(zProjectName)</a>
  }else{

    @ <a>%h(zProjectName)</a>
  }
  @ <ul class="filetree">
  for(p=sTree.pFirst; p; p=p->pNext){
    if( p->isDir ){



      @ <li class="dir">

      if( fossil_strcmp(p->zFullName, zD)==0 ){
        @ <a>%h(p->zName)</a>
      }else{
        char *zLink = href("%s", url_render(&sURI, "name", p->zFullName, 0, 0));
        @ %z(zLink)%h(p->zName)</a>
      }
      @ <ul class="filetree">







<


>


>





>
>
>
|
>







543
544
545
546
547
548
549

550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
  }


  /* Generate a multi-column table listing the contents of zD[]
  ** directory.
  */
  @ <ul class="filetree root">

  if( nD ){
    char *zLink = href("%s", url_render(&sURI, "name", 0, 0, 0));
    @ <li class="dir">
    @ %z(zLink)%h(zProjectName)</a>
  }else{
    @ <li class="dir subdir">
    @ <a>%h(zProjectName)</a>
  }
  @ <ul class="filetree">
  for(p=sTree.pFirst; p; p=p->pNext){
    if( p->isDir ){
      if( nD && strlen(p->zFullName)==nD-1 ){
        @ <li class="dir subdir">
      }else{
        @ <li class="dir">
      }
      if( fossil_strcmp(p->zFullName, zD)==0 ){
        @ <a>%h(p->zName)</a>
      }else{
        char *zLink = href("%s", url_render(&sURI, "name", p->zFullName, 0, 0));
        @ %z(zLink)%h(p->zName)</a>
      }
      @ <ul class="filetree">
Changes to src/style.c.
770
771
772
773
774
775
776
777

778




779
780
781
782
783





784
785
786









787
788
789
790
791
792
793
  { "ul.browser",
    "format for the list in the file browser",
    @   margin-left: 0.5em;
    @   padding-left: 0.5em;
    @   white-space: nowrap;
  },
  { ".filetree",
    "file tree",

    @   padding: 0;




    @   list-style: none;
    @   line-height: 1.3;
  },
  { ".filetree ul",
    "file tree subdirectory lists",





    @   margin: 0 0 .4em 7px;
    @   padding: .2em 0 0 12px;
    @   border-left: 2px dotted #aaa;









  },
  { ".filetree a:before",
    "file tree link icons",
    @   margin-right: 5px;
    @   vertical-align: -3px;
    @   content: url(data:image/gif;base64,R0lGODlhDQAQAJEAAP\/\/\/yIiIv\/\/\/wAAACH5BAEHAAIALAAAAAANABAAAAIhjI+iyLYBYmTCyAnZBc3eDm0SIo5HiXklibLr2cIvSNMFADs=);
  },







|
>

>
>
>
>



|
|
>
>
>
>
>



>
>
>
>
>
>
>
>
>







770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
  { "ul.browser",
    "format for the list in the file browser",
    @   margin-left: 0.5em;
    @   padding-left: 0.5em;
    @   white-space: nowrap;
  },
  { ".filetree",
    "file tree root and branch lists",
    @   display: inline;
    @   padding: 0;
  },
  { ".filetree.root",
    "file tree root",
    @   display: block;
    @   list-style: none;
    @   line-height: 1.3;
  },
  { ".filetree li",
    "file tree list items",
    @   display: inline;
  },
  { ".filetree .subdir ul",
    "file tree lists below subdir",
    @   display: block;
    @   margin: 0 0 .4em 7px;
    @   padding: .2em 0 0 12px;
    @   border-left: 2px dotted #aaa;
  },
  { ".filetree .subdir li",
    "file tree lists items below subdir",
    @   display: block;
    @   padding: 0;
  },
  { ".filetree a",
    "file tree links",
    @   margin-right: .5em;
  },
  { ".filetree a:before",
    "file tree link icons",
    @   margin-right: 5px;
    @   vertical-align: -3px;
    @   content: url(data:image/gif;base64,R0lGODlhDQAQAJEAAP\/\/\/yIiIv\/\/\/wAAACH5BAEHAAIALAAAAAANABAAAAIhjI+iyLYBYmTCyAnZBc3eDm0SIo5HiXklibLr2cIvSNMFADs=);
  },