Improved parent URL display in craw journal view.
This commit is contained in:
parent
b36a6cc6e9
commit
c229d00a45
2 changed files with 8 additions and 5 deletions
|
@ -64,10 +64,13 @@ public class CrawlJournalView
|
|||
int index = 0;
|
||||
for (CrawlLog log : journal)
|
||||
{
|
||||
data.setEscapedContent("crawlLogLine", index, "crawlLogLineUrlLink", log.getUrl().toString());
|
||||
data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineUrlLink", "href", log.getUrl().toString());
|
||||
data.setEscapedContent("crawlLogLine", index, "crawlLogLineParentUrlLink", StringUtils.abbreviate(log.getParentUrlValue(), 35));
|
||||
data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineParentUrlLink", "href", StringUtils.defaultString(log.getParentUrlValue(), "#"));
|
||||
data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineParentUrlLink", "title", StringUtils.defaultString(log.getParentUrlValue(), "#"));
|
||||
|
||||
data.setEscapedContent("crawlLogLine", index, "crawlLogLineUrlLink", log.getUrl().toString());
|
||||
data.setEscapedAttribute("crawlLogLine", index, "crawlLogLineUrlLink", "href", log.getUrl().toString());
|
||||
|
||||
data.setContent("crawlLogLine", index, "crawlLogLineStatus", log.getStatus().toString());
|
||||
|
||||
if (log.getStatus().isError())
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<script src="Chart.bundle.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="center_table" style="width: 1100px;">
|
||||
<div class="center_table">
|
||||
|
||||
<div class="center">
|
||||
<h2 id="title">Journal des téléchargements</h2>
|
||||
|
@ -20,11 +20,11 @@
|
|||
<div>Date : <span id="date">n/a</span></div>
|
||||
</div>
|
||||
<br/>
|
||||
<div class="center_table" style="width: 1000px;">
|
||||
<div class="center_table" style="width: 1005px;">
|
||||
<table id="crawlLogs" class="table_classic left">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 200px;">Parent</th>
|
||||
<th style="width: 205px;">Parent</th>
|
||||
<th>URL</th>
|
||||
<th style="width: 150px;">Statut</th>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in a new issue