Fossil

Check-in [7ee938f4]
Login

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

Overview
Comment:Separate the download links on the "info" and "ci" pages onto a separate line with a separate label.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7ee938f40e9164c85b7186a0d15b7b6af149643c
User & Date: drh 2012-07-17 16:55:21
Context
2012-07-19
15:41
Fix the db_is_writable() routine to return FALSE if the database is not even open. check-in: 0c0f268f user: drh tags: trunk
2012-07-17
16:55
Separate the download links on the "info" and "ci" pages onto a separate line with a separate label. check-in: 7ee938f4 user: drh tags: trunk
2012-07-16
14:37
cherry-picked [4295728159451e0d]. check-in: a7eb7147 user: stephan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/info.c.

   477    477       const char *zUuid = db_column_text(&q, 0);
   478    478       char *zTitle = mprintf("Check-in [%.10s]", zUuid);
   479    479       char *zEUser, *zEComment;
   480    480       const char *zUser;
   481    481       const char *zComment;
   482    482       const char *zDate;
   483    483       const char *zOrigDate;
          484  +    const char *zBranch;
   484    485       style_header(zTitle);
   485    486       login_anonymous_available();
   486    487       free(zTitle);
   487    488       zEUser = db_text(0,
   488    489                      "SELECT value FROM tagxref WHERE tagid=%d AND rid=%d",
   489    490                       TAG_USER, rid);
   490    491       zEComment = db_text(0, 
   491    492                      "SELECT value FROM tagxref WHERE tagid=%d AND rid=%d",
   492    493                      TAG_COMMENT, rid);
          494  +    zBranch = db_text("trunk",
          495  +                   "SELECT value FROM tagxref WHERE tagid=%d AND rid=%d",
          496  +                   TAG_BRANCH, rid);
   493    497       zUser = db_column_text(&q, 2);
   494    498       zComment = db_column_text(&q, 3);
   495    499       zDate = db_column_text(&q,1);
   496    500       zOrigDate = db_column_text(&q, 4);
   497    501       @ <div class="section">Overview</div>
   498    502       @ <table class="label-value">
   499    503       @ <tr><th>SHA1&nbsp;Hash:</th><td>%s(zUuid)
................................................................................
   557    561                        "   AND tag.tagid=tagxref.tagid "
   558    562                        "   AND +tag.tagname GLOB 'sym-*'", rid);
   559    563         while( db_step(&q)==SQLITE_ROW ){
   560    564           const char *zTagName = db_column_text(&q, 0);
   561    565           @  | %z(href("%R/timeline?r=%T",zTagName))%h(zTagName)</a>
   562    566         }
   563    567         db_finalize(&q);
   564         -      @ </td></tr>
   565         -      @ <tr><th>Other&nbsp;Links:</th>
   566         -      @   <td>
   567         -      @     %z(href("%R/dir?ci=%S",zUuid))files</a>
   568    568         if( g.perm.Zip ){
   569    569           char *zUrl = mprintf("%R/tarball/%s-%S.tar.gz?uuid=%s",
   570    570                                zProjName, zUuid, zUuid);
   571         -        @ | %z(href("%s",zUrl))Tarball</a>
          571  +        @ </td></tr>
          572  +        @ <tr><th>Downloads:</th><td>
          573  +        @ %z(href("%s",zUrl))Tarball</a>
   572    574           @ | %z(href("%R/zip/%s-%S.zip?uuid=%s",zProjName,zUuid,zUuid))
   573    575           @         ZIP archive</a>
   574    576           fossil_free(zUrl);
   575    577         }
          578  +#if 0
          579  +      if( isLeaf && fossil_strcmp(zBranch,"trunk")!=0 ){
          580  +        @ </td></tr>
          581  +        @ <tr><th>Diffs:</th><td>
          582  +        @ %z(href("%R/vdiff?branch=%t",zBranch))Changes in %h(zBranch)</a>
          583  +        @ | %z(href("%R/vdiff?from=trunk&to=%t",zBranch))Changes
          584  +        @         from trunk</a>
          585  +      }
          586  +#endif
          587  +      @ </td></tr>
          588  +      @ <tr><th>Other&nbsp;Links:</th>
          589  +      @   <td>
          590  +      @     %z(href("%R/dir?ci=%S",zUuid))files</a>
   576    591         @   | %z(href("%R/artifact/%S",zUuid))manifest</a>
   577    592         if( g.perm.Write ){
   578    593           @   | %z(href("%R/ci_edit?r=%S",zUuid))edit</a>
   579    594         }
   580    595         @   </td>
   581    596         @ </tr>
   582    597       }