Fossil

Check-in [f8eff242]
Login

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

Overview
Comment:Fixing the display of the artifact description when the artifact appears as different filenames.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | artifact_description
Files: files | file ages | folders
SHA1: f8eff242feec06c6f6f901e8babf624f795b945f
User & Date: viriketo 2011-08-31 08:34:52.334
Context
2011-08-31
09:00
I fix the html related to the artifact description, about pairs of ul.

I also disable the [view] link in the 'fdiff' ui page, because we already provide a link to the artifact in the h2 titles stating the artifacts compared. ... (check-in: e55105e5 user: viriketo tags: artifact_description)

08:34
Fixing the display of the artifact description when the artifact appears as different filenames. ... (check-in: f8eff242 user: viriketo tags: artifact_description)
08:24
Trying to improve the ui artifact description to something easier to parse by the human eye.

I'd still like to have the branch name of every checkin, but I still don't know how to get it. ... (check-in: d34a1b9f user: viriketo tags: artifact_description)

Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
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
813
814
815
    "       b.uuid"
    "  FROM mlink, filename, event, blob a, blob b"
    " WHERE filename.fnid=mlink.fnid"
    "   AND event.objid=mlink.mid"
    "   AND a.rid=mlink.fid"
    "   AND b.rid=mlink.mid"
    "   AND mlink.fid=%d"
    "   ORDER BY event.mtime",
    rid
  );
  @ <ul>
  while( db_step(&q)==SQLITE_ROW ){
    const char *zName = db_column_text(&q, 0);
    const char *zDate = db_column_text(&q, 1);
    const char *zCom = db_column_text(&q, 2);
    const char *zUser = db_column_text(&q, 3);
    const char *zVers = db_column_text(&q, 4);
    if( !prevName || fossil_strcmp(zName, prevName) ) {
      if( !prevName ) {
        @ <ul>
        prevName = fossil_strdup(zName);
      }



      @ <li>File
      if( g.okHistory ){
        @ <a href="%s(g.zTop)/finfo?name=%T(zName)">%h(zName)</a>
      }else{
        @ %h(zName)
      }
      @ <ul>







|














>
>
>







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
813
814
815
816
817
818
    "       b.uuid"
    "  FROM mlink, filename, event, blob a, blob b"
    " WHERE filename.fnid=mlink.fnid"
    "   AND event.objid=mlink.mid"
    "   AND a.rid=mlink.fid"
    "   AND b.rid=mlink.mid"
    "   AND mlink.fid=%d"
    "   ORDER BY filename.name, event.mtime",
    rid
  );
  @ <ul>
  while( db_step(&q)==SQLITE_ROW ){
    const char *zName = db_column_text(&q, 0);
    const char *zDate = db_column_text(&q, 1);
    const char *zCom = db_column_text(&q, 2);
    const char *zUser = db_column_text(&q, 3);
    const char *zVers = db_column_text(&q, 4);
    if( !prevName || fossil_strcmp(zName, prevName) ) {
      if( !prevName ) {
        @ <ul>
        prevName = fossil_strdup(zName);
      }
      else {
        @ </ul>
      }
      @ <li>File
      if( g.okHistory ){
        @ <a href="%s(g.zTop)/finfo?name=%T(zName)">%h(zName)</a>
      }else{
        @ %h(zName)
      }
      @ <ul>