Fossil

Check-in [4946efef]
Login

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

Overview
Comment:Make the "Line Numbers" submenu element on the /artifact and /file pages a check-box.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4946efef65c2e808686d8c9a80544ba266f3b3c4
User & Date: drh 2016-11-29 16:57:35
Context
2016-11-30
04:08
Minor correction to documentation of new /file webpage regarding multiple highlighted line blocks. check-in: 4896c0b7 user: andybradford tags: trunk
2016-11-29
16:57
Make the "Line Numbers" submenu element on the /artifact and /file pages a check-box. check-in: 4946efef user: drh tags: trunk
14:32
Further enhancements to the new /file webpage. check-in: 3cca4c25 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/info.c.

1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
  }
  if( (objType & (OBJTYPE_WIKI|OBJTYPE_TICKET))!=0 ){
    style_submenu_element("Parsed", "%R/info/%s", zUuid);
  }
  if( descOnly ){
    style_submenu_element("Content", "%R/artifact/%s", zUuid);
  }else{
    if( zLn==0 ){
      style_submenu_element("Line Numbers", "%s",
                            url_render(&url, "ln", "", 0, 0));
    }else{
      style_submenu_element("Line Numbers", "%s",
                            url_render(&url, "ln", 0, 0, 0));
    }
    @ <hr />
    content_get(rid, &content);
    if( renderAsWiki ){
      wiki_render_by_mimetype(&content, zMime);
    }else if( renderAsHtml ){
      @ <iframe src="%R/raw/%T(blob_str(&downloadName))?name=%s(zUuid)"







|
|
<
<
<
<







1979
1980
1981
1982
1983
1984
1985
1986
1987




1988
1989
1990
1991
1992
1993
1994
  }
  if( (objType & (OBJTYPE_WIKI|OBJTYPE_TICKET))!=0 ){
    style_submenu_element("Parsed", "%R/info/%s", zUuid);
  }
  if( descOnly ){
    style_submenu_element("Content", "%R/artifact/%s", zUuid);
  }else{
    if( zLn==0 || atoi(zLn)==0 ){
      style_submenu_checkbox("ln", "Line Numbers", 0);




    }
    @ <hr />
    content_get(rid, &content);
    if( renderAsWiki ){
      wiki_render_by_mimetype(&content, zMime);
    }else if( renderAsHtml ){
      @ <iframe src="%R/raw/%T(blob_str(&downloadName))?name=%s(zUuid)"

Changes to src/style.c.

591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
            @  selected\
          }
          @ >%h(aSubmenuCtrl[i].zFalse)</option>
          @ </select>
          break;
        }
        case FF_CHECKBOX:
          @ <label class='submenuctrl'>\
          @ <input type='checkbox' name='%s(zQPN)' value='1' \
          if( PB(zQPN) ){
            @ checked \
          }
          @ onchange='gebi("f01").submit();'%s(zDisabled)>\
          @ %h(aSubmenuCtrl[i].zLabel)</label>
          break;
      }







|
|







591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
            @  selected\
          }
          @ >%h(aSubmenuCtrl[i].zFalse)</option>
          @ </select>
          break;
        }
        case FF_CHECKBOX:
          @ <label class='submenuctrl submenuckbox'>\
          @ <input type='checkbox' name='%s(zQPN)' \
          if( PB(zQPN) ){
            @ checked \
          }
          @ onchange='gebi("f01").submit();'%s(zDisabled)>\
          @ %h(aSubmenuCtrl[i].zLabel)</label>
          break;
      }