- replaced 'edit' link with a clone symbol in Table_API_p since that is

what it does: it clones the crawl, it does not change the crawl.
- moved the appearance of this clone link to the type column since this
makes it visible also if the URL column is not visible.
pull/1/head
Michael Peter Christen 11 years ago
parent 0f6db6ad5b
commit 9fac9249bc

@ -84,14 +84,14 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
</tr>
#{list}#
<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#" id="#[pk]#">
<td align="left"><input type="checkbox" name="item_#[count]#" value="mark_#[pk]#" /></td>
<td>#[type]#</td>
<td>#[comment]#</td>
<td>#[callcount]#</td>
<td>#[dateRecording]#</td>
<td>#[dateLastExec]#</td>
<td>#[dateNextExec]#</td>
<td>
<td valign="top" align="left"><input type="checkbox" name="item_#[count]#" value="mark_#[pk]#" /></td>
<td valign="top">#[type]##(isCrawlerStart)#::<br/><br/><a href="#[url]#" title="clone"><img src="/env/grafics/doc.gif"><img src="/env/grafics/right.gif"><img src="/env/grafics/doc.gif"></a>#(/isCrawlerStart)#</td>
<td valign="top">#[comment]#</td>
<td valign="top">#[callcount]#</td>
<td valign="top">#[dateRecording]#</td>
<td valign="top">#[dateLastExec]#</td>
<td valign="top">#[dateNextExec]#</td>
<td valign="top">
#(event)#
<select name="event_select_#[pk]#" onchange='submitchange("#[pk]#")'>
<option value="off" selected="selected">no event</option>
@ -137,7 +137,7 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
</table>
#(/event)#
</td>
<td>
<td valign="top">
#(scheduler)#
<select name="repeat_select_#[pk]#" onchange='submitchange("#[pk]#")'#(disabled)#:: disabled="disabled"#(/disabled)#>
<option value="off" selected="selected">no repetition</option>
@ -161,7 +161,7 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
</table>
#(/scheduler)#
</td>
#(inline)#<td>#(isCrawlerStart)#::<a href="#[url]#">Edit</a> #(/isCrawlerStart)##[url]#</td>::#(/inline)#
#(inline)#<td valign="top">#[url]#</td>::#(/inline)#
</tr>
#{/list}#
</table>

@ -290,9 +290,11 @@ public class Table_API_p {
// check type & action to link crawl start URLs back to CrawlStartExpert_p.html
if (prop.get("showtable_list_" + count + "_type", "").equals(WorkTables.TABLE_API_TYPE_CRAWLER)
&& prop.get("showtable_list_" + count + "_comment", "").startsWith("crawl start for")) {
prop.put("showtable_list_" + count + "_inline_isCrawlerStart", 1);
prop.put("showtable_list_" + count + "_isCrawlerStart", 1);
final String editUrl = UTF8.String(row.get(WorkTables.TABLE_API_COL_URL)).replace("Crawler_p", "CrawlStartExpert_p");
prop.put("showtable_list_" + count + "_inline_isCrawlerStart_url", editUrl);
prop.put("showtable_list_" + count + "_isCrawlerStart_url", editUrl);
} else {
prop.put("showtable_list_" + count + "_isCrawlerStart", 0);
}
prop.putHTML("showtable_list_" + count + "_inline_url", "http://" + sb.myPublicIP() + ":" + sb.getConfig("port", "8090") + UTF8.String(row.get(WorkTables.TABLE_API_COL_URL)));
prop.put("showtable_list_" + count + "_scheduler_inline", inline ? "true" : "false");

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

After

Width:  |  Height:  |  Size: 76 B

Loading…
Cancel
Save