Fossil

Check-in [1ec61524]
Login

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

Overview
Comment:Add filetype-specific classes to LI elements.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | csstree
Files: files | file ages | folders
SHA1:1ec615248e8faad469a9211a82079c40e2cce2df
User & Date: joel 2014-01-04 20:24:39
Context
2014-01-05
00:40
Flatten the subdirectory ancestor links into a single line. check-in: 7dfc5cda user: joel tags: csstree
2014-01-04
20:24
Add filetype-specific classes to LI elements. check-in: 1ec61524 user: joel tags: csstree
2014-01-03
08:42
Minor CSS changes check-in: 331185fa user: joel tags: csstree
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/browse.c.

568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
    }else{
      char *zLink;
      if( zCI ){
        zLink = href("%R/artifact/%s",p->zUuid);
      }else{
        zLink = href("%R/finfo?name=%T",p->zFullName);
      }
      @ <li class="file">%z(zLink)%h(p->zName)</a>
    }
    if( p->isLast ){
      int nClose = p->iLevel - (p->pNext ? p->pNext->iLevel : 0);
      while( nClose-- > 0 ){
        @ </ul>
      }
    }







|







568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
    }else{
      char *zLink;
      if( zCI ){
        zLink = href("%R/artifact/%s",p->zUuid);
      }else{
        zLink = href("%R/finfo?name=%T",p->zFullName);
      }
      @ <li class="%z(fileext_class(p->zName))">%z(zLink)%h(p->zName)</a>
    }
    if( p->isLast ){
      int nClose = p->iLevel - (p->pNext ? p->pNext->iLevel : 0);
      while( nClose-- > 0 ){
        @ </ul>
      }
    }

Changes to src/style.c.

785
786
787
788
789
790
791

792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
    @   padding: .2em 0 0 12px;
    @   border-left: 2px dotted #aaa;
  },
  { ".filetree a:before",
    "file tree link icons",
    @   margin-right: 5px;
    @   vertical-align: -3px;

  },
  { ".filetree .dir > a:before",
    "file tree directory link icons",
    @   content: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP/WVCIiIv\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAInlI9pwa3XYniCgQtkrAFfLXkiFo1jaXpo+jUs6b5Z/K4siDu5RPUFADs=);
  },
  { ".filetree .file > a:before",
    "file tree file link icons",
    @   content: url(data:image/gif;base64,R0lGODlhDQAQAJEAAP\/\/\/yIiIv\/\/\/wAAACH5BAEHAAIALAAAAAANABAAAAIhjI+iyLYBYmTCyAnZBc3eDm0SIo5HiXklibLr2cIvSNMFADs=);
  },
  { "table.login_out",
    "table format for login/out label/input table",
    @   text-align: left;
    @   margin-right: 10px;
    @   margin-left: 10px;
    @   margin-top: 10px;
  },







>





<
<
<
<







785
786
787
788
789
790
791
792
793
794
795
796
797




798
799
800
801
802
803
804
    @   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=);
  },
  { ".filetree .dir > a:before",
    "file tree directory link icons",
    @   content: url(data:image/gif;base64,R0lGODlhEAAQAJEAAP/WVCIiIv\/\/\/wAAACH5BAEHAAIALAAAAAAQABAAAAInlI9pwa3XYniCgQtkrAFfLXkiFo1jaXpo+jUs6b5Z/K4siDu5RPUFADs=);
  },




  { "table.login_out",
    "table format for login/out label/input table",
    @   text-align: left;
    @   margin-right: 10px;
    @   margin-left: 10px;
    @   margin-top: 10px;
  },