Exemple #1
0
        echo url_for("default/file");
        ?>
?file=<?php 
        echo $file['Id'];
        ?>
" title="<?php 
        echo stringUtils::trimTicketInfos($file['LastChangeCommitDesc']);
        ?>
"><?php 
    }
    ?>
              <span style="display: none;"><?php 
    echo $pathDir !== "." ? stringUtils::lshorten($pathDir . '/', $maxLength - strlen($filename)) : '';
    ?>
</span><?php 
    echo stringUtils::lshorten($filename, $maxLength);
    ?>
            <?php 
    if ($file['IsBinary']) {
        ?>
</a><?php 
    }
    ?>
          </h3>
        </td>
        <td class="view_infos">
          <?php 
    if ($file['NbFileComments']) {
        ?>
            <span class="ricon<?php 
        $file['NbFileCommentsNotChecked'] == 0 && (print ' ricon0');
Exemple #2
0
          <div class="path">
            <?php 
        if (null !== $statusAction->getRepository()) {
            echo link_to($statusAction->getRepository(), 'default/branchList', array('query_string' => 'repository=' . $statusAction->getRepositoryId()));
        }
        ?>
            <?php 
        if (null !== $statusAction->getBranch()) {
            ?>
&gt; <?php 
            echo link_to($statusAction->getBranch(), 'default/fileList', array('query_string' => 'branch=' . $statusAction->getBranchId()));
        }
        ?>
            <?php 
        if (null !== $statusAction->getFile()) {
            ?>
&gt; <?php 
            echo link_to(stringUtils::lshorten($statusAction->getFile(), 50), 'default/file', array('query_string' => 'file=' . $statusAction->getFileId(), 'title' => $statusAction->getFile()));
        }
        ?>
          </div>
        </td>
      </tr>
      <?php 
    }
    ?>
    </table>
  </div>
</div>
<?php 
}
Exemple #3
0
        if (!empty($commentBoard['ProjectId'])) {
            echo link_to($commentBoard['ProjectName'], 'default/branchList', array('query_string' => 'repository=' . $commentBoard['ProjectId']));
        }
        ?>
            <?php 
        if (!empty($commentBoard['BranchId'])) {
            ?>
&gt; <?php 
            echo link_to($commentBoard['BranchName'], 'default/fileList', array('query_string' => 'branch=' . $commentBoard['BranchId']));
        }
        ?>
            <?php 
        if (!empty($commentBoard['FileId'])) {
            ?>
&gt; <?php 
            echo link_to(stringUtils::lshorten($commentBoard['FileName'], 40), 'default/file', array('query_string' => 'file=' . $commentBoard['FileId'], 'title' => $commentBoard['FileName'], 'class' => 'tooltip'));
        }
        ?>
            <?php 
        if (!empty($commentBoard['Position'])) {
            ?>
&gt; <?php 
            echo link_to(sprintf('line %s', $commentBoard['Line']), 'default/file', array('query_string' => sprintf('file=%s#position_%s', $commentBoard['FileId'], $commentBoard['Position'])));
        }
        ?>
          </div>
        </td>
      </tr>
      <?php 
    }
    ?>