} else { ?> <li class="list-group-item"><?php echo htmlspecialchars($value); ?> </li> <?php } } ?> </ul> <?php } else { ?> <div class="alert alert-warning" role="alert"><?php echo t('noDiff', array(getPath(), getRev(), getRev2())); ?> </div> <?php } ?> </div> <style type="text/css"> .list-group .list-group-item{ padding: 5px 7px; min-height: 32px; overflow-wrap: break-word; } </style> <?php /*<div class="alert alert-error" role="alert">Le fichier <strong><?php echo getRepoPath().getPath() ?></strong> n'éxiste pas.</div>
<span class="input-group-addon"><?php echo t('maxLines'); ?> :</span> <input type="text" class="form-control input-sm" name="max" value="<?php echo getMax(); ?> "> </div> </div> <div class="form-group btn-group-justified"> <div class="input-group"> <input type="text" class="form-control input-sm rev" name="rev" value="<?php echo getRev(true); ?> " placeholder="HEAD"> <span class="input-group-addon">:</span> <input type="text" class="form-control input-sm rev2" name="rev2" value="<?php echo getRev2(true); ?> " placeholder="HEAD"> <span class="input-group-btn"> <button class="btn btn-default btn-sm" type="submit"><span class="glyphicon glyphicon-arrow-right"></span></button> </span> </div> </div> </form> </div> </div>
?> <li><a href="<?php echo getUrl("null", getPath(), true, array('pagenb' => $nbPage, 'max' => getMax(), 'mode' => $_GET['mode'])); ?> ">»</a></li> </ul> <?php } } else { ?> <div class="alert alert-warning" role="alert"><?php echo t('noLog', array(getPath(), getRev(), getRev2())); ?> </div> <?php } ?> </div> <style type="text/css"> .table td.path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .table-responsive { overflow-x: auto;
function getLogDiff() { $return = array(); $log = getCommand('svn -r ' . getRev() . ':' . getRev2() . ' log --xml ' . getRepoUrl() . '/' . getPath() . ' -v'); $domObj = new xmlToArrayParser(implode("\n", $log)); $domArr = $domObj->array; if (isset($domArr['log']['logentry'])) { $logentry = $domArr['log']['logentry']; if (!isset($logentry[0])) { $return[0] = $logentry; } else { $return = $logentry; } foreach ($return as $key => $value) { if (!isset($return[$key]['paths']['path'][0])) { $path = $return[$key]['paths']['path']; unset($return[$key]['paths']['path']); $return[$key]['paths']['path'][0] = $path; } } } else { $return = array(); } return $return; }